2009-03-04 11:28:42 +08:00
|
|
|
###########################################################
|
|
|
|
## Standard rules for copying files that are prebuilt
|
|
|
|
##
|
|
|
|
## Additional inputs from base_rules.make:
|
|
|
|
## None.
|
2009-08-07 04:02:19 +08:00
|
|
|
##
|
2009-03-04 11:28:42 +08:00
|
|
|
###########################################################
|
|
|
|
|
2011-09-16 03:00:52 +08:00
|
|
|
ifdef LOCAL_IS_HOST_MODULE
|
2014-04-18 01:03:35 +08:00
|
|
|
my_prefix := HOST_
|
|
|
|
else
|
|
|
|
my_prefix := TARGET_
|
|
|
|
endif
|
2014-03-22 03:29:32 +08:00
|
|
|
|
|
|
|
include $(BUILD_SYSTEM)/multilib.mk
|
|
|
|
|
2014-05-17 01:38:43 +08:00
|
|
|
my_skip_non_preferred_arch :=
|
2014-03-22 03:29:32 +08:00
|
|
|
|
|
|
|
# check if first arch is supported
|
2014-10-22 09:34:30 +08:00
|
|
|
LOCAL_2ND_ARCH_VAR_PREFIX :=
|
2014-02-14 07:04:18 +08:00
|
|
|
include $(BUILD_SYSTEM)/module_arch_supported.mk
|
|
|
|
ifeq ($(my_module_arch_supported),true)
|
2014-03-22 03:29:32 +08:00
|
|
|
# first arch is supported
|
2014-02-14 07:04:18 +08:00
|
|
|
include $(BUILD_SYSTEM)/prebuilt_internal.mk
|
2014-05-17 01:38:43 +08:00
|
|
|
ifneq ($(my_module_multilib),both)
|
|
|
|
my_skip_non_preferred_arch := true
|
|
|
|
endif # $(my_module_multilib)
|
|
|
|
endif # $(my_module_arch_supported)
|
|
|
|
|
|
|
|
ifndef my_skip_non_preferred_arch
|
|
|
|
ifneq (,$($(my_prefix)2ND_ARCH))
|
2014-02-14 07:04:18 +08:00
|
|
|
# check if secondary arch is supported
|
2014-04-18 01:03:35 +08:00
|
|
|
LOCAL_2ND_ARCH_VAR_PREFIX := $($(my_prefix)2ND_ARCH_VAR_PREFIX)
|
2014-02-14 07:04:18 +08:00
|
|
|
include $(BUILD_SYSTEM)/module_arch_supported.mk
|
|
|
|
ifeq ($(my_module_arch_supported),true)
|
|
|
|
# secondary arch is supported
|
2014-05-17 01:38:43 +08:00
|
|
|
OVERRIDE_BUILT_MODULE_PATH :=
|
|
|
|
LOCAL_BUILT_MODULE :=
|
|
|
|
LOCAL_INSTALLED_MODULE :=
|
|
|
|
LOCAL_MODULE_STEM :=
|
|
|
|
LOCAL_BUILT_MODULE_STEM :=
|
|
|
|
LOCAL_INSTALLED_MODULE_STEM :=
|
|
|
|
LOCAL_INTERMEDIATE_TARGETS :=
|
2014-02-14 07:04:18 +08:00
|
|
|
include $(BUILD_SYSTEM)/prebuilt_internal.mk
|
2014-05-17 01:38:43 +08:00
|
|
|
endif # $(my_module_arch_supported)
|
|
|
|
endif # $($(my_prefix)2ND_ARCH)
|
|
|
|
endif # $(my_skip_non_preferred_arch) not true
|
2014-01-25 05:34:51 +08:00
|
|
|
|
|
|
|
LOCAL_2ND_ARCH_VAR_PREFIX :=
|
2014-02-14 07:04:18 +08:00
|
|
|
|
|
|
|
my_module_arch_supported :=
|