From cbc89e80bf941f75717a145e3b83c35da7bda58a Mon Sep 17 00:00:00 2001 From: Po Hu Date: Tue, 25 Apr 2017 08:53:24 +0800 Subject: [PATCH] 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 Merged-In: Ib051f47bb9335930944b8f63fd0fb54fbb867f31 Test: make KATI_EMULATE_FIND=false (cherry picked from 4432b6f3f41d3169c4759799722cf226adf5b579) Bug: 37553659 --- simpleperf/Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpleperf/Android.mk b/simpleperf/Android.mk index f47e08be..af4e7816 100644 --- a/simpleperf/Android.mk +++ b/simpleperf/Android.mk @@ -321,7 +321,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) -- 2.11.0