The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | # Variables we check: |
| 2 | # HOST_BUILD_TYPE = { release debug } |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 3 | # TARGET_BUILD_TYPE = { release debug } |
| 4 | # and we output a bunch of variables, see the case statement at |
| 5 | # the bottom for the full list |
| 6 | # OUT_DIR is also set to "out" if it's not already set. |
| 7 | # this allows you to set it to somewhere else if you like |
C. Sean Young | cf46998 | 2015-06-09 12:35:45 -0500 | [diff] [blame] | 8 | # SCAN_EXCLUDE_DIRS is an optional, whitespace separated list of |
| 9 | # directories that will also be excluded from full checkout tree |
| 10 | # searches for source or make files, in addition to OUT_DIR. |
| 11 | # This can be useful if you set OUT_DIR to be a different directory |
| 12 | # than other outputs of your build system. |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 13 | |
Colin Cross | c901659 | 2017-03-28 13:07:56 -0700 | [diff] [blame] | 14 | # Returns all words in $1 up to and including $2 |
| 15 | define find_and_earlier |
| 16 | $(strip $(if $(1), |
| 17 | $(firstword $(1)) |
| 18 | $(if $(filter $(firstword $(1)),$(2)),, |
| 19 | $(call find_and_earlier,$(wordlist 2,$(words $(1)),$(1)),$(2))))) |
| 20 | endef |
| 21 | |
| 22 | #$(warning $(call find_and_earlier,A B C,A)) |
| 23 | #$(warning $(call find_and_earlier,A B C,B)) |
| 24 | #$(warning $(call find_and_earlier,A B C,C)) |
| 25 | #$(warning $(call find_and_earlier,A B C,D)) |
| 26 | |
| 27 | define version-list |
| 28 | $(1)PR1 $(1)PD1 $(1)PD2 $(1)PM1 $(1)PM2 |
| 29 | endef |
| 30 | |
| 31 | ALL_VERSIONS := O P Q R S T U V W X Y Z |
| 32 | ALL_VERSIONS := $(foreach v,$(ALL_VERSIONS),$(call version-list,$(v))) |
| 33 | |
| 34 | # Filters ALL_VERSIONS down to the range [$1, $2], and errors if $1 > $2 or $3 is |
| 35 | # not in [$1, $2] |
| 36 | # $(1): min platform version |
| 37 | # $(2): max platform version |
| 38 | # $(3): default platform version |
| 39 | define allowed-platform-versions |
| 40 | $(strip \ |
| 41 | $(if $(filter $(ALL_VERSIONS),$(1)),, |
| 42 | $(error Invalid MIN_PLATFORM_VERSION '$(1)')) |
| 43 | $(if $(filter $(ALL_VERSIONS),$(2)),, |
| 44 | $(error Invalid MAX_PLATFORM_VERSION '$(2)')) |
| 45 | $(if $(filter $(ALL_VERSIONS),$(3)),, |
| 46 | $(error Invalid DEFAULT_PLATFORM_VERSION '$(3)')) |
| 47 | |
| 48 | $(eval allowed_versions_ := $(call find_and_earlier,$(ALL_VERSIONS),$(2))) |
| 49 | |
| 50 | $(if $(filter $(allowed_versions_),$(1)),, |
| 51 | $(error MIN_PLATFORM_VERSION '$(1)' must be before MAX_PLATFORM_VERSION '$(2)')) |
| 52 | |
| 53 | $(eval allowed_versions_ := $(1) \ |
| 54 | $(filter-out $(call find_and_earlier,$(allowed_versions_),$(1)),$(allowed_versions_))) |
| 55 | |
| 56 | $(if $(filter $(allowed_versions_),$(3)),, |
| 57 | $(error DEFAULT_PLATFORM_VERSION '$(3)' must be between MIN_PLATFORM_VERSION '$(1)' and MAX_PLATFORM_VERSION '$(2)')) |
| 58 | |
| 59 | $(allowed_versions_)) |
| 60 | endef |
| 61 | |
| 62 | #$(warning $(call allowed-platform-versions,OPR1,PPR1,OPR1)) |
| 63 | #$(warning $(call allowed-platform-versions,OPM1,PPR1,OPR1)) |
| 64 | |
Joe Onorato | eefd021 | 2009-05-13 00:45:23 -0400 | [diff] [blame] | 65 | # Set up version information. |
| 66 | include $(BUILD_SYSTEM)/version_defaults.mk |
| 67 | |
Colin Cross | c901659 | 2017-03-28 13:07:56 -0700 | [diff] [blame] | 68 | ENABLED_VERSIONS := $(call find_and_earlier,$(ALL_VERSIONS),$(TARGET_PLATFORM_VERSION)) |
| 69 | |
| 70 | $(foreach v,$(ENABLED_VERSIONS), \ |
| 71 | $(eval IS_AT_LEAST_$(v) := true)) |
| 72 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 73 | # --------------------------------------------------------------- |
| 74 | # If you update the build system such that the environment setup |
| 75 | # or buildspec.mk need to be updated, increment this number, and |
| 76 | # people who haven't re-run those will have to do so before they |
| 77 | # can build. Make sure to also update the corresponding value in |
| 78 | # buildspec.mk.default and envsetup.sh. |
Colin Cross | 8873713 | 2017-03-21 17:41:03 -0700 | [diff] [blame] | 79 | CORRECT_BUILD_ENV_SEQUENCE_NUMBER := 13 |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 80 | |
| 81 | # --------------------------------------------------------------- |
Jeff Brown | e33ba4c | 2011-07-11 22:11:46 -0700 | [diff] [blame] | 82 | # The product defaults to generic on hardware |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 83 | # NOTE: This will be overridden in product_config.mk if make |
| 84 | # was invoked with a PRODUCT-xxx-yyy goal. |
| 85 | ifeq ($(TARGET_PRODUCT),) |
Ying Wang | 0a76df5 | 2015-06-08 11:57:26 -0700 | [diff] [blame] | 86 | TARGET_PRODUCT := aosp_arm |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 87 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 88 | |
| 89 | |
| 90 | # the variant -- the set of files that are included for a build |
| 91 | ifeq ($(strip $(TARGET_BUILD_VARIANT)),) |
| 92 | TARGET_BUILD_VARIANT := eng |
| 93 | endif |
| 94 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 95 | # --------------------------------------------------------------- |
| 96 | # Set up configuration for host machine. We don't do cross- |
Raghu Gandham | 8da4310 | 2012-07-25 19:57:22 -0700 | [diff] [blame] | 97 | # compiles except for arm/mips, so the HOST is whatever we are |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 98 | # running on |
| 99 | |
| 100 | UNAME := $(shell uname -sm) |
| 101 | |
| 102 | # HOST_OS |
| 103 | ifneq (,$(findstring Linux,$(UNAME))) |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 104 | HOST_OS := linux |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 105 | endif |
| 106 | ifneq (,$(findstring Darwin,$(UNAME))) |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 107 | HOST_OS := darwin |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 108 | endif |
| 109 | ifneq (,$(findstring Macintosh,$(UNAME))) |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 110 | HOST_OS := darwin |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 111 | endif |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 112 | |
Ying Wang | 08800fd | 2016-03-03 20:57:21 -0800 | [diff] [blame] | 113 | HOST_OS_EXTRA:=$(shell python -c "import platform; print(platform.platform())") |
| 114 | |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 115 | # BUILD_OS is the real host doing the build. |
| 116 | BUILD_OS := $(HOST_OS) |
| 117 | |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 118 | HOST_CROSS_OS := |
| 119 | # We can cross-build Windows binaries on Linux |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 120 | ifeq ($(HOST_OS),linux) |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 121 | HOST_CROSS_OS := windows |
| 122 | HOST_CROSS_ARCH := x86 |
Dan Willemsen | 9ecbf83 | 2016-02-05 16:20:19 -0800 | [diff] [blame] | 123 | HOST_CROSS_2ND_ARCH := x86_64 |
Dan Willemsen | 056609c | 2016-05-16 22:07:31 -0700 | [diff] [blame] | 124 | 2ND_HOST_CROSS_IS_64_BIT := true |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 125 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 126 | |
| 127 | ifeq ($(HOST_OS),) |
| 128 | $(error Unable to determine HOST_OS from uname -sm: $(UNAME)!) |
| 129 | endif |
| 130 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 131 | # HOST_ARCH |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 132 | ifneq (,$(findstring x86_64,$(UNAME))) |
Ying Wang | 2713fce | 2014-06-09 12:31:12 -0700 | [diff] [blame] | 133 | HOST_ARCH := x86_64 |
| 134 | HOST_2ND_ARCH := x86 |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 135 | HOST_IS_64_BIT := true |
Brian Carlstrom | 2cd8a74 | 2015-03-20 11:39:00 -0700 | [diff] [blame] | 136 | else |
Dan Willemsen | 88225fd | 2016-06-29 12:26:53 -0700 | [diff] [blame] | 137 | ifneq (,$(findstring i686,$(UNAME))$(findstring x86,$(UNAME))) |
Brian Carlstrom | 2cd8a74 | 2015-03-20 11:39:00 -0700 | [diff] [blame] | 138 | $(error Building on a 32-bit x86 host is not supported: $(UNAME)!) |
| 139 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 140 | endif |
| 141 | |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 142 | BUILD_ARCH := $(HOST_ARCH) |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 143 | BUILD_2ND_ARCH := $(HOST_2ND_ARCH) |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 144 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 145 | ifeq ($(HOST_ARCH),) |
| 146 | $(error Unable to determine HOST_ARCH from uname -sm: $(UNAME)!) |
| 147 | endif |
| 148 | |
| 149 | # the host build defaults to release, and it must be release or debug |
| 150 | ifeq ($(HOST_BUILD_TYPE),) |
| 151 | HOST_BUILD_TYPE := release |
| 152 | endif |
| 153 | |
| 154 | ifneq ($(HOST_BUILD_TYPE),release) |
| 155 | ifneq ($(HOST_BUILD_TYPE),debug) |
| 156 | $(error HOST_BUILD_TYPE must be either release or debug, not '$(HOST_BUILD_TYPE)') |
| 157 | endif |
| 158 | endif |
| 159 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 160 | # We don't want to move all the prebuilt host tools to a $(HOST_OS)-x86_64 dir. |
| 161 | HOST_PREBUILT_ARCH := x86 |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 162 | # This is the standard way to name a directory containing prebuilt host |
| 163 | # objects. E.g., prebuilt/$(HOST_PREBUILT_TAG)/cc |
Dan Albert | 216ecac | 2015-05-04 12:44:44 -0700 | [diff] [blame] | 164 | HOST_PREBUILT_TAG := $(BUILD_OS)-$(HOST_PREBUILT_ARCH) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 165 | |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 166 | # TARGET_COPY_OUT_* are all relative to the staging directory, ie PRODUCT_OUT. |
| 167 | # Define them here so they can be used in product config files. |
| 168 | TARGET_COPY_OUT_SYSTEM := system |
Alex Light | 4e358ab | 2016-06-16 14:47:10 -0700 | [diff] [blame] | 169 | TARGET_COPY_OUT_SYSTEM_OTHER := system_other |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 170 | TARGET_COPY_OUT_DATA := data |
Vishwath Mohan | b285c46 | 2017-03-29 15:32:04 -0700 | [diff] [blame] | 171 | TARGET_COPY_OUT_ASAN := $(TARGET_COPY_OUT_DATA)/asan |
Ying Wang | b888843 | 2014-03-11 17:13:27 -0700 | [diff] [blame] | 172 | TARGET_COPY_OUT_OEM := oem |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 173 | TARGET_COPY_OUT_ODM := odm |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 174 | TARGET_COPY_OUT_ROOT := root |
| 175 | TARGET_COPY_OUT_RECOVERY := recovery |
Vishwath Mohan | d4dbf79 | 2017-05-16 14:27:34 -0700 | [diff] [blame] | 176 | |
| 177 | # Returns the non-sanitized version of the path provided in $1. |
| 178 | define get_non_asan_path |
| 179 | $(patsubst $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/%,$(PRODUCT_OUT)/%,$1) |
| 180 | endef |
| 181 | |
Ying Wang | 6aef047 | 2014-07-23 20:20:49 -0700 | [diff] [blame] | 182 | ########################################### |
| 183 | # Define TARGET_COPY_OUT_VENDOR to a placeholder, for at this point |
| 184 | # we don't know if the device wants to build a separate vendor.img |
| 185 | # or just build vendor stuff into system.img. |
| 186 | # A device can set up TARGET_COPY_OUT_VENDOR to "vendor" in its |
| 187 | # BoardConfig.mk. |
| 188 | # We'll substitute with the real value after loading BoardConfig.mk. |
| 189 | _vendor_path_placeholder := ||VENDOR-PATH-PH|| |
| 190 | TARGET_COPY_OUT_VENDOR := $(_vendor_path_placeholder) |
| 191 | ########################################### |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 192 | |
Igor Murashkin | 9d4639c | 2017-06-15 10:41:02 -0700 | [diff] [blame] | 193 | ################################################################# |
| 194 | # Set up minimal BOOTCLASSPATH list of jars to build/execute |
| 195 | # java code with dalvikvm/art. |
| 196 | TARGET_CORE_JARS := core-oj core-libart conscrypt okhttp bouncycastle apache-xml |
| 197 | HOST_CORE_JARS := $(addsuffix -hostdex,$(TARGET_CORE_JARS)) |
| 198 | ################################################################# |
| 199 | |
Ying Wang | 6aef047 | 2014-07-23 20:20:49 -0700 | [diff] [blame] | 200 | # Read the product specs so we can get TARGET_DEVICE and other |
Ryo Fujii | cbb3266 | 2011-06-16 16:58:11 -0700 | [diff] [blame] | 201 | # variables that we need in order to locate the output files. |
| 202 | include $(BUILD_SYSTEM)/product_config.mk |
Jesse Wilson | ce7d502 | 2010-09-22 10:59:10 -0700 | [diff] [blame] | 203 | |
Ying Wang | d0244b3 | 2011-11-17 14:51:12 -0800 | [diff] [blame] | 204 | build_variant := $(filter-out eng user userdebug,$(TARGET_BUILD_VARIANT)) |
Ryo Fujii | cbb3266 | 2011-06-16 16:58:11 -0700 | [diff] [blame] | 205 | ifneq ($(build_variant)-$(words $(TARGET_BUILD_VARIANT)),-1) |
| 206 | $(warning bad TARGET_BUILD_VARIANT: $(TARGET_BUILD_VARIANT)) |
Ying Wang | d0244b3 | 2011-11-17 14:51:12 -0800 | [diff] [blame] | 207 | $(error must be empty or one of: eng user userdebug) |
Ryo Fujii | cbb3266 | 2011-06-16 16:58:11 -0700 | [diff] [blame] | 208 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 209 | |
Ying Wang | 7ba7d7f | 2014-09-02 15:11:20 -0700 | [diff] [blame] | 210 | SDK_HOST_ARCH := x86 |
| 211 | |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 212 | # Boards may be defined under $(SRC_TARGET_DIR)/board/$(TARGET_DEVICE) |
| 213 | # or under vendor/*/$(TARGET_DEVICE). Search in both places, but |
| 214 | # make sure only one exists. |
| 215 | # Real boards should always be associated with an OEM vendor. |
| 216 | board_config_mk := \ |
Dan Willemsen | 7c3e3f8 | 2015-09-29 16:30:21 -0700 | [diff] [blame] | 217 | $(strip $(sort $(wildcard \ |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 218 | $(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)/BoardConfig.mk \ |
Will Drewry | c13f9c9 | 2015-10-06 19:40:11 -0700 | [diff] [blame] | 219 | $(shell test -d device && find -L device -maxdepth 4 -path '*/$(TARGET_DEVICE)/BoardConfig.mk') \ |
| 220 | $(shell test -d vendor && find -L vendor -maxdepth 4 -path '*/$(TARGET_DEVICE)/BoardConfig.mk') \ |
Dan Willemsen | 7c3e3f8 | 2015-09-29 16:30:21 -0700 | [diff] [blame] | 221 | ))) |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 222 | ifeq ($(board_config_mk),) |
| 223 | $(error No config file found for TARGET_DEVICE $(TARGET_DEVICE)) |
| 224 | endif |
| 225 | ifneq ($(words $(board_config_mk)),1) |
| 226 | $(error Multiple board config files for TARGET_DEVICE $(TARGET_DEVICE): $(board_config_mk)) |
| 227 | endif |
| 228 | include $(board_config_mk) |
| 229 | ifeq ($(TARGET_ARCH),) |
| 230 | $(error TARGET_ARCH not defined by board config: $(board_config_mk)) |
| 231 | endif |
Josh Gao | f3e7204 | 2016-01-22 11:24:59 -0800 | [diff] [blame] | 232 | ifneq ($(MALLOC_IMPL),) |
| 233 | $(warning *** Unsupported option MALLOC_IMPL defined by board config: $(board_config_mk).) |
| 234 | $(error Use `MALLOC_SVELTE := true` to configure jemalloc for low-memory) |
| 235 | endif |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 236 | TARGET_DEVICE_DIR := $(patsubst %/,%,$(dir $(board_config_mk))) |
| 237 | board_config_mk := |
| 238 | |
Ying Wang | 6aef047 | 2014-07-23 20:20:49 -0700 | [diff] [blame] | 239 | ########################################### |
| 240 | # Now we can substitute with the real value of TARGET_COPY_OUT_VENDOR |
| 241 | ifeq ($(TARGET_COPY_OUT_VENDOR),$(_vendor_path_placeholder)) |
| 242 | TARGET_COPY_OUT_VENDOR := system/vendor |
| 243 | else ifeq ($(filter vendor system/vendor,$(TARGET_COPY_OUT_VENDOR)),) |
| 244 | $(error TARGET_COPY_OUT_VENDOR must be either 'vendor' or 'system/vendor', seeing '$(TARGET_COPY_OUT_VENDOR)'.) |
| 245 | endif |
| 246 | PRODUCT_COPY_FILES := $(subst $(_vendor_path_placeholder),$(TARGET_COPY_OUT_VENDOR),$(PRODUCT_COPY_FILES)) |
Dan Willemsen | 6c3e79b | 2016-06-17 14:07:37 -0700 | [diff] [blame] | 247 | |
| 248 | BOARD_USES_VENDORIMAGE := |
| 249 | ifdef BOARD_PREBUILT_VENDORIMAGE |
| 250 | BOARD_USES_VENDORIMAGE := true |
| 251 | endif |
| 252 | ifdef BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE |
| 253 | BOARD_USES_VENDORIMAGE := true |
| 254 | endif |
| 255 | ifeq ($(TARGET_COPY_OUT_VENDOR),vendor) |
| 256 | BOARD_USES_VENDORIMAGE := true |
| 257 | else ifdef BOARD_USES_VENDORIMAGE |
| 258 | $(error TARGET_COPY_OUT_VENDOR must be set to 'vendor' to use a vendor image) |
| 259 | endif |
Ying Wang | 6aef047 | 2014-07-23 20:20:49 -0700 | [diff] [blame] | 260 | ########################################### |
Dan Willemsen | 00cf767 | 2017-01-04 17:16:09 -0800 | [diff] [blame] | 261 | # Ensure that only TARGET_RECOVERY_UPDATER_LIBS *or* AB_OTA_UPDATER is set. |
| 262 | TARGET_RECOVERY_UPDATER_LIBS ?= |
| 263 | AB_OTA_UPDATER ?= |
| 264 | .KATI_READONLY := TARGET_RECOVERY_UPDATER_LIBS AB_OTA_UPDATER |
| 265 | ifeq ($(AB_OTA_UPDATER),true) |
| 266 | ifneq ($(strip $(TARGET_RECOVERY_UPDATER_LIBS)),) |
| 267 | $(error Do not use TARGET_RECOVERY_UPDATER_LIBS when using AB_OTA_UPDATER) |
| 268 | endif |
| 269 | endif |
Ying Wang | 6aef047 | 2014-07-23 20:20:49 -0700 | [diff] [blame] | 270 | |
Dan Willemsen | 2c3289b | 2017-03-19 13:22:45 -0700 | [diff] [blame] | 271 | # Check BOARD_VNDK_VERSION |
| 272 | ifdef BOARD_VNDK_VERSION |
| 273 | ifneq ($(BOARD_VNDK_VERSION),current) |
| 274 | $(error BOARD_VNDK_VERSION: Only "current" is implemented) |
| 275 | endif |
| 276 | endif |
| 277 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 278 | # --------------------------------------------------------------- |
| 279 | # Set up configuration for target machine. |
| 280 | # The following must be set: |
| 281 | # TARGET_OS = { linux } |
Raghu Gandham | 8da4310 | 2012-07-25 19:57:22 -0700 | [diff] [blame] | 282 | # TARGET_ARCH = { arm | x86 | mips } |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 283 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 284 | TARGET_OS := linux |
Raghu Gandham | 8da4310 | 2012-07-25 19:57:22 -0700 | [diff] [blame] | 285 | # TARGET_ARCH should be set by BoardConfig.mk and will be checked later |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 286 | ifneq ($(filter %64,$(TARGET_ARCH)),) |
| 287 | TARGET_IS_64_BIT := true |
| 288 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 289 | |
| 290 | # the target build type defaults to release |
| 291 | ifneq ($(TARGET_BUILD_TYPE),debug) |
| 292 | TARGET_BUILD_TYPE := release |
| 293 | endif |
| 294 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 295 | # --------------------------------------------------------------- |
| 296 | # figure out the output directories |
| 297 | |
| 298 | ifeq (,$(strip $(OUT_DIR))) |
Jean-Baptiste Queru | ffe03c9 | 2011-12-06 10:29:46 -0800 | [diff] [blame] | 299 | ifeq (,$(strip $(OUT_DIR_COMMON_BASE))) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 300 | OUT_DIR := $(TOPDIR)out |
Jean-Baptiste Queru | ffe03c9 | 2011-12-06 10:29:46 -0800 | [diff] [blame] | 301 | else |
| 302 | OUT_DIR := $(OUT_DIR_COMMON_BASE)/$(notdir $(PWD)) |
| 303 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 304 | endif |
| 305 | |
Dan Willemsen | 60d9c67 | 2016-05-27 15:15:47 -0700 | [diff] [blame] | 306 | SOONG_OUT_DIR := $(OUT_DIR)/soong |
| 307 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 308 | DEBUG_OUT_DIR := $(OUT_DIR)/debug |
| 309 | |
| 310 | # Move the host or target under the debug/ directory |
| 311 | # if necessary. |
| 312 | TARGET_OUT_ROOT_release := $(OUT_DIR)/target |
| 313 | TARGET_OUT_ROOT_debug := $(DEBUG_OUT_DIR)/target |
| 314 | TARGET_OUT_ROOT := $(TARGET_OUT_ROOT_$(TARGET_BUILD_TYPE)) |
| 315 | |
| 316 | HOST_OUT_ROOT_release := $(OUT_DIR)/host |
| 317 | HOST_OUT_ROOT_debug := $(DEBUG_OUT_DIR)/host |
| 318 | HOST_OUT_ROOT := $(HOST_OUT_ROOT_$(HOST_BUILD_TYPE)) |
| 319 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 320 | # We want to avoid two host bin directories in multilib build. |
| 321 | HOST_OUT_release := $(HOST_OUT_ROOT_release)/$(HOST_OS)-$(HOST_PREBUILT_ARCH) |
| 322 | HOST_OUT_debug := $(HOST_OUT_ROOT_debug)/$(HOST_OS)-$(HOST_PREBUILT_ARCH) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 323 | HOST_OUT := $(HOST_OUT_$(HOST_BUILD_TYPE)) |
Dan Willemsen | 60d9c67 | 2016-05-27 15:15:47 -0700 | [diff] [blame] | 324 | SOONG_HOST_OUT := $(SOONG_OUT_DIR)/host/$(HOST_OS)-$(HOST_PREBUILT_ARCH) |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 325 | # TODO: remove |
| 326 | BUILD_OUT := $(HOST_OUT) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 327 | |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 328 | HOST_CROSS_OUT_release := $(HOST_OUT_ROOT_release)/windows-$(HOST_PREBUILT_ARCH) |
| 329 | HOST_CROSS_OUT_debug := $(HOST_OUT_ROOT_debug)/windows-$(HOST_PREBUILT_ARCH) |
| 330 | HOST_CROSS_OUT := $(HOST_CROSS_OUT_$(HOST_BUILD_TYPE)) |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 331 | |
Jeff Brown | e33ba4c | 2011-07-11 22:11:46 -0700 | [diff] [blame] | 332 | TARGET_PRODUCT_OUT_ROOT := $(TARGET_OUT_ROOT)/product |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 333 | |
| 334 | TARGET_COMMON_OUT_ROOT := $(TARGET_OUT_ROOT)/common |
| 335 | HOST_COMMON_OUT_ROOT := $(HOST_OUT_ROOT)/common |
| 336 | |
| 337 | PRODUCT_OUT := $(TARGET_PRODUCT_OUT_ROOT)/$(TARGET_DEVICE) |
| 338 | |
| 339 | OUT_DOCS := $(TARGET_COMMON_OUT_ROOT)/docs |
| 340 | |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 341 | BUILD_OUT_EXECUTABLES := $(BUILD_OUT)/bin |
Dan Willemsen | 60d9c67 | 2016-05-27 15:15:47 -0700 | [diff] [blame] | 342 | SOONG_HOST_OUT_EXECUTABLES := $(SOONG_HOST_OUT)/bin |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 343 | |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 344 | HOST_OUT_EXECUTABLES := $(HOST_OUT)/bin |
Ying Wang | 36ef50f | 2014-06-30 17:06:21 -0700 | [diff] [blame] | 345 | HOST_OUT_SHARED_LIBRARIES := $(HOST_OUT)/lib64 |
Dan Willemsen | c6e194f | 2016-02-13 00:19:40 -0800 | [diff] [blame] | 346 | HOST_OUT_RENDERSCRIPT_BITCODE := $(HOST_OUT_SHARED_LIBRARIES) |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 347 | HOST_OUT_JAVA_LIBRARIES := $(HOST_OUT)/framework |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 348 | HOST_OUT_SDK_ADDON := $(HOST_OUT)/sdk_addon |
Dan Willemsen | 7fe992c | 2016-03-02 13:54:51 -0800 | [diff] [blame] | 349 | HOST_OUT_NATIVE_TESTS := $(HOST_OUT)/nativetest64 |
Ryan Campbell | 81c9d29 | 2016-09-12 13:56:50 -0700 | [diff] [blame] | 350 | HOST_OUT_COVERAGE := $(HOST_OUT)/coverage |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 351 | |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 352 | HOST_CROSS_OUT_EXECUTABLES := $(HOST_CROSS_OUT)/bin |
| 353 | HOST_CROSS_OUT_SHARED_LIBRARIES := $(HOST_CROSS_OUT)/lib |
Dan Willemsen | 7fe992c | 2016-03-02 13:54:51 -0800 | [diff] [blame] | 354 | HOST_CROSS_OUT_NATIVE_TESTS := $(HOST_CROSS_OUT)/nativetest |
Ryan Campbell | 81c9d29 | 2016-09-12 13:56:50 -0700 | [diff] [blame] | 355 | HOST_CROSS_OUT_COVERAGE := $(HOST_CROSS_OUT)/coverage |
Simran Basi | 7166d1f | 2017-01-25 15:11:55 -0800 | [diff] [blame] | 356 | HOST_OUT_TESTCASES := $(HOST_OUT)/testcases |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 357 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 358 | HOST_OUT_INTERMEDIATES := $(HOST_OUT)/obj |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 359 | HOST_OUT_INTERMEDIATE_LIBRARIES := $(HOST_OUT_INTERMEDIATES)/lib |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 360 | HOST_OUT_NOTICE_FILES := $(HOST_OUT_INTERMEDIATES)/NOTICE_FILES |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 361 | HOST_OUT_COMMON_INTERMEDIATES := $(HOST_COMMON_OUT_ROOT)/obj |
Ying Wang | ec900ac | 2013-11-13 15:56:18 -0800 | [diff] [blame] | 362 | HOST_OUT_FAKE := $(HOST_OUT)/fake_packages |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 363 | |
Alexey Polyudov | ccdc311 | 2016-08-01 17:41:49 -0700 | [diff] [blame] | 364 | # Nano environment config |
| 365 | include $(BUILD_SYSTEM)/aux_config.mk |
| 366 | |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 367 | HOST_CROSS_OUT_INTERMEDIATES := $(HOST_CROSS_OUT)/obj |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 368 | HOST_CROSS_OUT_INTERMEDIATE_LIBRARIES := $(HOST_CROSS_OUT_INTERMEDIATES)/lib |
| 369 | HOST_CROSS_OUT_NOTICE_FILES := $(HOST_CROSS_OUT_INTERMEDIATES)/NOTICE_FILES |
| 370 | |
Colin Cross | d826264 | 2014-01-24 23:17:21 -0800 | [diff] [blame] | 371 | HOST_OUT_GEN := $(HOST_OUT)/gen |
| 372 | HOST_OUT_COMMON_GEN := $(HOST_COMMON_OUT_ROOT)/gen |
| 373 | |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 374 | HOST_CROSS_OUT_GEN := $(HOST_CROSS_OUT)/gen |
| 375 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 376 | # Out for HOST_2ND_ARCH |
| 377 | HOST_2ND_ARCH_VAR_PREFIX := 2ND_ |
| 378 | HOST_2ND_ARCH_MODULE_SUFFIX := _32 |
| 379 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_INTERMEDIATES := $(HOST_OUT)/obj32 |
| 380 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_INTERMEDIATE_LIBRARIES := $($(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_INTERMEDIATES)/lib |
Ying Wang | 966c1e0 | 2014-05-20 14:43:51 -0700 | [diff] [blame] | 381 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_SHARED_LIBRARIES := $(HOST_OUT)/lib |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 382 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_EXECUTABLES := $(HOST_OUT_EXECUTABLES) |
Dan Albert | dc94137 | 2015-05-04 18:17:52 -0700 | [diff] [blame] | 383 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_JAVA_LIBRARIES := $(HOST_OUT_JAVA_LIBRARIES) |
Dan Willemsen | 7fe992c | 2016-03-02 13:54:51 -0800 | [diff] [blame] | 384 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_NATIVE_TESTS := $(HOST_OUT)/nativetest |
Simran Basi | 7166d1f | 2017-01-25 15:11:55 -0800 | [diff] [blame] | 385 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_TESTCASES := $(HOST_OUT_TESTCASES) |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 386 | |
Ying Wang | c459586 | 2014-06-10 12:04:56 -0700 | [diff] [blame] | 387 | # The default host library path. |
| 388 | # It always points to the path where we build libraries in the default bitness. |
Ying Wang | 5bac962 | 2014-08-14 11:03:56 -0700 | [diff] [blame] | 389 | HOST_LIBRARY_PATH := $(HOST_OUT_SHARED_LIBRARIES) |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 390 | |
Dan Willemsen | 9ecbf83 | 2016-02-05 16:20:19 -0800 | [diff] [blame] | 391 | # Out for HOST_CROSS_2ND_ARCH |
| 392 | HOST_CROSS_2ND_ARCH_VAR_PREFIX := 2ND_ |
| 393 | HOST_CROSS_2ND_ARCH_MODULE_SUFFIX := _64 |
| 394 | $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_INTERMEDIATES := $(HOST_CROSS_OUT)/obj64 |
| 395 | $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_INTERMEDIATE_LIBRARIES := $($(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_INTERMEDIATES)/lib |
| 396 | $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_SHARED_LIBRARIES := $(HOST_CROSS_OUT)/lib64 |
| 397 | $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_EXECUTABLES := $(HOST_CROSS_OUT_EXECUTABLES) |
Dan Willemsen | 7fe992c | 2016-03-02 13:54:51 -0800 | [diff] [blame] | 398 | $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_NATIVE_TESTS := $(HOST_CROSS_OUT)/nativetest64 |
Dan Willemsen | 9ecbf83 | 2016-02-05 16:20:19 -0800 | [diff] [blame] | 399 | |
Vishwath Mohan | d8eabaa | 2017-05-09 19:36:54 -0700 | [diff] [blame] | 400 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
| 401 | TARGET_OUT_INTERMEDIATES := $(PRODUCT_OUT)/obj_asan |
| 402 | else |
| 403 | TARGET_OUT_INTERMEDIATES := $(PRODUCT_OUT)/obj |
| 404 | endif |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 405 | TARGET_OUT_HEADERS := $(TARGET_OUT_INTERMEDIATES)/include |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 406 | TARGET_OUT_INTERMEDIATE_LIBRARIES := $(TARGET_OUT_INTERMEDIATES)/lib |
Vishwath Mohan | d8eabaa | 2017-05-09 19:36:54 -0700 | [diff] [blame] | 407 | |
| 408 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
| 409 | TARGET_OUT_COMMON_INTERMEDIATES := $(TARGET_COMMON_OUT_ROOT)/obj_asan |
| 410 | else |
| 411 | TARGET_OUT_COMMON_INTERMEDIATES := $(TARGET_COMMON_OUT_ROOT)/obj |
| 412 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 413 | |
Colin Cross | d826264 | 2014-01-24 23:17:21 -0800 | [diff] [blame] | 414 | TARGET_OUT_GEN := $(PRODUCT_OUT)/gen |
| 415 | TARGET_OUT_COMMON_GEN := $(TARGET_COMMON_OUT_ROOT)/gen |
| 416 | |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 417 | TARGET_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_SYSTEM) |
Ivan Krasin | 74b32b8 | 2015-09-18 11:54:43 -0700 | [diff] [blame] | 418 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
Vishwath Mohan | b285c46 | 2017-03-29 15:32:04 -0700 | [diff] [blame] | 419 | target_out_shared_libraries_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/system |
Evgenii Stepanov | 4d3d414 | 2015-06-11 17:32:31 -0700 | [diff] [blame] | 420 | else |
| 421 | target_out_shared_libraries_base := $(TARGET_OUT) |
| 422 | endif |
| 423 | |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 424 | TARGET_OUT_EXECUTABLES := $(TARGET_OUT)/bin |
| 425 | TARGET_OUT_OPTIONAL_EXECUTABLES := $(TARGET_OUT)/xbin |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 426 | ifeq ($(TARGET_IS_64_BIT),true) |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 427 | # /system/lib always contains 32-bit libraries, |
| 428 | # and /system/lib64 (if present) always contains 64-bit libraries. |
Evgenii Stepanov | 4d3d414 | 2015-06-11 17:32:31 -0700 | [diff] [blame] | 429 | TARGET_OUT_SHARED_LIBRARIES := $(target_out_shared_libraries_base)/lib64 |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 430 | else |
Evgenii Stepanov | 4d3d414 | 2015-06-11 17:32:31 -0700 | [diff] [blame] | 431 | TARGET_OUT_SHARED_LIBRARIES := $(target_out_shared_libraries_base)/lib |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 432 | endif |
Dan Willemsen | c6e194f | 2016-02-13 00:19:40 -0800 | [diff] [blame] | 433 | TARGET_OUT_RENDERSCRIPT_BITCODE := $(TARGET_OUT_SHARED_LIBRARIES) |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 434 | TARGET_OUT_JAVA_LIBRARIES := $(TARGET_OUT)/framework |
| 435 | TARGET_OUT_APPS := $(TARGET_OUT)/app |
Ying Wang | 5338fbf | 2013-05-08 15:49:08 -0700 | [diff] [blame] | 436 | TARGET_OUT_APPS_PRIVILEGED := $(TARGET_OUT)/priv-app |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 437 | TARGET_OUT_KEYLAYOUT := $(TARGET_OUT)/usr/keylayout |
| 438 | TARGET_OUT_KEYCHARS := $(TARGET_OUT)/usr/keychars |
| 439 | TARGET_OUT_ETC := $(TARGET_OUT)/etc |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 440 | TARGET_OUT_NOTICE_FILES := $(TARGET_OUT_INTERMEDIATES)/NOTICE_FILES |
Dima Zavin | 531f524 | 2010-09-27 17:37:17 -0700 | [diff] [blame] | 441 | TARGET_OUT_FAKE := $(PRODUCT_OUT)/fake_packages |
Simran Basi | 7166d1f | 2017-01-25 15:11:55 -0800 | [diff] [blame] | 442 | TARGET_OUT_TESTCASES := $(PRODUCT_OUT)/testcases |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 443 | |
Alex Light | 4e358ab | 2016-06-16 14:47:10 -0700 | [diff] [blame] | 444 | TARGET_OUT_SYSTEM_OTHER := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_SYSTEM_OTHER) |
| 445 | |
Ying Wang | e1d44c3 | 2013-12-27 11:09:36 -0800 | [diff] [blame] | 446 | # Out for TARGET_2ND_ARCH |
Ying Wang | c459586 | 2014-06-10 12:04:56 -0700 | [diff] [blame] | 447 | TARGET_2ND_ARCH_VAR_PREFIX := $(HOST_2ND_ARCH_VAR_PREFIX) |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 448 | ifeq ($(TARGET_TRANSLATE_2ND_ARCH),true) |
| 449 | # With this you can reference the arm binary translation library with libfoo_arm in PRODUCT_PACKAGES. |
| 450 | TARGET_2ND_ARCH_MODULE_SUFFIX := _$(TARGET_2ND_ARCH) |
| 451 | else |
Ying Wang | c459586 | 2014-06-10 12:04:56 -0700 | [diff] [blame] | 452 | TARGET_2ND_ARCH_MODULE_SUFFIX := $(HOST_2ND_ARCH_MODULE_SUFFIX) |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 453 | endif |
Vishwath Mohan | d8eabaa | 2017-05-09 19:36:54 -0700 | [diff] [blame] | 454 | |
| 455 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
| 456 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATES := $(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)_asan |
| 457 | else |
| 458 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATES := $(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH) |
| 459 | endif |
Ying Wang | e1d44c3 | 2013-12-27 11:09:36 -0800 | [diff] [blame] | 460 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATE_LIBRARIES := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATES)/lib |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 461 | ifeq ($(TARGET_TRANSLATE_2ND_ARCH),true) |
| 462 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SHARED_LIBRARIES := $(target_out_shared_libraries_base)/lib/$(TARGET_2ND_ARCH) |
| 463 | else |
Evgenii Stepanov | 4d3d414 | 2015-06-11 17:32:31 -0700 | [diff] [blame] | 464 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SHARED_LIBRARIES := $(target_out_shared_libraries_base)/lib |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 465 | endif |
Dan Willemsen | c6e194f | 2016-02-13 00:19:40 -0800 | [diff] [blame] | 466 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_RENDERSCRIPT_BITCODE := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SHARED_LIBRARIES) |
Ying Wang | 72b01d6 | 2014-01-17 16:17:28 -0800 | [diff] [blame] | 467 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_EXECUTABLES := $(TARGET_OUT_EXECUTABLES) |
Colin Cross | d957446 | 2014-01-24 13:37:07 -0800 | [diff] [blame] | 468 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_APPS := $(TARGET_OUT_APPS) |
| 469 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_APPS_PRIVILEGED := $(TARGET_OUT_APPS_PRIVILEGED) |
Simran Basi | 7166d1f | 2017-01-25 15:11:55 -0800 | [diff] [blame] | 470 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_TESTCASES := $(TARGET_OUT_TESTCASES) |
Ying Wang | e1d44c3 | 2013-12-27 11:09:36 -0800 | [diff] [blame] | 471 | |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 472 | TARGET_OUT_DATA := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_DATA) |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 473 | TARGET_OUT_DATA_EXECUTABLES := $(TARGET_OUT_EXECUTABLES) |
| 474 | TARGET_OUT_DATA_SHARED_LIBRARIES := $(TARGET_OUT_SHARED_LIBRARIES) |
| 475 | TARGET_OUT_DATA_JAVA_LIBRARIES := $(TARGET_OUT_DATA)/framework |
| 476 | TARGET_OUT_DATA_APPS := $(TARGET_OUT_DATA)/app |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 477 | TARGET_OUT_DATA_KEYLAYOUT := $(TARGET_OUT_KEYLAYOUT) |
| 478 | TARGET_OUT_DATA_KEYCHARS := $(TARGET_OUT_KEYCHARS) |
| 479 | TARGET_OUT_DATA_ETC := $(TARGET_OUT_ETC) |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 480 | ifeq ($(TARGET_IS_64_BIT),true) |
| 481 | TARGET_OUT_DATA_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest64 |
Julien Desprez | 188a1dd | 2016-04-12 10:22:06 +0100 | [diff] [blame] | 482 | TARGET_OUT_DATA_METRIC_TESTS := $(TARGET_OUT_DATA)/benchmarktest64 |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 483 | else |
Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 484 | TARGET_OUT_DATA_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest |
Julien Desprez | 188a1dd | 2016-04-12 10:22:06 +0100 | [diff] [blame] | 485 | TARGET_OUT_DATA_METRIC_TESTS := $(TARGET_OUT_DATA)/benchmarktest |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 486 | endif |
Tsu Chiang Chuang | 40da883 | 2012-07-13 13:47:09 -0700 | [diff] [blame] | 487 | TARGET_OUT_DATA_FAKE := $(TARGET_OUT_DATA)/fake_packages |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 488 | |
Ying Wang | e3d0679 | 2014-01-23 15:09:04 -0800 | [diff] [blame] | 489 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_EXECUTABLES := $(TARGET_OUT_DATA_EXECUTABLES) |
| 490 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_SHARED_LIBRARIES := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SHARED_LIBRARIES) |
Colin Cross | d957446 | 2014-01-24 13:37:07 -0800 | [diff] [blame] | 491 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_APPS := $(TARGET_OUT_DATA_APPS) |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 492 | ifeq ($(TARGET_TRANSLATE_2ND_ARCH),true) |
| 493 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest/$(TARGET_2ND_ARCH) |
Guang Zhu | 97069b0 | 2016-04-12 13:06:20 -0700 | [diff] [blame] | 494 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_METRIC_TESTS := $(TARGET_OUT_DATA)/benchmarktest/$(TARGET_2ND_ARCH) |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 495 | else |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 496 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest |
Julien Desprez | 188a1dd | 2016-04-12 10:22:06 +0100 | [diff] [blame] | 497 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_METRIC_TESTS := $(TARGET_OUT_DATA)/benchmarktest |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 498 | endif |
Ying Wang | e3d0679 | 2014-01-23 15:09:04 -0800 | [diff] [blame] | 499 | |
Ying Wang | 9f8e8db | 2011-11-04 11:37:01 -0700 | [diff] [blame] | 500 | TARGET_OUT_CACHE := $(PRODUCT_OUT)/cache |
| 501 | |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 502 | TARGET_OUT_VENDOR := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR) |
Ivan Krasin | 74b32b8 | 2015-09-18 11:54:43 -0700 | [diff] [blame] | 503 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
Vishwath Mohan | b285c46 | 2017-03-29 15:32:04 -0700 | [diff] [blame] | 504 | target_out_vendor_shared_libraries_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/vendor |
Evgenii Stepanov | bf14097 | 2015-06-30 14:02:02 -0700 | [diff] [blame] | 505 | else |
| 506 | target_out_vendor_shared_libraries_base := $(TARGET_OUT_VENDOR) |
| 507 | endif |
| 508 | |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 509 | TARGET_OUT_VENDOR_EXECUTABLES := $(TARGET_OUT_VENDOR)/bin |
| 510 | TARGET_OUT_VENDOR_OPTIONAL_EXECUTABLES := $(TARGET_OUT_VENDOR)/xbin |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 511 | ifeq ($(TARGET_IS_64_BIT),true) |
Evgenii Stepanov | bf14097 | 2015-06-30 14:02:02 -0700 | [diff] [blame] | 512 | TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(target_out_vendor_shared_libraries_base)/lib64 |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 513 | else |
Evgenii Stepanov | bf14097 | 2015-06-30 14:02:02 -0700 | [diff] [blame] | 514 | TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(target_out_vendor_shared_libraries_base)/lib |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 515 | endif |
Miao Wang | 57be564 | 2017-03-01 19:39:19 -0800 | [diff] [blame] | 516 | TARGET_OUT_VENDOR_RENDERSCRIPT_BITCODE := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES) |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 517 | TARGET_OUT_VENDOR_JAVA_LIBRARIES := $(TARGET_OUT_VENDOR)/framework |
| 518 | TARGET_OUT_VENDOR_APPS := $(TARGET_OUT_VENDOR)/app |
Benjamin Pujol | e68a277 | 2015-08-17 07:31:21 +0200 | [diff] [blame] | 519 | TARGET_OUT_VENDOR_APPS_PRIVILEGED := $(TARGET_OUT_VENDOR)/priv-app |
Ying Wang | 8f77936 | 2011-09-13 13:57:26 -0700 | [diff] [blame] | 520 | TARGET_OUT_VENDOR_ETC := $(TARGET_OUT_VENDOR)/etc |
| 521 | |
Ying Wang | e3d0679 | 2014-01-23 15:09:04 -0800 | [diff] [blame] | 522 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_EXECUTABLES := $(TARGET_OUT_VENDOR_EXECUTABLES) |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 523 | ifeq ($(TARGET_TRANSLATE_2ND_ARCH),true) |
Andreas Gampe | cf6268f | 2016-06-30 20:20:38 -0700 | [diff] [blame] | 524 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(target_out_vendor_shared_libraries_base)/lib/$(TARGET_2ND_ARCH) |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 525 | else |
Andreas Gampe | cf6268f | 2016-06-30 20:20:38 -0700 | [diff] [blame] | 526 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(target_out_vendor_shared_libraries_base)/lib |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 527 | endif |
Miao Wang | 57be564 | 2017-03-01 19:39:19 -0800 | [diff] [blame] | 528 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_RENDERSCRIPT_BITCODE := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_SHARED_LIBRARIES) |
Colin Cross | d957446 | 2014-01-24 13:37:07 -0800 | [diff] [blame] | 529 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_APPS := $(TARGET_OUT_VENDOR_APPS) |
Hung-ying Tyan | 665e740 | 2016-07-20 17:51:56 +0800 | [diff] [blame] | 530 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_APPS_PRIVILEGED := $(TARGET_OUT_VENDOR_APPS_PRIVILEGED) |
Ying Wang | 61d499b | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 531 | |
Ying Wang | b888843 | 2014-03-11 17:13:27 -0700 | [diff] [blame] | 532 | TARGET_OUT_OEM := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_OEM) |
Ying Wang | f15250e | 2014-06-26 14:12:35 -0700 | [diff] [blame] | 533 | TARGET_OUT_OEM_EXECUTABLES := $(TARGET_OUT_OEM)/bin |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 534 | ifeq ($(TARGET_IS_64_BIT),true) |
Ying Wang | f15250e | 2014-06-26 14:12:35 -0700 | [diff] [blame] | 535 | TARGET_OUT_OEM_SHARED_LIBRARIES := $(TARGET_OUT_OEM)/lib64 |
| 536 | else |
| 537 | TARGET_OUT_OEM_SHARED_LIBRARIES := $(TARGET_OUT_OEM)/lib |
| 538 | endif |
Ying Wang | b888843 | 2014-03-11 17:13:27 -0700 | [diff] [blame] | 539 | # We don't expect Java libraries in the oem.img. |
| 540 | # TARGET_OUT_OEM_JAVA_LIBRARIES:= $(TARGET_OUT_OEM)/framework |
Ying Wang | f15250e | 2014-06-26 14:12:35 -0700 | [diff] [blame] | 541 | TARGET_OUT_OEM_APPS := $(TARGET_OUT_OEM)/app |
Ying Wang | b888843 | 2014-03-11 17:13:27 -0700 | [diff] [blame] | 542 | TARGET_OUT_OEM_ETC := $(TARGET_OUT_OEM)/etc |
| 543 | |
Ying Wang | f15250e | 2014-06-26 14:12:35 -0700 | [diff] [blame] | 544 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_EXECUTABLES := $(TARGET_OUT_OEM_EXECUTABLES) |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 545 | ifeq ($(TARGET_TRANSLATE_2ND_ARCH),true) |
| 546 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_SHARED_LIBRARIES := $(TARGET_OUT_OEM)/lib/$(TARGET_2ND_ARCH) |
| 547 | else |
Ying Wang | f15250e | 2014-06-26 14:12:35 -0700 | [diff] [blame] | 548 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_SHARED_LIBRARIES := $(TARGET_OUT_OEM)/lib |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 549 | endif |
Ying Wang | f15250e | 2014-06-26 14:12:35 -0700 | [diff] [blame] | 550 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_APPS := $(TARGET_OUT_OEM_APPS) |
| 551 | |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 552 | TARGET_OUT_ODM := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ODM) |
| 553 | TARGET_OUT_ODM_EXECUTABLES := $(TARGET_OUT_ODM)/bin |
| 554 | ifeq ($(TARGET_IS_64_BIT),true) |
| 555 | TARGET_OUT_ODM_SHARED_LIBRARIES := $(TARGET_OUT_ODM)/lib64 |
| 556 | else |
| 557 | TARGET_OUT_ODM_SHARED_LIBRARIES := $(TARGET_OUT_ODM)/lib |
| 558 | endif |
| 559 | TARGET_OUT_ODM_APPS := $(TARGET_OUT_ODM)/app |
| 560 | TARGET_OUT_ODM_ETC := $(TARGET_OUT_ODM)/etc |
| 561 | |
| 562 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_EXECUTABLES := $(TARGET_OUT_ODM_EXECUTABLES) |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 563 | ifeq ($(TARGET_TRANSLATE_2ND_ARCH),true) |
| 564 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_SHARED_LIBRARIES := $(TARGET_OUT_ODM)/lib/$(TARGET_2ND_ARCH) |
| 565 | else |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 566 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_SHARED_LIBRARIES := $(TARGET_OUT_ODM)/lib |
Ying Wang | 87538e4 | 2016-03-16 19:53:19 -0700 | [diff] [blame] | 567 | endif |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 568 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_APPS := $(TARGET_OUT_ODM_APPS) |
| 569 | |
Steve Fung | dfbab49 | 2015-09-24 18:12:33 -0700 | [diff] [blame] | 570 | TARGET_OUT_BREAKPAD := $(PRODUCT_OUT)/breakpad |
| 571 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 572 | TARGET_OUT_UNSTRIPPED := $(PRODUCT_OUT)/symbols |
| 573 | TARGET_OUT_EXECUTABLES_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/system/bin |
| 574 | TARGET_OUT_SHARED_LIBRARIES_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/system/lib |
Colin Cross | a58f8e0 | 2014-06-20 13:33:36 -0700 | [diff] [blame] | 575 | TARGET_OUT_VENDOR_SHARED_LIBRARIES_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/$(TARGET_COPY_OUT_VENDOR)/lib |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 576 | TARGET_ROOT_OUT_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED) |
| 577 | TARGET_ROOT_OUT_SBIN_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/sbin |
| 578 | TARGET_ROOT_OUT_BIN_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/bin |
Ryan Campbell | 737bc02 | 2016-09-15 17:32:13 -0700 | [diff] [blame] | 579 | TARGET_OUT_COVERAGE := $(PRODUCT_OUT)/coverage |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 580 | |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 581 | TARGET_ROOT_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ROOT) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 582 | TARGET_ROOT_OUT_BIN := $(TARGET_ROOT_OUT)/bin |
| 583 | TARGET_ROOT_OUT_SBIN := $(TARGET_ROOT_OUT)/sbin |
| 584 | TARGET_ROOT_OUT_ETC := $(TARGET_ROOT_OUT)/etc |
| 585 | TARGET_ROOT_OUT_USR := $(TARGET_ROOT_OUT)/usr |
| 586 | |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 587 | TARGET_RECOVERY_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_RECOVERY) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 588 | TARGET_RECOVERY_ROOT_OUT := $(TARGET_RECOVERY_OUT)/root |
| 589 | |
| 590 | TARGET_SYSLOADER_OUT := $(PRODUCT_OUT)/sysloader |
| 591 | TARGET_SYSLOADER_ROOT_OUT := $(TARGET_SYSLOADER_OUT)/root |
| 592 | TARGET_SYSLOADER_SYSTEM_OUT := $(TARGET_SYSLOADER_OUT)/root/system |
| 593 | |
| 594 | TARGET_INSTALLER_OUT := $(PRODUCT_OUT)/installer |
| 595 | TARGET_INSTALLER_DATA_OUT := $(TARGET_INSTALLER_OUT)/data |
| 596 | TARGET_INSTALLER_ROOT_OUT := $(TARGET_INSTALLER_OUT)/root |
| 597 | TARGET_INSTALLER_SYSTEM_OUT := $(TARGET_INSTALLER_OUT)/root/system |
| 598 | |
Ying Wang | a83940f | 2010-09-24 18:09:04 -0700 | [diff] [blame] | 599 | COMMON_MODULE_CLASSES := TARGET-NOTICE_FILES HOST-NOTICE_FILES HOST-JAVA_LIBRARIES |
Dan Willemsen | 8dae49c | 2017-02-15 15:48:11 -0800 | [diff] [blame] | 600 | PER_ARCH_MODULE_CLASSES := SHARED_LIBRARIES STATIC_LIBRARIES EXECUTABLES GYP RENDERSCRIPT_BITCODE NATIVE_TESTS HEADER_LIBRARIES |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 601 | |
| 602 | ifeq (,$(strip $(DIST_DIR))) |
| 603 | DIST_DIR := $(OUT_DIR)/dist |
| 604 | endif |
| 605 | |
Dan Willemsen | 0d25529 | 2017-02-18 10:32:13 -0800 | [diff] [blame] | 606 | ifndef KATI |
| 607 | PRINT_BUILD_CONFIG ?= true |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 608 | endif |
Chih-Hung Hsieh | 8dd69d9 | 2016-01-19 11:43:44 -0800 | [diff] [blame] | 609 | |
| 610 | ifeq ($(USE_CLANG_PLATFORM_BUILD),) |
| 611 | USE_CLANG_PLATFORM_BUILD := true |
| 612 | endif |
Colin Cross | b267cba | 2016-05-19 12:59:54 -0700 | [diff] [blame] | 613 | |
| 614 | ifneq ($(USE_CLANG_PLATFORM_BUILD),true) |
| 615 | ifneq ($(USE_CLANG_PLATFORM_BUILD),false) |
| 616 | $(error USE_CLANG_PLATFORM_BUILD must be true or false) |
| 617 | endif |
| 618 | endif |