package.mk revision 8e4041271dcee2aff001ac1f98527c5057415183
1# 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".
5
6LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true
7
8# 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
21endif
22endif # TARGET_2ND_ARCH
23
24LOCAL_2ND_ARCH_VAR_PREFIX :=
25LOCAL_NO_2ND_ARCH_MODULE_SUFFIX :=
26
27my_module_arch_supported :=
28