wok rev 15921

linux: fix build for arm
author Christophe Lincoln <pankso@slitaz.org>
date Tue Feb 18 22:42:59 2014 +0100 (2014-02-18)
parents 89cf79341e90
children 801fc6a118a2
files linux/receipt
line diff
     1.1 --- a/linux/receipt	Tue Feb 18 20:18:29 2014 +0000
     1.2 +++ b/linux/receipt	Tue Feb 18 22:42:59 2014 +0100
     1.3 @@ -37,16 +37,19 @@
     1.4  
     1.5  # Handle multiarch installation. ARM use Busybox modutils, so avoid any
     1.6  # deps on kmod. SLITAZ_ARCH can have also custom post_install commands
     1.7 -. $root/etc/slitaz/slitaz.conf || exit 1
     1.8 -case "$SLITAZ_ARCH" in
     1.9 -	arm) DEPENDS="" ;;
    1.10 -esac
    1.11 +if [ -f $root/etc/slitaz/slitaz.conf ]; then
    1.12 +	. $root/etc/slitaz/slitaz.conf
    1.13 +	case "$SLITAZ_ARCH" in
    1.14 +		arm) DEPENDS="" ;;
    1.15 +	esac
    1.16 +fi
    1.17  
    1.18  # Rules to configure and make the package.
    1.19  compile_rules()
    1.20  {
    1.21 -	cd $src
    1.22 -	cp /usr/share/boot/initrd initrd.cpio
    1.23 +	if [ -f "/usr/share/boot/initrd" ]; then
    1.24 +		cp /usr/share/boot/initrd initrd.cpio
    1.25 +	fi
    1.26  
    1.27  	# Handle cross compilation
    1.28  	case "$ARCH" in
    1.29 @@ -63,6 +66,7 @@
    1.30  			mkdir -p $DESTDIR/boot &&
    1.31  			cp -a arch/arm/boot/zImage \
    1.32  				$DESTDIR/boot/linux-$VERSION-slitaz-$ARCH
    1.33 +			#$stuff/gztazmod.sh $DESTDIR/lib/modules/$VERSION-slitaz
    1.34  			return 0 ;;
    1.35  		x86_64)
    1.36  			echo "TODO: Maybe use default ? But cross compile in x86_64 chroot"