summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Hu <po.hu@mediatek.com>2017-04-25 08:53:24 +0800
committerPo Hu <po.hu@mediatek.com>2017-04-27 09:54:17 +0000
commit4432b6f3f41d3169c4759799722cf226adf5b579 (patch)
tree43d3431a7ef19b43686b5a00c0b69a54c529dd85
parente779206ade8deeec365e0e8f4fd100a8c98f07f0 (diff)
downloadextras-4432b6f3f41d3169c4759799722cf226adf5b579.tar.gz
Fix wrong usage of * in find command
When KATI_FIND_EMULATOR is disabled, the following warning message will appear: find: paths must precede expression: build_id.h Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] Because the * in 'find some/path -name *' command is wrongly expanded by shell. We should change * to "*". Change-Id: Ib051f47bb9335930944b8f63fd0fb54fbb867f31 Test: make KATI_EMULATE_FIND=false
-rw-r--r--simpleperf/Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/Android.mk b/simpleperf/Android.mk
index b654cdd7..eb72d884 100644
--- a/simpleperf/Android.mk
+++ b/simpleperf/Android.mk
@@ -322,7 +322,7 @@ LOCAL_SRC_FILES := \
$(simpleperf_unit_test_src_files_linux) \
LOCAL_STATIC_LIBRARIES += libsimpleperf $(simpleperf_static_libraries_target)
-LOCAL_TEST_DATA := $(call find-test-data-in-subdirs,$(LOCAL_PATH),*,testdata)
+LOCAL_TEST_DATA := $(call find-test-data-in-subdirs,$(LOCAL_PATH),"*",testdata)
LOCAL_MULTILIB := both
LOCAL_FORCE_STATIC_EXECUTABLE := true
include $(LLVM_DEVICE_BUILD_MK)