summaryrefslogtreecommitdiffstats
path: root/base/kernel-lenovo/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'base/kernel-lenovo/Pkgfile')
-rw-r--r--base/kernel-lenovo/Pkgfile30
1 files changed, 20 insertions, 10 deletions
diff --git a/base/kernel-lenovo/Pkgfile b/base/kernel-lenovo/Pkgfile
index 084813cb0..12649b6b9 100644
--- a/base/kernel-lenovo/Pkgfile
+++ b/base/kernel-lenovo/Pkgfile
@@ -10,29 +10,39 @@ release=1
PKGMK_NO_STRIP="yes"
PKGMK_IGNORE_FOOTPRINT="yes"
source=(http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_x86_32-v5_100_82_38.tar.gz \
- http://www.kernel.org/pub/linux/kernel/v2.6/linux-${_BaseVersion}.tar.bz2 config\
+ http://www.kernel.org/pub/linux/kernel/v2.6/linux-${_BaseVersion}.tar.bz2 config config_64\
http://www.kernel.org/pub/linux/kernel/v2.6/patch-$version.bz2)
build(){
unset MAKEFLAGS
cd linux-${_BaseVersion}
make mrproper
-cp $SRC/config ./.config
+case `uname -m` in
+ x86_64)
+ cp $SRC/config_64 ./.config;;
+ i?86)
+ cp $SRC/config ./.config;;
+esac
bzip2 -d -c ../patch-$version.bz2|patch -Np1
make menuconfig
cp .config /tmp/
make
make INSTALL_MOD_PATH=$PKG modules_install
mkdir -p $PKG/boot
- cp System.map \
- $PKG/boot/System.map-$version
- cp .config \
- $PKG/boot/config-$version
+cp System.map \
+$PKG/boot/System.map-$version
+cp .config \
+$PKG/boot/config-$version
+case `uname -m` in
+ i?86)
cp arch/i386/boot/bzImage \
- $PKG/boot/kernel-$version
- ln -sf kernel-$version \
- $PKG/boot/kernel-lenovo
-unset MAKEFLAGS
+ $PKG/boot/kernel-$version;;
+ x86_64)
+ cp arch/x86_64/boot/bzImage \
+ $PKG/boot/kernel-version;;
+esac
+ln -sf kernel-$version \
+$PKG/boot/kernel
cd $SRC
# make clean
# make