modules_install
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.
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 kernelMakefile, 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
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 kernelMakefile, 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.