@@ -107,14 +107,13 @@ endef
107107$(foreach target,$(CFG_TARGET), \
108108 $(eval $(call DEF_TARGET_COMMANDS,$(target))))
109109
110- # Target platform specific variables
111- # for arm-linux-androidabi
110+ # Target platform specific variables for android
112111define DEF_ADB_DEVICE_STATUS
113112CFG_ADB_DEVICE_STATUS=$(1 )
114113endef
115114
116115$(foreach target,$(CFG_TARGET), \
117- $(if $(or $( findstring $(target),"arm-linux-androideabi"),$(findstring $(target),"aarch64-linux-android" )), \
116+ $(if $(findstring android, $(target)), \
118117 $(if $(findstring adb,$(CFG_ADB)), \
119118 $(if $(findstring device,$(shell $(CFG_ADB ) devices 2>/dev/null | grep -E '^[ :_A-Za-z0-9-]+[[:blank:]]+device')), \
120119 $(info check : android device attached) \
@@ -137,7 +136,7 @@ $(info check: android device test dir $(CFG_ADB_TEST_DIR) ready \
137136 $(shell $(CFG_ADB) shell mkdir $(CFG_ADB_TEST_DIR)) \
138137 $(shell $(CFG_ADB) push $(S)src/etc/adb_run_wrapper.sh $(CFG_ADB_TEST_DIR) 1>/dev/null) \
139138 $(foreach target,$(CFG_TARGET), \
140- $(if $(or $( findstring $(target),"arm-linux-androideabi"),$(findstring $(target),"aarch64-linux-android" )), \
139+ $(if $(findstring android, $(target)), \
141140 $(shell $(CFG_ADB) shell mkdir $(CFG_ADB_TEST_DIR)/$(target)) \
142141 $(foreach crate,$(TARGET_CRATES), \
143142 $(shell $(CFG_ADB) push $(TLIB2_T_$(target)_H_$(CFG_BUILD))/$(call CFG_LIB_GLOB_$(target),$(crate)) \
@@ -436,7 +435,7 @@ $(foreach host,$(CFG_HOST), \
436435 $(foreach crate, $(TEST_CRATES), \
437436 $(if $(findstring $(target),$(CFG_BUILD)), \
438437 $(eval $(call DEF_TEST_CRATE_RULES,$(stage),$(target),$(host),$(crate))), \
439- $(if $(or $( findstring $(target),"arm-linux-androideabi"), $(findstring $( target),"aarch64-linux-android" )), \
438+ $(if $(findstring android, $(target)), \
440439 $(if $(findstring $(CFG_ADB_DEVICE_STATUS),"true"), \
441440 $(eval $(call DEF_TEST_CRATE_RULES_android,$(stage),$(target),$(host),$(crate))), \
442441 $(eval $(call DEF_TEST_CRATE_RULES_null,$(stage),$(target),$(host),$(crate))) \
0 commit comments