[Letux-kernel] Question to Kbuild specialists: build multiple kenrel moduled from single directory/Makefile?

H. Nikolaus Schaller hns at goldelico.com
Fri Oct 28 19:14:17 CEST 2016


> Am 28.10.2016 um 00:09 schrieb Andrey Utkin <andrey_utkin at fastmail.com>:
> 
> On Thu, Oct 27, 2016 at 04:27:50PM +0200, H. Nikolaus Schaller wrote:
>> Hi,
>> is it somehow possible to write a Kbuild Makefile
>> so that it builds the same code multiple times
>> with different CONFIGs or -DDEFINE into separate
>> modules?
> 
> I think this should resemble building different drivers using some
> shared source files.

Exactly.

> I will try to come up with something during the
> weekend.

Would be fine!

It would allow to provide kernel modules in parallel
for the 600 MHz OpenPandora (OMAP3530), 1 GHz OpenPandora and GTA04
(both DM3730) and make the kernel load only the one that is needed.

BR,
Nikolaus



More information about the Letux-kernel mailing list