wok rev 14351

linux: add EXTRA_SOURCE_FILES
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 15 11:49:30 2013 +0200 (2013-04-15)
parents cadb930e57f8
children 44c65752ed20
files linux-api-headers/receipt linux-uml/receipt linux/receipt
line diff
     1.1 --- a/linux-api-headers/receipt	Mon Apr 15 10:46:09 2013 +0200
     1.2 +++ b/linux-api-headers/receipt	Mon Apr 15 11:49:30 2013 +0200
     1.3 @@ -14,7 +14,9 @@
     1.4  
     1.5  BUILD_DEPENDS="bash wget"
     1.6  
     1.7 -[ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz"
     1.8 +[ "$KBASEVER" != "$VERSION" ] && 
     1.9 +PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" &&
    1.10 +EXTRA_SOURCE_FILES="$(basename $PATCH)"
    1.11  
    1.12  # Rules to compile & install the temporary toolchain.
    1.13  cook_tmp_toolchain()
     2.1 --- a/linux-uml/receipt	Mon Apr 15 10:46:09 2013 +0200
     2.2 +++ b/linux-uml/receipt	Mon Apr 15 11:49:30 2013 +0200
     2.3 @@ -11,13 +11,15 @@
     2.4  TARBALL="$SOURCE-$KBASEVER.tar.xz"
     2.5  WEB_SITE="http://www.kernel.org/"
     2.6  WGET_URL="ftp://ftp.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
     2.7 +[ "$KBASEVER" != "$VERSION" ] && 
     2.8 +PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" &&
     2.9 +EXTRA_SOURCE_FILES="$(basename $PATCH)"
    2.10  
    2.11  # Rules to configure and make the package.
    2.12  compile_rules()
    2.13  {
    2.14  	cd $src
    2.15  	if [ "$KBASEVER" != "$VERSION" ]; then
    2.16 -		PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz"
    2.17  		[ -s $SRC/$(basename $PATCH) ] ||
    2.18  		wget $PATCH -O $SRC/$(basename $PATCH)
    2.19  		xzcat $SRC/$(basename $PATCH) | patch -Np1
     3.1 --- a/linux/receipt	Mon Apr 15 10:46:09 2013 +0200
     3.2 +++ b/linux/receipt	Mon Apr 15 11:49:30 2013 +0200
     3.3 @@ -15,8 +15,9 @@
     3.4  BUILD_DEPENDS="slitaz-toolchain perl git xz lzma patch uclibc-cross-compiler-x86_64"
     3.5  
     3.6  # Use version patch so we dont dl full kernel source on each minor update
     3.7 -[ "$KBASEVER" != "$VERSION" ] && \
     3.8 -	PATCH="ftp://ftp.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz"
     3.9 +[ "$KBASEVER" != "$VERSION" ] && 
    3.10 +PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" &&
    3.11 +EXTRA_SOURCE_FILES="$(basename $PATCH)"
    3.12  
    3.13  # Aufs enable chroot
    3.14  AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("