wok-next diff linux/receipt @ rev 9546

Reverse linux.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Apr 09 07:26:43 2011 +0000 (2011-04-09)
parents a09f59c16260
children d1768332cee0
line diff
     1.1 --- a/linux/receipt	Sat Apr 09 07:21:58 2011 +0000
     1.2 +++ b/linux/receipt	Sat Apr 09 07:26:43 2011 +0000
     1.3 @@ -1,20 +1,13 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="linux"
     1.7 -VERSION="2.6.37.6"
     1.8 -BASE_VERSION="${VERSION%.*}"
     1.9 -# the one below is when your using the newer base version
    1.10 -#BASE_VERSION="$VERSION"
    1.11 +VERSION="2.6.37"
    1.12  CATEGORY="base-system"
    1.13  SHORT_DESC="The Linux kernel and modules."
    1.14  DEPENDS="depmod"
    1.15 -if [ "$BASE_VERSION" != "$VERSION" ]; then
    1.16 -	BUILD_DEPENDS="linux-patch perl git lzma patch"
    1.17 -else
    1.18 -	BUILD_DEPENDS="perl git lzma patch"
    1.19 -fi
    1.20 +BUILD_DEPENDS="slitaz-toolchain perl git lzma patch"
    1.21  MAINTAINER="devel@slitaz.org"
    1.22 -TARBALL="$PACKAGE-$BASE_VERSION.tar.bz2"
    1.23 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.24  WEB_SITE="http://www.kernel.org/"
    1.25  WGET_URL="http://www.eu.kernel.org/pub/linux/kernel/v${VERSION:0:3}/$TARBALL"
    1.26  CONFIG_FILES="/lib/modules/$VERSION-slitaz/modules.dep"
    1.27 @@ -55,10 +48,10 @@
    1.28  		patch -p1 < $WOK/$PACKAGE/slitaz/$patch_file || { report close-bloc; return 1; }
    1.29  		touch done.$patch_file
    1.30  	done <<EOT
    1.31 -$PACKAGE-diff-$BASE_VERSION.u
    1.32 -$PACKAGE-unlzma-$BASE_VERSION.u
    1.33 -$PACKAGE-header-$BASE_VERSION.u
    1.34 -$PACKAGE-freeinitrd-$BASE_VERSION.u
    1.35 +$PACKAGE-diff-$VERSION.u
    1.36 +$PACKAGE-unlzma-$VERSION.u
    1.37 +$PACKAGE-header-$VERSION.u
    1.38 +$PACKAGE-freeinitrd-$VERSION.u
    1.39  aufs2-base.patch
    1.40  aufs2-standalone.patch
    1.41  001-squashfs-decompressors-add-xz-decompressor-module.patch
    1.42 @@ -75,7 +68,7 @@
    1.43  
    1.44  	report step "Make bzImage without modules first"
    1.45  	# Build bzImage without modules first
    1.46 -	cp -f $stuff/$PACKAGE-$BASE_VERSION-slitaz.config .config
    1.47 +	cp -f $stuff/$PACKAGE-$VERSION-slitaz.config .config
    1.48  	sed -i 's/CONFIG_MODULES=y/# CONFIG_MODULES is not set/' .config
    1.49  	# We can't keep every driver in staging 
    1.50  	sed -i -e 's/^CONFIG_RTL8192/#&/' \
    1.51 @@ -89,7 +82,7 @@
    1.52  
    1.53  	report step "Now build bzImage with modules"
    1.54  	# Build bzImage with modules
    1.55 -	cp -f $stuff/$PACKAGE-$BASE_VERSION-slitaz.config .config
    1.56 +	cp -f $stuff/$PACKAGE-$VERSION-slitaz.config .config
    1.57  	make oldconfig
    1.58  	ln .config $WOK/$PACKAGE/slitaz/config
    1.59  	make -j 4 bzImage &&
    1.60 @@ -123,7 +116,7 @@
    1.61      export _pkg
    1.62      mkdir $WOK/$PACKAGE/tmp
    1.63      $WOK/$PACKAGE/stuff/list_modules.sh \
    1.64 -	$(cat $stuff/modules-$BASE_VERSION.list) > $WOK/$PACKAGE/tmp/modules.list
    1.65 +	$(cat stuff/modules-$VERSION.list) > $WOK/$PACKAGE/tmp/modules.list
    1.66      while read module; do
    1.67      	dir=$(dirname $module)
    1.68      	[ -d $path/$dir ] || mkdir -p $path/$dir