The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | ########################################################### |
| 2 | ## Standard rules for copying files that are prebuilt |
| 3 | ## |
| 4 | ## Additional inputs from base_rules.make: |
| 5 | ## None. |
Doug Zongker | 1046d20 | 2009-08-06 13:02:19 -0700 | [diff] [blame] | 6 | ## |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 7 | ########################################################### |
| 8 | |
Ying Wang | c36b450 | 2011-09-15 12:00:52 -0700 | [diff] [blame] | 9 | ifdef LOCAL_IS_HOST_MODULE |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 10 | my_prefix := HOST_ |
| 11 | else |
| 12 | my_prefix := TARGET_ |
| 13 | endif |
Colin Cross | e6e48f6 | 2014-03-21 12:29:32 -0700 | [diff] [blame] | 14 | |
| 15 | include $(BUILD_SYSTEM)/multilib.mk |
| 16 | |
| 17 | ifndef my_module_multilib |
| 18 | # prebuilts default to building for either architecture, |
| 19 | # the first if its supported, otherwise the second. |
| 20 | my_module_multilib := both |
| 21 | endif |
| 22 | |
| 23 | # check if first arch is supported |
Colin Cross | e18cb93 | 2014-02-13 15:04:18 -0800 | [diff] [blame] | 24 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 25 | ifeq ($(my_module_arch_supported),true) |
Colin Cross | e6e48f6 | 2014-03-21 12:29:32 -0700 | [diff] [blame] | 26 | # first arch is supported |
Colin Cross | e18cb93 | 2014-02-13 15:04:18 -0800 | [diff] [blame] | 27 | include $(BUILD_SYSTEM)/prebuilt_internal.mk |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 28 | else ifneq (,$($(my_prefix)2ND_ARCH)) |
Colin Cross | e18cb93 | 2014-02-13 15:04:18 -0800 | [diff] [blame] | 29 | # check if secondary arch is supported |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 30 | LOCAL_2ND_ARCH_VAR_PREFIX := $($(my_prefix)2ND_ARCH_VAR_PREFIX) |
Colin Cross | e18cb93 | 2014-02-13 15:04:18 -0800 | [diff] [blame] | 31 | include $(BUILD_SYSTEM)/module_arch_supported.mk |
| 32 | ifeq ($(my_module_arch_supported),true) |
| 33 | # secondary arch is supported |
| 34 | include $(BUILD_SYSTEM)/prebuilt_internal.mk |
Ying Wang | c36b450 | 2011-09-15 12:00:52 -0700 | [diff] [blame] | 35 | endif |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 36 | endif # $(my_prefix)2ND_ARCH |
Colin Cross | 0b70c43 | 2014-01-24 13:34:51 -0800 | [diff] [blame] | 37 | |
| 38 | LOCAL_2ND_ARCH_VAR_PREFIX := |
Colin Cross | e18cb93 | 2014-02-13 15:04:18 -0800 | [diff] [blame] | 39 | |
| 40 | my_module_arch_supported := |