From f99c5bd29329d116585f7230ac1a0b669460ee53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Richard=20P=C3=B6ttler?= Date: Fri, 30 Nov 2007 09:56:16 +0100 Subject: [PATCH] linux: /lib/modules/$version/{source,build} are now set to /usr/src/linux Also did some cleanups --- linux/Pkgfile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/linux/Pkgfile b/linux/Pkgfile index 8872cbf..94401f4 100644 --- a/linux/Pkgfile +++ b/linux/Pkgfile @@ -15,33 +15,42 @@ source=() build () { # get the sources ketchup -d kernel $version + cd kernel + # configure the kernel if [ -r /usr/src/linux.config ]; then - cp /usr/src/linux.config kernel/.config + cp /usr/src/linux.config .config else - cd kernel make defconfig - cd .. fi - cd kernel - # apply patches if [ -d /usr/src/kernel_patches/$version ]; then for patch in `ls /usr/src/kernel_patches/$version`; do patch -p1 < /usr/src/kernel_patches/$version/$patch done fi + # remove the lilo calls sed -i -e '/if \[ -x \/sbin\/lilo \]; then \/sbin\/lilo;/d' \ `grep -lr 'if \[ -x /sbin/lilo \]; then /sbin/lilo;' ./` + # build everything make all + # install the modules make INSTALL_MOD_PATH=$PKG modules_install + # install the kernel image and the System.map mkdir $PKG/boot make INSTALL_PATH=$PKG/boot install + + # correct the /lib/modules/$version/{build,source} links to + # /usr/src/linux + rm $PKG/lib/modules/$version/{build,source} + ln -s /usr/src/linux $PKG/lib/modules/$version/build + ln -s /usr/src/linux $PKG/lib/modules/$version/source + # copy the configuration for later use install .config $PKG/boot/linux.config } -- 2.11.4.GIT