wok rev 4639

linux-souce: Add tazpkg support (make tazpkg)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Fri Dec 25 22:39:27 2009 +0100 (2009-12-25)
parents 49029e33804e
children d6700680fb11
files linux-source/receipt
line diff
     1.1 --- a/linux-source/receipt	Fri Dec 25 11:35:49 2009 +0100
     1.2 +++ b/linux-source/receipt	Fri Dec 25 22:39:27 2009 +0100
     1.3 @@ -16,7 +16,8 @@
     1.4  		$fs/lib/modules/$VERSION-slitaz/
     1.5  	ln -s linux-$VERSION-slitaz $fs/usr/src/linux
     1.6  	cp -a $src/slitaz $fs/usr/src/linux-$VERSION-slitaz
     1.7 -
     1.8 +	cp -a stuff/buildtaz $fs/usr/src/linux-$VERSION-slitaz/slitaz
     1.9 +	cp -a stuff/make-tazpkg.u $fs/usr/src/linux-$VERSION-slitaz/slitaz
    1.10  	# Copy Aufs2 source files
    1.11  	if [ -d $WOK/$WANTED/aufs2 ]; then
    1.12  		mkdir $fs/usr/src/linux-$VERSION-slitaz/slitaz/aufs2
    1.13 @@ -44,6 +45,12 @@
    1.14  	mv linux-$VERSION linux-$VERSION-slitaz
    1.15  	cd linux-$VERSION-slitaz
    1.16  	cp -pa slitaz/aufs2/* .
    1.17 +	# Add tazpkg support
    1.18 +	if [ -d "scripts/package" ]; then
    1.19 +		cp -pa slitaz/buildtaz scripts/package
    1.20 +		patch -p1 -i slitaz/make-tazpkg.u
    1.21 +	fi
    1.22 +	
    1.23  	while read patch_file; do
    1.24  		echo "Apply $patch_file"
    1.25  		patch -p1 < slitaz/$patch_file
    1.26 @@ -64,6 +71,9 @@
    1.27  $ make modules_install
    1.28  $ cp -a arch/x86/boot/bzImage /boot/vmlinuz-$VERSION-slitaz
    1.29  
    1.30 +To make a Slitaz package with the new kernel and the modules:
    1.31 +$ make tazpkg
    1.32 +
    1.33  See /usr/src/linux-$VERSION-slitaz/README
    1.34  ----
    1.35  EOT
    1.36 @@ -79,3 +89,4 @@
    1.37  	rm -rf /usr/src/linux-$VERSION-slitaz
    1.38  }
    1.39  
    1.40 +