prebuilt.mk revision 6feb6d5607ce86a446645564212043964628f540
1########################################################### 2## Standard rules for copying files that are prebuilt 3## 4## Additional inputs from base_rules.make: 5## None. 6## 7########################################################### 8 9ifdef LOCAL_IS_HOST_MODULE 10 my_prefix := HOST_ 11else 12 my_prefix := TARGET_ 13endif 14 15include $(BUILD_SYSTEM)/multilib.mk 16 17ifndef my_module_multilib 18# prebuilts default to building for either architecture, 19# the first if its supported, otherwise the second. 20my_module_multilib := both 21endif 22 23# check if first arch is supported 24include $(BUILD_SYSTEM)/module_arch_supported.mk 25ifeq ($(my_module_arch_supported),true) 26# first arch is supported 27include $(BUILD_SYSTEM)/prebuilt_internal.mk 28else ifneq (,$($(my_prefix)2ND_ARCH)) 29# check if secondary arch is supported 30LOCAL_2ND_ARCH_VAR_PREFIX := $($(my_prefix)2ND_ARCH_VAR_PREFIX) 31include $(BUILD_SYSTEM)/module_arch_supported.mk 32ifeq ($(my_module_arch_supported),true) 33# secondary arch is supported 34include $(BUILD_SYSTEM)/prebuilt_internal.mk 35endif 36endif # $(my_prefix)2ND_ARCH 37 38LOCAL_2ND_ARCH_VAR_PREFIX := 39 40my_module_arch_supported := 41