aboutsummaryrefslogtreecommitdiffstats
path: root/android-configure.sh
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-02-07 18:51:07 +0100
committerDavid 'Digit' Turner <digit@android.com>2011-02-07 18:51:07 +0100
commit5b2e7c44fe6add7408bf615b1147c11e6f29a81d (patch)
tree6bd97e12db2dab82ca4eefa1f48f360eea360c8c /android-configure.sh
parent7e539645fe3aa7eb5f9f8e5659b324510ebed25e (diff)
downloadexternal_qemu-5b2e7c44fe6add7408bf615b1147c11e6f29a81d.zip
external_qemu-5b2e7c44fe6add7408bf615b1147c11e6f29a81d.tar.gz
external_qemu-5b2e7c44fe6add7408bf615b1147c11e6f29a81d.tar.bz2
Fix android-configure.sh
The latest patch broke the script because TARGET_ARCH is no longer defined as it should. Use the --arch=x86 option to force an x86 build (which currently fails though), arm being the default. Change-Id: Ie5f508b2caa972620787fc268f8dccc02df65f2b
Diffstat (limited to 'android-configure.sh')
-rwxr-xr-xandroid-configure.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/android-configure.sh b/android-configure.sh
index 9af5c3a..a36ece7 100755
--- a/android-configure.sh
+++ b/android-configure.sh
@@ -29,6 +29,8 @@ OPTION_MINGW=no
HOST_CC=${CC:-gcc}
OPTION_CC=
+TARGET_ARCH=arm
+
for opt do
optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
case "$opt" in
@@ -63,6 +65,8 @@ for opt do
;;
--static) OPTION_STATIC=yes
;;
+ --arch=*) TARGET_ARCH=$optarg
+ ;;
*)
echo "unknown option '$opt', use --help"
exit 1
@@ -81,6 +85,7 @@ EOF
echo " --help print this message"
echo " --install=FILEPATH copy emulator executable to FILEPATH [$TARGETS]"
echo " --cc=PATH specify C compiler [$HOST_CC]"
+ echo " --arch=ARM specify target architecture [$TARGET_ARCH]"
echo " --sdl-config=FILE use specific sdl-config script [$SDL_CONFIG]"
echo " --no-strip do not strip emulator executable"
echo " --debug enable debug (-O0 -g) build"