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 17my_skip_non_preferred_arch := 18 19# check if first arch is supported 20include $(BUILD_SYSTEM)/module_arch_supported.mk 21ifeq ($(my_module_arch_supported),true) 22# first arch is supported 23include $(BUILD_SYSTEM)/prebuilt_internal.mk 24ifneq ($(my_module_multilib),both) 25my_skip_non_preferred_arch := true 26endif # $(my_module_multilib) 27endif # $(my_module_arch_supported) 28 29ifndef my_skip_non_preferred_arch 30ifneq (,$($(my_prefix)2ND_ARCH)) 31# check if secondary arch is supported 32LOCAL_2ND_ARCH_VAR_PREFIX := $($(my_prefix)2ND_ARCH_VAR_PREFIX) 33include $(BUILD_SYSTEM)/module_arch_supported.mk 34ifeq ($(my_module_arch_supported),true) 35# secondary arch is supported 36OVERRIDE_BUILT_MODULE_PATH := 37LOCAL_BUILT_MODULE := 38LOCAL_INSTALLED_MODULE := 39LOCAL_MODULE_STEM := 40LOCAL_BUILT_MODULE_STEM := 41LOCAL_INSTALLED_MODULE_STEM := 42LOCAL_INTERMEDIATE_TARGETS := 43include $(BUILD_SYSTEM)/prebuilt_internal.mk 44endif # $(my_module_arch_supported) 45endif # $($(my_prefix)2ND_ARCH) 46endif # $(my_skip_non_preferred_arch) not true 47 48LOCAL_2ND_ARCH_VAR_PREFIX := 49 50my_module_arch_supported := 51