cookutils rev 395
coo arch-setup: add support for x86_64
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 13 02:52:55 2012 +0200 (2012-05-13) |
parents | 07b26101f8da |
children | 0f5fca6fa116 |
files | cook |
line diff
1.1 --- a/cook Sun May 13 02:12:24 2012 +0200 1.2 +++ b/cook Sun May 13 02:52:55 2012 +0200 1.3 @@ -929,14 +929,25 @@ 1.4 find $SLITAZ -maxdepth 2 -exec chmod g+w {} \; 1.5 separator 1.6 gettext -e "All done, ready to cook packages :-)\n\n" ;; 1.7 - arm-setup) 1.8 - # Setup for cross ARM compiling. 1.9 + *-setup) 1.10 + # Setup for cross compiling. 1.11 + arch=${1%-setup} 1.12 sed -i \ 1.13 - -e s'/ARCH=.*/ARCH="arm"/' \ 1.14 - -e s'/CFLAGS=.*/CFLAGS="-march=armv6"/' \ 1.15 + -e s'/ARCH=.*/ARCH="$arch"/' \ 1.16 -e s'/BUILD_SYSTEM=.*/BUILD_SYSTEM=i486-slitaz-linux/' \ 1.17 - -e s'/HOST_SYSTEM=.*/HOST_SYSTEM=$ARCH-slitaz-linux-gnueabi/' \ 1.18 - /etc/slitaz/cook.conf 1.19 + /etc/slitaz/cook.conf 1.20 + case "$arch" in 1.21 + arm) 1.22 + sed -i \ 1.23 + -e s'/CFLAGS=.*/CFLAGS="-march=armv6"/' \ 1.24 + -e s'/HOST_SYSTEM=.*/HOST_SYSTEM=$ARCH-slitaz-linux-gnueabi/' \ 1.25 + /etc/slitaz/cook.conf ;; 1.26 + x86_64) 1.27 + sed -i \ 1.28 + -e s'/CFLAGS=.*/CFLAGS=""/' \ 1.29 + -e s'/HOST_SYSTEM=.*/HOST_SYSTEM=$ARCH-slitaz-linux/' \ 1.30 + /etc/slitaz/cook.conf ;; 1.31 + esac 1.32 . /etc/slitaz/cook.conf 1.33 echo "Target arch : $ARCH" 1.34 echo "Configure args: $CONFIGURE_ARGS"