2014-01-18 01:17:28 +01:00
|
|
|
# We don't automatically set up rules to build executables for both
|
|
|
|
# TARGET_ARCH and TARGET_2ND_ARCH.
|
|
|
|
# By default, an executable is built for TARGET_ARCH.
|
2014-01-30 03:20:01 +01:00
|
|
|
# To build it for TARGET_2ND_ARCH in a 64bit product, use "LOCAL_32_BIT_ONLY := true".
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2014-02-11 07:26:23 +01:00
|
|
|
ifeq ($(TARGET_PREFER_32_BIT),true)
|
|
|
|
ifneq ($(LOCAL_NO_2ND_ARCH),true)
|
|
|
|
LOCAL_32_BIT_ONLY := true
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2014-02-06 23:45:37 +01:00
|
|
|
LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true
|
|
|
|
|
|
|
|
# check if primary arch is supported
|
|
|
|
include $(BUILD_SYSTEM)/module_arch_supported.mk
|
|
|
|
ifeq ($(my_module_arch_supported),true)
|
|
|
|
# primary arch is supported
|
|
|
|
include $(BUILD_SYSTEM)/executable_internal.mk
|
|
|
|
else ifneq (,$(TARGET_2ND_ARCH))
|
|
|
|
# check if secondary arch is supported
|
2014-01-18 01:17:28 +01:00
|
|
|
LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX)
|
2014-02-06 23:45:37 +01:00
|
|
|
include $(BUILD_SYSTEM)/module_arch_supported.mk
|
|
|
|
ifeq ($(my_module_arch_supported),true)
|
|
|
|
# secondary arch is supported
|
|
|
|
include $(BUILD_SYSTEM)/executable_internal.mk
|
2009-03-04 04:28:42 +01:00
|
|
|
endif
|
2014-02-06 23:45:37 +01:00
|
|
|
endif # TARGET_2ND_ARCH
|
2013-01-16 00:28:08 +01:00
|
|
|
|
2014-01-18 01:17:28 +01:00
|
|
|
LOCAL_2ND_ARCH_VAR_PREFIX :=
|
2014-02-04 20:16:16 +01:00
|
|
|
LOCAL_NO_2ND_ARCH_MODULE_SUFFIX :=
|
2014-02-06 23:45:37 +01:00
|
|
|
|
|
|
|
my_module_arch_supported :=
|