Remove duplicated configuration for android
This commit is contained in:
parent
abd7fd924b
commit
489f60461c
|
@ -58,14 +58,13 @@ tmp/empty_dir:
|
||||||
# Android runtime setup
|
# Android runtime setup
|
||||||
# FIXME: This probably belongs somewhere else
|
# FIXME: This probably belongs somewhere else
|
||||||
|
|
||||||
# target platform specific variables
|
# target platform specific variables for android
|
||||||
# for arm-linux-androidabi
|
|
||||||
define DEF_ADB_DEVICE_STATUS
|
define DEF_ADB_DEVICE_STATUS
|
||||||
CFG_ADB_DEVICE_STATUS=$(1)
|
CFG_ADB_DEVICE_STATUS=$(1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(foreach target,$(CFG_TARGET), \
|
$(foreach target,$(CFG_TARGET), \
|
||||||
$(if $(or $(findstring $(target),"arm-linux-androideabi"),$(findstring $(target),"aarch64-linux-android")), \
|
$(if $(findstring android, $(target)), \
|
||||||
$(if $(findstring adb,$(CFG_ADB)), \
|
$(if $(findstring adb,$(CFG_ADB)), \
|
||||||
$(if $(findstring device,$(shell $(CFG_ADB) devices 2>/dev/null | grep -E '^[_A-Za-z0-9-]+[[:blank:]]+device')), \
|
$(if $(findstring device,$(shell $(CFG_ADB) devices 2>/dev/null | grep -E '^[_A-Za-z0-9-]+[[:blank:]]+device')), \
|
||||||
$(info install: install-runtime-target for $(target) enabled \
|
$(info install: install-runtime-target for $(target) enabled \
|
||||||
|
|
4
mk/rt.mk
4
mk/rt.mk
|
@ -139,9 +139,7 @@ ifeq ($$(CFG_WINDOWSY_$(1)), 1)
|
||||||
JEMALLOC_ARGS_$(1) := --enable-lazy-lock
|
JEMALLOC_ARGS_$(1) := --enable-lazy-lock
|
||||||
else ifeq ($(OSTYPE_$(1)), apple-ios)
|
else ifeq ($(OSTYPE_$(1)), apple-ios)
|
||||||
JEMALLOC_ARGS_$(1) := --disable-tls
|
JEMALLOC_ARGS_$(1) := --disable-tls
|
||||||
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
|
else ifeq ($(findstring android, $(OSTYPE_$(1))), android)
|
||||||
JEMALLOC_ARGS_$(1) := --disable-tls
|
|
||||||
else ifeq ($(OSTYPE_$(1)), linux-android)
|
|
||||||
JEMALLOC_ARGS_$(1) := --disable-tls
|
JEMALLOC_ARGS_$(1) := --disable-tls
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -107,14 +107,13 @@ endef
|
||||||
$(foreach target,$(CFG_TARGET), \
|
$(foreach target,$(CFG_TARGET), \
|
||||||
$(eval $(call DEF_TARGET_COMMANDS,$(target))))
|
$(eval $(call DEF_TARGET_COMMANDS,$(target))))
|
||||||
|
|
||||||
# Target platform specific variables
|
# Target platform specific variables for android
|
||||||
# for arm-linux-androidabi
|
|
||||||
define DEF_ADB_DEVICE_STATUS
|
define DEF_ADB_DEVICE_STATUS
|
||||||
CFG_ADB_DEVICE_STATUS=$(1)
|
CFG_ADB_DEVICE_STATUS=$(1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(foreach target,$(CFG_TARGET), \
|
$(foreach target,$(CFG_TARGET), \
|
||||||
$(if $(or $(findstring $(target),"arm-linux-androideabi"),$(findstring $(target),"aarch64-linux-android")), \
|
$(if $(findstring android, $(target)), \
|
||||||
$(if $(findstring adb,$(CFG_ADB)), \
|
$(if $(findstring adb,$(CFG_ADB)), \
|
||||||
$(if $(findstring device,$(shell $(CFG_ADB) devices 2>/dev/null | grep -E '^[:_A-Za-z0-9-]+[[:blank:]]+device')), \
|
$(if $(findstring device,$(shell $(CFG_ADB) devices 2>/dev/null | grep -E '^[:_A-Za-z0-9-]+[[:blank:]]+device')), \
|
||||||
$(info check: android device attached) \
|
$(info check: android device attached) \
|
||||||
|
@ -137,7 +136,7 @@ $(info check: android device test dir $(CFG_ADB_TEST_DIR) ready \
|
||||||
$(shell $(CFG_ADB) shell mkdir $(CFG_ADB_TEST_DIR)) \
|
$(shell $(CFG_ADB) shell mkdir $(CFG_ADB_TEST_DIR)) \
|
||||||
$(shell $(CFG_ADB) push $(S)src/etc/adb_run_wrapper.sh $(CFG_ADB_TEST_DIR) 1>/dev/null) \
|
$(shell $(CFG_ADB) push $(S)src/etc/adb_run_wrapper.sh $(CFG_ADB_TEST_DIR) 1>/dev/null) \
|
||||||
$(foreach target,$(CFG_TARGET), \
|
$(foreach target,$(CFG_TARGET), \
|
||||||
$(if $(or $(findstring $(target),"arm-linux-androideabi"),$(findstring $(target),"aarch64-linux-android")), \
|
$(if $(findstring android, $(target)), \
|
||||||
$(shell $(CFG_ADB) shell mkdir $(CFG_ADB_TEST_DIR)/$(target)) \
|
$(shell $(CFG_ADB) shell mkdir $(CFG_ADB_TEST_DIR)/$(target)) \
|
||||||
$(foreach crate,$(TARGET_CRATES), \
|
$(foreach crate,$(TARGET_CRATES), \
|
||||||
$(shell $(CFG_ADB) push $(TLIB2_T_$(target)_H_$(CFG_BUILD))/$(call CFG_LIB_GLOB_$(target),$(crate)) \
|
$(shell $(CFG_ADB) push $(TLIB2_T_$(target)_H_$(CFG_BUILD))/$(call CFG_LIB_GLOB_$(target),$(crate)) \
|
||||||
|
@ -436,7 +435,7 @@ $(foreach host,$(CFG_HOST), \
|
||||||
$(foreach crate, $(TEST_CRATES), \
|
$(foreach crate, $(TEST_CRATES), \
|
||||||
$(if $(findstring $(target),$(CFG_BUILD)), \
|
$(if $(findstring $(target),$(CFG_BUILD)), \
|
||||||
$(eval $(call DEF_TEST_CRATE_RULES,$(stage),$(target),$(host),$(crate))), \
|
$(eval $(call DEF_TEST_CRATE_RULES,$(stage),$(target),$(host),$(crate))), \
|
||||||
$(if $(or $(findstring $(target),"arm-linux-androideabi"), $(findstring $(target),"aarch64-linux-android")), \
|
$(if $(findstring android, $(target)), \
|
||||||
$(if $(findstring $(CFG_ADB_DEVICE_STATUS),"true"), \
|
$(if $(findstring $(CFG_ADB_DEVICE_STATUS),"true"), \
|
||||||
$(eval $(call DEF_TEST_CRATE_RULES_android,$(stage),$(target),$(host),$(crate))), \
|
$(eval $(call DEF_TEST_CRATE_RULES_android,$(stage),$(target),$(host),$(crate))), \
|
||||||
$(eval $(call DEF_TEST_CRATE_RULES_null,$(stage),$(target),$(host),$(crate))) \
|
$(eval $(call DEF_TEST_CRATE_RULES_null,$(stage),$(target),$(host),$(crate))) \
|
||||||
|
|
Loading…
Reference in New Issue