Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95993 - genkernel exits with error when attempting to compile a non modular kernel
Summary: genkernel exits with error when attempting to compile a non modular kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 GNU/kFreeBSD
: High enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard: [ <Fixed 3.2.0> ]
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-06-13 10:41 UTC by Lenon Kitchens
Modified: 2017-09-08 16:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to genkernel adds bzImage target (genkernel.patch,433 bytes, patch)
2005-06-15 13:14 UTC, Lenon Kitchens
Details | Diff
patch to gen_cmdline.sh adds bzImage target to genkernel (gen_cmdline.sh.patch,917 bytes, patch)
2005-06-15 13:15 UTC, Lenon Kitchens
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lenon Kitchens 2005-06-13 10:41:59 UTC
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.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2005-06-15 11:53:42 UTC
Yep, looks like a new target will be the way to fix this.
Comment 2 Lenon Kitchens 2005-06-15 13:14:53 UTC
Created attachment 61298 [details, diff]
patch to genkernel adds bzImage target
Comment 3 Lenon Kitchens 2005-06-15 13:15:33 UTC
Created attachment 61299 [details, diff]
patch to gen_cmdline.sh adds bzImage target to genkernel
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2005-06-22 09:44:25 UTC
Fixed in 3.2.0_pre10, thanks!