package.mk revision e6e48f67d8fac2b5a29dbfeb1ad40610a451b792
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_MULTILIB := 32".
5
6include $(BUILD_SYSTEM)/multilib.mk
7
8ifndef my_module_multilib
9# packages default to building for either architecture,
10# the first if its supported, otherwise the second.
11my_module_multilib := both
12endif
13
14LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true
15
16# check if first arch is supported
17LOCAL_2ND_ARCH_VAR_PREFIX :=
18include $(BUILD_SYSTEM)/module_arch_supported.mk
19ifeq ($(my_module_arch_supported),true)
20# first arch is supported
21include $(BUILD_SYSTEM)/package_internal.mk
22else ifneq (,$(TARGET_2ND_ARCH))
23# check if secondary arch is supported
24LOCAL_2ND_ARCH_VAR_PREFIX := $(TARGET_2ND_ARCH_VAR_PREFIX)
25include $(BUILD_SYSTEM)/module_arch_supported.mk
26ifeq ($(my_module_arch_supported),true)
27# secondary arch is supported
28include $(BUILD_SYSTEM)/package_internal.mk
29endif
30endif # TARGET_2ND_ARCH
31
32LOCAL_2ND_ARCH_VAR_PREFIX :=
33LOCAL_NO_2ND_ARCH_MODULE_SUFFIX :=
34
35my_module_arch_supported :=
36