]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/commitdiff
Fix running the bionic benchmarks on the host.
authorElliott Hughes <enh@google.com>
Mon, 1 Dec 2014 21:11:38 +0000 (13:11 -0800)
committerElliott Hughes <enh@google.com>
Mon, 1 Dec 2014 21:11:38 +0000 (13:11 -0800)
Bug: 18556607
Change-Id: I4e75bfcde788b43e1926be1b0146acf09b496390

benchmarks/Android.mk

index 00250a5c8bc4bed2c198a99998476210dfc52cdb..eb39a8590a5791272d09689bd3c78c46aed84714 100644 (file)
@@ -63,13 +63,13 @@ NATIVE_SUFFIX=64
 endif
 
 bionic-benchmarks-run-on-host: bionic-benchmarks $(TARGET_OUT_EXECUTABLES)/$(LINKER) $(TARGET_OUT_EXECUTABLES)/sh
-       if [ ! -d /system -o ! -d /system/bin ]; then \
-         echo "Attempting to create /system/bin"; \
-         sudo mkdir -p -m 0777 /system/bin; \
+       if [ ! -d /system ]; then \
+         echo "Attempting to create /system"; \
+         sudo mkdir -p -m 0777 /system; \
        fi
        mkdir -p $(TARGET_OUT_DATA)/local/tmp
-       cp $(TARGET_OUT_EXECUTABLES)/$(LINKER) /system/bin
-       cp $(TARGET_OUT_EXECUTABLES)/sh /system/bin
+       ln -fs `realpath $(TARGET_OUT)/bin` /system/
+       ln -fs `realpath $(TARGET_OUT)/etc` /system/
        ANDROID_DATA=$(TARGET_OUT_DATA) \
        ANDROID_ROOT=$(TARGET_OUT) \
        LD_LIBRARY_PATH=$(TARGET_OUT_SHARED_LIBRARIES) \