@@ -107,14 +107,13 @@ endef
107
107
$(foreach target,$(CFG_TARGET), \
108
108
$(eval $(call DEF_TARGET_COMMANDS,$(target))))
109
109
110
- # Target platform specific variables
111
- # for arm-linux-androidabi
110
+ # Target platform specific variables for android
112
111
define DEF_ADB_DEVICE_STATUS
113
112
CFG_ADB_DEVICE_STATUS=$(1 )
114
113
endef
115
114
116
115
$(foreach target,$(CFG_TARGET), \
117
- $(if $(or $( findstring $(target),"arm-linux-androideabi"),$(findstring $(target),"aarch64-linux-android" )), \
116
+ $(if $(findstring android, $(target)), \
118
117
$(if $(findstring adb,$(CFG_ADB)), \
119
118
$(if $(findstring device,$(shell $(CFG_ADB ) devices 2>/dev/null | grep -E '^[ :_A-Za-z0-9-]+[[:blank:]]+device')), \
120
119
$(info check : android device attached) \
@@ -137,7 +136,7 @@ $(info check: android device test dir $(CFG_ADB_TEST_DIR) ready \
137
136
$(shell $(CFG_ADB) shell mkdir $(CFG_ADB_TEST_DIR)) \
138
137
$(shell $(CFG_ADB) push $(S)src/etc/adb_run_wrapper.sh $(CFG_ADB_TEST_DIR) 1>/dev/null) \
139
138
$(foreach target,$(CFG_TARGET), \
140
- $(if $(or $( findstring $(target),"arm-linux-androideabi"),$(findstring $(target),"aarch64-linux-android" )), \
139
+ $(if $(findstring android, $(target)), \
141
140
$(shell $(CFG_ADB) shell mkdir $(CFG_ADB_TEST_DIR)/$(target)) \
142
141
$(foreach crate,$(TARGET_CRATES), \
143
142
$(shell $(CFG_ADB) push $(TLIB2_T_$(target)_H_$(CFG_BUILD))/$(call CFG_LIB_GLOB_$(target),$(crate)) \
@@ -463,7 +462,7 @@ $(foreach host,$(CFG_HOST), \
463
462
$(foreach crate, $(TEST_CRATES), \
464
463
$(if $(findstring $(target),$(CFG_BUILD)), \
465
464
$(eval $(call DEF_TEST_CRATE_RULES,$(stage),$(target),$(host),$(crate))), \
466
- $(if $(or $( findstring $(target),"arm-linux-androideabi"), $(findstring $( target),"aarch64-linux-android" )), \
465
+ $(if $(findstring android, $(target)), \
467
466
$(if $(findstring $(CFG_ADB_DEVICE_STATUS),"true"), \
468
467
$(eval $(call DEF_TEST_CRATE_RULES_android,$(stage),$(target),$(host),$(crate))), \
469
468
$(eval $(call DEF_TEST_CRATE_RULES_null,$(stage),$(target),$(host),$(crate))) \
0 commit comments