Building separate files for a kernel module

Martin Galvan omgalvan.86 at gmail.com
Thu Apr 5 10:49:36 EDT 2018


2018-04-05 2:26 GMT-03:00  <valdis.kletnieks at vt.edu>:
> On Wed, 04 Apr 2018 18:29:21 -0300, Martin Galvan said:
>
>> PS: Yes, I'm aware I could just add $(bar-objs) to mydriver-y and
>> avoid building bar.a, but I really need to have those files as a
>> separate library.
>
> What's driving the requirement for a separate library?

I want my module to be DKMS-enabled, but since the 'bar' binaries
don't use anything Linux-specific I don't want to distribute the
sources for it. It's similar to the "_shipped" binary blobs the
documentation mentions, except in this case I want to use the kbuild
machinery to build it.



More information about the Kernelnewbies mailing list