# HG changeset patch # User Christophe Lincoln # Date 1337430595 -7200 # Node ID b2edbfaef132d315c26f7144e6e19f9aba78c3d4 # Parent 50cd87593dae41e0db1e1d8bb62d0ebd4c1b3b61 cross: small fixe and use CROSS_PREFIX to install bdeps in a cross compile environement diff -r 50cd87593dae -r b2edbfaef132 cook --- a/cook Sat May 19 05:17:29 2012 +0200 +++ b/cook Sat May 19 14:29:55 2012 +0200 @@ -535,12 +535,17 @@ echo "ERROR: missing dep $nb" && exit 1 fi + # Set root path when cross compiling. ARM tested but not x86_64 + case "$ARCH" in + arm) root=$CROSS_PREFIX ;; + esac + # Install local packages. cd $PKGS for i in $(uniq $CACHE/installed.local) do gettext "Installing dep (pkg/local):"; echo " $i" - tazpkg install $i >/dev/null + tazpkg install $i --root=$root >/dev/null done # Install web or cached packages (if mirror is set to $PKGS we only @@ -548,7 +553,7 @@ for i in $(uniq $CACHE/installed.web) do gettext "Installing dep (web/cache):"; echo " $i" - tazpkg get-install $i >/dev/null + tazpkg get-install $i --root=$root >/dev/null done # If a cook failed deps are removed. diff -r 50cd87593dae -r b2edbfaef132 cross --- a/cross Sat May 19 05:17:29 2012 +0200 +++ b/cross Sat May 19 14:29:55 2012 +0200 @@ -83,7 +83,6 @@ [ -f "$GLIBC_TARBALL" ] || wget $GLIBC_WGET [ -f "$GCC_TARBALL" ] || wget $GCC_WGET [ -f "$BUSYBOX_TARBALL" ] || wget $BUSYBOX_WGET - [ -f "$PKGCONFIG_TARBALL" ] || wget $PKGCONFIG_WGET } # Use sysroot or not ?