Skip to contentSkip to conversation

Makefile for external modules

DISCUSSION Peter J. Braam 2 participants 2 messages Nov 14, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

Rumor has it that there is now a simple way to build modules outside the kernel tree. I'm told that you place a kernel style makefile in your directory and do:

make -C /usr/src/linux MOD_SUB_DIRS=/my/module/dir modules

It almost works, but loops. What is wrong?

Thanks!

- Peter -

#1 lore raw
Quoted 7 lines · Peter J. Braam

Rumor has it that there is now a simple way to build modules outside the kernel tree. I'm told that you place a kernel style makefile in your directory and do:

make -C /usr/src/linux MOD_SUB_DIRS=/my/module/dir modules

It almost works, but loops. What is wrong?

cd /usr/src/linux && make SUBDIRS=/my/module/dir modules

Take a look at loop-AES makefile:
http://loop-aes.sourceforge.net/loop-AES-v1.4g.tar.bz2

Regards,
Jari Ruusu <[email protected]>