blob: 084813cb0ace9ff9d0279da5c6093ba830ebd76b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Description: Optimisé pour Lenovo G550, NetLink BCM5906M Fast Ethernet broadcom, broadcom BCM4312 LP-PHY pilote hybrid, SATA ICH9M/M-E SATA AHCI, VGA Intel Mobile 4, Intel HD Audio, ReiserFS
# URL: http://www.kernel.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
name=kernel-lenovo
version=2.6.36.3
_BaseVersion=2.6.36
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/patch-$version.bz2)
build(){
unset MAKEFLAGS
cd linux-${_BaseVersion}
make mrproper
cp $SRC/config ./.config
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 arch/i386/boot/bzImage \
$PKG/boot/kernel-$version
ln -sf kernel-$version \
$PKG/boot/kernel-lenovo
unset MAKEFLAGS
cd $SRC
# make clean
# make
KBUILD_NOPEDANTIC=1 make -C $PKG/lib/modules/$version/build M=`pwd` clean
KBUILD_NOPEDANTIC=1 make -C $PKG/lib/modules/$version/build M=`pwd`
install -m644 wl.ko $PKG/lib/modules/$version/kernel/net/wireless/wl.ko
rm $PKG/lib/modules/$version/{source,build}
}
|