Skip to contentSkip to conversation

modules_install

DISCUSSION Gilad Benjamini 3 participants 3 messages Feb 25, 2003 – Feb 26, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

How does one tweak the kernel's "modules_install" target in the makefile to properly be used for cross compiling ?
I can change the kernel Makefile, but I'd rather not.

My aim is to compile the modules and pack them into a ramdisk that is compiled into the kernel.

#1 lore raw
Quoted 3 lines · Gilad Benjamini

How does one tweak the kernel's "modules_install" target in the makefile to properly be used for cross compiling ?
I can change the kernel Makefile, but I'd rather not.

make INSTALL_MOD_PATH=...

Note that depmod will fail anyway.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#2 lore raw
Quoted 8 lines · Geert Uytterhoeven
Quoted 3 lines · Gilad Benjamini

How does one tweak the kernel's "modules_install" target in the makefile to properly be used for cross compiling ?
I can change the kernel Makefile, but I'd rather not.

make INSTALL_MOD_PATH=...

Note that depmod will fail anyway.

Cross compile for ia64.

make ARCH=ia64 \
	CROSS_COMPILE=/usr/bin/ia64-linux- \
	INSTALL_MOD_PATH=/build/kaos \
	DEPMOD=/bin/true

DEPMOD=/bin/true makes depmod a noop, the first boot on the target will build modules.dep.