Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel modifications to compile linux-2.6 automagically
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
rshetye
n00b
n00b


Joined: 07 Aug 2003
Posts: 42

PostPosted: Tue Sep 16, 2003 7:14 pm    Post subject: genkernel modifications to compile linux-2.6 automagically Reply with quote

I made some changes to genkernel to compile linux-2.6 automagically using :idea: make allmodconfig :idea:
Code:

--- genkernel.orig      Tue Sep 16 11:52:25 2003
+++ genkernel   Tue Sep 16 12:02:03 2003
@@ -25,6 +25,7 @@
 KD=`readlink -f /usr/src/linux`
 KV="${KD##*/}"
 KV="${KV##linux-}"
+KERNEL_SERIES="${KV%%.[0-9]-*}"
 GK_VERSION=1.8
 GK_SHARE=/usr/share/genkernel
 [ ! -e /sbin/functions.sh ] && die "Can't find /sbin/functions.sh; exiting."
@@ -92,6 +93,9 @@
        elif [ -e ${KD}/kernel-config ]
        then
                echo -e "gentoo (default)\n config loc: ${KD}/kernel-config"
+       elif [ ${KERNEL_SERIES} == "2.6" ]
+       then
+               echo "make allmodconfig in ${KD}"
        else
                echo -e "non-gentoo (default)\n config loc: ${CONFIG}/default-config"
        fi       
@@ -118,6 +122,9 @@
        elif [ -e ${KD}/kernel-config ]
        then
                cp -f ${KD}/kernel-config ${KD}/.config || die "couldn't copy 2"
+       elif [ ${KERNEL_SERIES} == "2.6" ]
+       then
+               (cd ${KD}; make allmodconfig) || die "couldn't make allmodconfig in ${KD}"
        else
                cp -f ${CONFIG}/default-config ${KD}/.config || die "couldn't copy 3"
        fi       


problems that exist:
1. network driver modules did not autoload. I had to add the names to /etc/modules.autoload.d/kernel-2.6 . watch for the order in which you add the names of the modules. It may change your interface naming order if you have multiple NICs.
2. for some reason, xterm would not start up in X. neither would aterm or wterm. didn't have rxvt installed at that time. ALL other X clients like epiphany evolution dillo etc work correctly, mouse works correctly. So I am not sure if this is an xterm problem or a tcsh problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum