Genkernel should allow the user to compile a non modular kernel. This functionality, while not a mainstream use, is still essential to certain applications. (i.e. embedded systems). If I'm missing an option to genkernel that directs it to skip modules, then I appologize. Thanks for your time. Reproducible: Always Steps to Reproduce: 1. vim /usr/src/linux/.config 2. /CONFIG_MODULES 3. Comment the line or set it = n Actual Results: * Gentoo Linux Genkernel; Version 3.1.5 * Compiling Linux Kernel 2.6.11-hardened-r13-GNAP-1.7 for x86... * WARNING: No mounted /boot partition detected! * Run ``mount /boot`` to mount it! * kernel: >> Running mrproper... * config: Using config from /var/tmp/gentoo.config * Previous config backed up to .config.bak * >> Running oldconfig... * kernel: >> Cleaning... * >> Compiling 2.6.11-hardened-r13-GNAP-1.7 bzImage... * >> Compiling 2.6.11-hardened-r13-GNAP-1.7 modules... * ERROR: Failed to compile the "modules" target... Expected Results: Well, here is a fine line between what is the responsibility of genkernel and that of the calling application/user. I think the correct way to approach this problem is to add a new target to genkernel that only builds the kernel. If you tell genkernel to build modules and there are no modules to build, it should probably report an error.
Yep, looks like a new target will be the way to fix this.
Created attachment 61298 [details, diff] patch to genkernel adds bzImage target
Created attachment 61299 [details, diff] patch to gen_cmdline.sh adds bzImage target to genkernel
Fixed in 3.2.0_pre10, thanks!