@@ -111,14 +111,15 @@ $(foreach target,$(CFG_TARGET), \
111111# for arm-linux-androidabi
112112define DEF_ADB_DEVICE_STATUS
113113CFG_ADB_DEVICE_STATUS=$(1 )
114+ CFG_ANDROID_TARGET_TRIPLE=$(2 )
114115endef
115116
116117$(foreach target,$(CFG_TARGET), \
117- $(if $(findstring $(target),"arm-linux-androideabi"), \
118+ $(if $(or $( findstring $(target),"arm-linux-androideabi"),$(findstring $(target),"aarch64-linux-android") ), \
118119 $(if $(findstring adb,$(CFG_ADB)), \
119120 $(if $(findstring device,$(shell $(CFG_ADB ) devices 2>/dev/null | grep -E '^[ :_A-Za-z0-9-]+[[:blank:]]+device')), \
120121 $(info check : android device attached) \
121- $(eval $(call DEF_ADB_DEVICE_STATUS, true)), \
122+ $(eval $(call DEF_ADB_DEVICE_STATUS, true, $(target) )), \
122123 $(info check : android device not attached) \
123124 $(eval $(call DEF_ADB_DEVICE_STATUS, false)) \
124125 ), \
@@ -138,7 +139,7 @@ $(info check: android device test dir $(CFG_ADB_TEST_DIR) ready \
138139 $(shell $(CFG_ADB) shell mkdir $(CFG_ADB_TEST_DIR)/tmp) \
139140 $(shell $(CFG_ADB) push $(S)src/etc/adb_run_wrapper.sh $(CFG_ADB_TEST_DIR) 1>/dev/null) \
140141 $(foreach crate,$(TARGET_CRATES), \
141- $(shell $(CFG_ADB) push $(TLIB2_T_arm-linux-androideabi_H_$( CFG_BUILD))/$(call CFG_LIB_GLOB_arm-linux-androideabi ,$(crate)) \
142+ $(shell $(CFG_ADB) push $(TLIB2_T_$(CFG_ANDROID_TARGET_TRIPLE)_H_$( CFG_BUILD))/$(call CFG_LIB_GLOB_$(CFG_ANDROID_TARGET_TRIPLE) ,$(crate)) \
142143 $(CFG_ADB_TEST_DIR))) \
143144 )
144145else
@@ -393,7 +394,7 @@ $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
393394 && touch $$@
394395endef
395396
396- define DEF_TEST_CRATE_RULES_arm-linux-androideabi
397+ define DEF_TEST_CRATE_RULES_android
397398check-stage$(1 ) -T-$(2 ) -H-$(3 ) -$(4 ) -exec: $$(call TEST_OK_FILE,$(1 ) ,$(2 ) ,$(3 ) ,$(4 ) )
398399
399400$$(call TEST_OK_FILE,$(1 ) ,$(2 ) ,$(3 ) ,$(4 ) ) : \
@@ -434,9 +435,9 @@ $(foreach host,$(CFG_HOST), \
434435 $(foreach crate, $(TEST_CRATES), \
435436 $(if $(findstring $(target),$(CFG_BUILD)), \
436437 $(eval $(call DEF_TEST_CRATE_RULES,$(stage),$(target),$(host),$(crate))), \
437- $(if $(findstring $(target),"arm-linux-androideabi"), \
438+ $(if $(or $( findstring $(target),"arm-linux-androideabi"), $(findstring $(target),"aarch64-linux-android") ), \
438439 $(if $(findstring $(CFG_ADB_DEVICE_STATUS),"true"), \
439- $(eval $(call DEF_TEST_CRATE_RULES_arm-linux-androideabi ,$(stage),$(target),$(host),$(crate))), \
440+ $(eval $(call DEF_TEST_CRATE_RULES_android ,$(stage),$(target),$(host),$(crate))), \
440441 $(eval $(call DEF_TEST_CRATE_RULES_null,$(stage),$(target),$(host),$(crate))) \
441442 ), \
442443 $(eval $(call DEF_TEST_CRATE_RULES,$(stage),$(target),$(host),$(crate))) \
0 commit comments