rshetye n00b
Joined: 07 Aug 2003 Posts: 42
|
Posted: Tue Sep 16, 2003 7:14 pm Post subject: genkernel modifications to compile linux-2.6 automagically |
|
|
I made some changes to genkernel to compile linux-2.6 automagically using make allmodconfig
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. |
|