cookutils rev 423

cross: small fixe and use CROSS_PREFIX to install bdeps in a cross compile environement
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 19 14:29:55 2012 +0200 (2012-05-19)
parents 50cd87593dae
children 5be5153f6e07
files cook cross
line diff
     1.1 --- a/cook	Sat May 19 05:17:29 2012 +0200
     1.2 +++ b/cook	Sat May 19 14:29:55 2012 +0200
     1.3 @@ -535,12 +535,17 @@
     1.4  		echo "ERROR: missing dep $nb" && exit 1
     1.5  	fi
     1.6  
     1.7 +	# Set root path when cross compiling. ARM tested but not x86_64
     1.8 +	case "$ARCH" in
     1.9 +		arm) root=$CROSS_PREFIX ;;
    1.10 +	esac
    1.11 +
    1.12  	# Install local packages.
    1.13  	cd $PKGS
    1.14  	for i in $(uniq $CACHE/installed.local)
    1.15  	do
    1.16  		gettext "Installing dep (pkg/local):"; echo " $i"
    1.17 -		tazpkg install $i >/dev/null
    1.18 +		tazpkg install $i --root=$root >/dev/null
    1.19  	done
    1.20  
    1.21  	# Install web or cached packages (if mirror is set to $PKGS we only
    1.22 @@ -548,7 +553,7 @@
    1.23  	for i in $(uniq $CACHE/installed.web)
    1.24  	do
    1.25  		gettext "Installing dep (web/cache):"; echo " $i"
    1.26 -		tazpkg get-install $i >/dev/null
    1.27 +		tazpkg get-install $i --root=$root >/dev/null
    1.28  	done
    1.29  
    1.30  	# If a cook failed deps are removed.
     2.1 --- a/cross	Sat May 19 05:17:29 2012 +0200
     2.2 +++ b/cross	Sat May 19 14:29:55 2012 +0200
     2.3 @@ -83,7 +83,6 @@
     2.4  	[ -f "$GLIBC_TARBALL" ] || wget $GLIBC_WGET
     2.5  	[ -f "$GCC_TARBALL" ] || wget $GCC_WGET
     2.6  	[ -f "$BUSYBOX_TARBALL" ] || wget $BUSYBOX_WGET
     2.7 -	[ -f "$PKGCONFIG_TARBALL" ] || wget $PKGCONFIG_WGET
     2.8  }
     2.9  
    2.10  # Use sysroot or not ?