blob: b40ac37f679ee1fc2c4b6094882ec3d31c8fc7c9 [file] [log] [blame]
Colin Cross8e404122014-02-06 14:45:37 -08001# We don't automatically set up rules to build packages for both
2# TARGET_ARCH and TARGET_2ND_ARCH.
3# By default, an package is built for TARGET_ARCH.
4# To build it for TARGET_2ND_ARCH in a 64bit product, use "LOCAL_32_BIT_ONLY := true".
Joe Onorato899e62a2010-02-04 17:37:21 -08005
Colin Cross58d879f2014-02-04 11:16:16 -08006LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true
7
Colin Cross8e404122014-02-06 14:45:37 -08008# check if primary arch is supported
9LOCAL_2ND_ARCH_VAR_PREFIX :=
10include $(BUILD_SYSTEM)/module_arch_supported.mk
11ifeq ($(my_module_arch_supported),true)
12# primary arch is supported
13include $(BUILD_SYSTEM)/package_internal.mk
14else ifneq (,$(TARGET_2ND_ARCH))
15# check if secondary arch is supported
16LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX)
17include $(BUILD_SYSTEM)/module_arch_supported.mk
18ifeq ($(my_module_arch_supported),true)
19# secondary arch is supported
20include $(BUILD_SYSTEM)/package_internal.mk
Joe Onorato899e62a2010-02-04 17:37:21 -080021endif
Colin Cross8e404122014-02-06 14:45:37 -080022endif # TARGET_2ND_ARCH
Colin Cross58d879f2014-02-04 11:16:16 -080023
Colin Cross2343cfb2014-01-24 13:33:39 -080024LOCAL_2ND_ARCH_VAR_PREFIX :=
Colin Cross8e404122014-02-06 14:45:37 -080025LOCAL_NO_2ND_ARCH_MODULE_SUFFIX :=
26
27my_module_arch_supported :=