wok-6.x rev 1452

squashfs kqemu; fix kernel wok path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 03 13:57:14 2008 +0000 (2008-10-03)
parents 788eb14d270a
children 17d849de3b0b
files kqemu/receipt squashfs/receipt
line diff
     1.1 --- a/kqemu/receipt	Fri Oct 03 13:43:47 2008 +0000
     1.2 +++ b/kqemu/receipt	Fri Oct 03 13:57:14 2008 +0000
     1.3 @@ -14,10 +14,10 @@
     1.4  compile_rules()
     1.5  {
     1.6  	local dir
     1.7 -	if [ ! -d ../linux/taz ]; then
     1.8 +	if [ ! -d $WOK/linux/taz ]; then
     1.9  		tazwok cook linux
    1.10  	fi
    1.11 -	dir=$(cd ../linux/taz/linux*/fs ; ls -d lib/modules/*)/misc
    1.12 +	dir=$(cd $WOK/linux/taz/linux*/fs ; ls -d lib/modules/*)/misc
    1.13  	cd $src
    1.14  	./configure --prefix=/usr --kernel-path=$(ls -d ../../linux/linux-*) \
    1.15  		    --host-cc=gcc-3 --cc=gcc-3
    1.16 @@ -34,7 +34,7 @@
    1.17  genpkg_rules()
    1.18  {
    1.19  	local kver
    1.20 -	kver=$(grep "kernel version" ../linux/linux-*/.config)
    1.21 +	kver=$(grep "kernel version" $WOK/linux/linux-*/.config)
    1.22  	EXTRAVERSION=_${kver##* }
    1.23  	cp -a $_pkg/* $fs
    1.24  }
     2.1 --- a/squashfs/receipt	Fri Oct 03 13:43:47 2008 +0000
     2.2 +++ b/squashfs/receipt	Fri Oct 03 13:57:14 2008 +0000
     2.3 @@ -19,10 +19,10 @@
     2.4  
     2.5  	ln -s . $src
     2.6  	# get kernel version
     2.7 -	if [ ! -d ../linux/taz ]; then
     2.8 +	if [ ! -d $WOK/linux/taz ]; then
     2.9  		tazwok cook linux
    2.10  	fi
    2.11 -	kver=$(grep "kernel version" ../linux/linux-*/.config)
    2.12 +	kver=$(grep "kernel version" $WOK/linux/linux-*/.config)
    2.13  	kver=${kver##* }
    2.14  
    2.15  	# Select patch according to kernel version
    2.16 @@ -74,10 +74,10 @@
    2.17  	
    2.18  	# Apply lzma patches
    2.19  #	echo "Apply stuff/lzma.u.."
    2.20 -#	patch -p0 < ../stuff/lzma.u
    2.21 +#	patch -p0 < ../stuff/lzma.u || return 1
    2.22  	
    2.23  	# Build kernel module
    2.24 -	make -C src/. SUBDIRS=$(pwd)/fs/squashfs/ CONFIG_SQUASHFS=m modules
    2.25 +	make -C src/. SUBDIRS=$(pwd)/fs/squashfs/ CONFIG_SQUASHFS=m modules || return 1
    2.26  	cd ..
    2.27  	[ -d _pkg ] && rm -rf _pkg
    2.28  	mkdir -p _pkg/lib/modules/$kver-slitaz/kernel/fs/squashfs
    2.29 @@ -88,7 +88,7 @@
    2.30  
    2.31  	# Build user land tools
    2.32  	cd ${PACKAGE}${VERSION}/squashfs-tools
    2.33 -	make
    2.34 +	make || return 1
    2.35  	cp mksquashfs ../../_pkg/usr/sbin
    2.36  	cp unsquashfs ../../_pkg/sbin
    2.37  }