summaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-12-01 21:40:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-12-01 21:40:25 +0000
commit6f9d7444e801487fb2362955c62c379a681a55f6 (patch)
tree27680f8054a4f4f3910ef8678c23bde8c016c3a6 /benchmarks
parent3e6ef3f90285191976a60d7a94287fb0fec1af5d (diff)
parentf2bb57cfe34fac675691439b93421f1c210e9771 (diff)
downloadbionic-6f9d7444e801487fb2362955c62c379a681a55f6.zip
bionic-6f9d7444e801487fb2362955c62c379a681a55f6.tar.gz
bionic-6f9d7444e801487fb2362955c62c379a681a55f6.tar.bz2
Merge "Fix running the bionic benchmarks on the host."
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/Android.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/benchmarks/Android.mk b/benchmarks/Android.mk
index 00250a5..eb39a85 100644
--- a/benchmarks/Android.mk
+++ b/benchmarks/Android.mk
@@ -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) \