aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-06-23 18:28:13 +0200
committerDavid 'Digit' Turner <digit@android.com>2011-06-23 18:28:38 +0200
commit04fcb22aa936b2ca326d6e1e35f97b7afb23a3de (patch)
treeb62c294bdd8cfad11fad780e3706eed18ef3305d
parentadc34fb9e9ad0700e9752ca67174c68925ca0c71 (diff)
downloadexternal_qemu-04fcb22aa936b2ca326d6e1e35f97b7afb23a3de.zip
external_qemu-04fcb22aa936b2ca326d6e1e35f97b7afb23a3de.tar.gz
external_qemu-04fcb22aa936b2ca326d6e1e35f97b7afb23a3de.tar.bz2
android-configure.sh: Better platform build detection.
Change-Id: I3de10b579507165160e93c644023ce06bc557ba7
-rw-r--r--android/build/common.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/build/common.sh b/android/build/common.sh
index 050fd90..de4e3c1 100644
--- a/android/build/common.sh
+++ b/android/build/common.sh
@@ -457,11 +457,11 @@ check_android_build ()
unset ANDROID_TOP
IN_ANDROID_BUILD=no
- if [ -z "$ANDROID_PRODUCT_OUT" ] ; then
+ if [ -z "$ANDROID_BUILD_TOP" ] ; then
return ;
fi
- ANDROID_TOP=`cd $ANDROID_PRODUCT_OUT/../../../.. && pwd`
+ ANDROID_TOP=$ANDROID_BUILD_TOP
log "ANDROID_TOP found at $ANDROID_TOP"
# $ANDROID_TOP/config/envsetup.make is for the old tree layout
# $ANDROID_TOP/build/envsetup.sh is for the new one