aboutsummaryrefslogtreecommitdiffstats
path: root/kernel-rt/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel-rt/Pkgfile')
-rw-r--r--kernel-rt/Pkgfile27
1 files changed, 15 insertions, 12 deletions
diff --git a/kernel-rt/Pkgfile b/kernel-rt/Pkgfile
index f0dfd72..b453ee2 100644
--- a/kernel-rt/Pkgfile
+++ b/kernel-rt/Pkgfile
@@ -4,9 +4,9 @@
# Packager: thierryn1 at hispeed dot ch, tyrry33 at gmail dot com
name=kernel-rt
-version=3.2.18
-_BaseVersion=3.2
-release=rt29-1
+version=3.4.0
+_BaseVersion=$(expr $version : '\([0-9]\.[0-9]\)')
+release=rt7-1
PKGMK_NO_STRIP="yes"
PKGMK_IGNORE_FOOTPRINT="yes"
PKGMK_IGNORE_MD5SUM="yes"
@@ -16,8 +16,8 @@ _extra=11032012
_tools=24042012
VB_VERSION=4.1.16
VB_BUILD=78094
-RT_VERSION=3.2.18
-RT_PATCH=rt29
+RT_VERSION=${_BaseVersion}
+RT_PATCH=$(expr $release : '\(rt[0-9]*\)')
[ "`uname -m`" == "i686" ] && _ARCH=x86
[ "`uname -m`" == "x86_64" ] && _ARCH=x86_64
@@ -29,17 +29,20 @@ RT_PATCH=rt29
source=(http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_${BC_ARCH}-v5_100_82_112.tar.gz
http://download.virtualbox.org/virtualbox/${VB_VERSION}/VirtualBox-${VB_VERSION}-${VB_BUILD}-Linux_${VB_ARCH}.run
http://www.kernel.org/pub/linux/kernel/v3.0/linux-${_BaseVersion}.tar.xz
- http://www.kernel.org/pub/linux/kernel/v3.0/patch-$version.xz
+ http://www.kernel.org/pub/linux/kernel/projects/rt/$(expr $RT_VERSION : '\([0-9]\.[0-9]\)')/patch-${RT_VERSION}-${RT_PATCH}.patch.xz
http://nutyx.meticul.eu/install-${SCRIPT_VERSION}.ash
http://nutyx.meticul.eu/files/nutyx-initrd-`uname -m`-${_extra}.tar.bz2
http://nutyx.meticul.eu/files/installtools-${_tools}.tar.bz2
- http://www.kernel.org/pub/linux/kernel/projects/rt/${RT_VERSION%.*}/patch-${RT_VERSION}-${RT_PATCH}.patch.xz
makefile_compat.patch
bc_wl_abiupdate.patch
config_64
config
)
+if [ "${version}" != "${_BaseVersion}.0" ]; then
+source[${#source[*]}]="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$version.xz"
+fi
+
build(){
sed -i "s/^SCRIPT_VERSION=.\{1,\}/SCRIPT_VERSION=\"$SCRIPT_VERSION\"/" `prt-get printf %p --filter=$name`/$name/post-install
@@ -96,7 +99,7 @@ esac
sed -i "s/EXTRAVERSION = .*/EXTRAVERSION =/" Makefile
# When a new patchlevel is release (3.2->3.3 for ex)
# decomment and run make menuconfig
-#make menuconfig
+make menuconfig
case `uname -m` in
x86_64)
cp .config `prt-get printf %p --filter=$name`/$name/config_64;;
@@ -111,10 +114,10 @@ case `uname -m` in
cp .config `prt-get printf %p --filter=$name`/$name/config;;
esac
# Module broadcom
-cd $SRC
-patch -p0 src/wl/sys/wl_linux.c < bc_wl_abiupdate.patch
-KBUILD_NOPEDANTIC=1 make -C $SRC/linux-${_BaseVersion} M=`pwd`
-install -m 0644 -D wl.ko $PKG/lib/modules/${version}-${RT_PATCH}/kernel/drivers/zzzz/wl.ko
+#cd $SRC
+#patch -p0 src/wl/sys/wl_linux.c < bc_wl_abiupdate.patch
+#KBUILD_NOPEDANTIC=1 make -C $SRC/linux-${_BaseVersion} M=`pwd`
+#install -m 0644 -D wl.ko $PKG/lib/modules/${version}-${RT_PATCH}/kernel/drivers/zzzz/wl.ko
# Modules VB
cd $SRC