wok-current rev 4630

linux-source: aufs2 fix + install speedup (thanks erjo)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Dec 22 10:10:01 2009 +0100 (2009-12-22)
parents aa502dab7c89
children 048addb68a76
files linux-source/receipt
line diff
     1.1 --- a/linux-source/receipt	Mon Dec 21 09:13:25 2009 +0100
     1.2 +++ b/linux-source/receipt	Tue Dec 22 10:10:01 2009 +0100
     1.3 @@ -12,11 +12,22 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -    mkdir -p $fs/usr/src/linux-$VERSION-slitaz $fs/lib/modules/$VERSION-slitaz/
     1.8 -    ln -s linux-$VERSION-slitaz $fs/usr/src/linux
     1.9 -    cp -a $src/slitaz $fs/usr/src/linux-$VERSION-slitaz
    1.10 -    ln -s /usr/src/linux-$VERSION-slitaz $fs/lib/modules/$VERSION-slitaz/source
    1.11 -    ln -s /usr/src/linux-$VERSION-slitaz $fs/lib/modules/$VERSION-slitaz/build
    1.12 +	mkdir -p $fs/usr/src/linux-$VERSION-slitaz \
    1.13 +		$fs/lib/modules/$VERSION-slitaz/
    1.14 +	ln -s linux-$VERSION-slitaz $fs/usr/src/linux
    1.15 +	cp -a $src/slitaz $fs/usr/src/linux-$VERSION-slitaz
    1.16 +
    1.17 +	# Copy Aufs2 source files
    1.18 +	if [ -d $WOK/$WANTED/aufs2 ]; then
    1.19 +		mkdir $fs/usr/src/linux-$VERSION-slitaz/slitaz/aufs2
    1.20 +		cp -a $WOK/$WANTED/aufs2/Documentation \
    1.21 +			$WOK/$WANTED/aufs2/fs $WOK/$WANTED/aufs2/include \
    1.22 +			$fs/usr/src/linux-$VERSION-slitaz/slitaz/aufs2
    1.23 +	fi
    1.24 +	ln -s /usr/src/linux-$VERSION-slitaz \
    1.25 +		$fs/lib/modules/$VERSION-slitaz/source
    1.26 +	ln -s /usr/src/linux-$VERSION-slitaz \
    1.27 +		$fs/lib/modules/$VERSION-slitaz/build
    1.28  }
    1.29  
    1.30  # Post install/remove commands for Tazpkg.
    1.31 @@ -32,12 +43,13 @@
    1.32  	rm -rf linux-$VERSION-slitaz
    1.33  	mv linux-$VERSION linux-$VERSION-slitaz
    1.34  	cd linux-$VERSION-slitaz
    1.35 +	cp -pa slitaz/aufs2/* .
    1.36  	while read patch_file; do
    1.37  		echo "Apply $patch_file"
    1.38  		patch -p1 < slitaz/$patch_file
    1.39  	done < slitaz/patches
    1.40  	[ ! -f System.map ] && cp slitaz/config .config &&
    1.41 -	make oldconfig && make bzImage && make modules
    1.42 +	make oldconfig && make modules_prepare
    1.43  	cat <<EOT
    1.44  ----
    1.45  To modify the kernel configuration: