proposed cange in linux-2.6 and co

Auke Kok sofar at foo-projects.org
Sat Nov 12 06:22:02 UTC 2005


Edd Budulea wrote:

>If someone (like me for instance) want a kernel
>without modules then the BUILD will always fail.
>You'll want a moduleless kernel if you expose the box
>to internet.
>the BUILD should be like that:
>32,33c32,33
><   make ${MAKES:+-j$MAKES} modules           &&
><   backup_mods_krnl $VERSION	            &&
>---
>  
>
>>  ( ! grep '^[ \t]*CONFIG_MODULES[ \t]*=[ \t]*y[
>>    
>>
>\t]*$' .config || make ${MAKES:+-j$MAKES} modules &&
>  
>
>>  backup_mods_krnl $VERSION	)               &&
>>    
>>
>35d34
><   make modules_install                      &&
>37c36,37
><   cp System.map /boot/System.map-$VERSION
>---
>  
>
>>  ( ! grep '^[ \t]*CONFIG_MODULES[ \t]*=[ \t]*y[
>>    
>>
>\t]*$' .config || make modules_install &&
>  
>
>>   cp System.map /boot/System.map-$VERSION )
>>    
>>
>
>some lines maybe are wrap becouse the mailer, but you
>get the idea.
>

well the idea is nice but the proposed patch sucks ;^)

you'll want the following:

CONFIGURE:
add `mquery SKIP_MODULES "Skip building and installing kernel modules?" n

BUILD:
add `if [ "$SKIP_MODULES" != "y" ]; then \n make modules\n fi`

and the same for the 'make modules_install' step.

Try it out and let me know if it works.

Auke


More information about the Lunar mailing list