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 |
Ian Pedowitz | 0604ae4 | 2019-04-09 12:19:55 -0700 | [diff] [blame] | 28 | $(1)P1A $(1)P1B $(1)P2A $(1)P2B $(1)D1A $(1)D1B $(1)D2A $(1)D2B $(1)Q1A $(1)Q1B $(1)Q2A $(1)Q2B $(1)Q3A $(1)Q3B |
Colin Cross | c901659 | 2017-03-28 13:07:56 -0700 | [diff] [blame] | 29 | endef |
| 30 | |
Ian Pedowitz | 0604ae4 | 2019-04-09 12:19:55 -0700 | [diff] [blame] | 31 | PREV_VERSIONS := OPR1 OPD1 OPD2 OPM1 OPM2 PPR1 PPD1 PPD2 PPM1 PPM2 QPR1 |
| 32 | ALL_VERSIONS := Q R S T U V W X Y Z |
| 33 | ALL_VERSIONS := $(PREV_VERSIONS) $(foreach v,$(ALL_VERSIONS),$(call version-list,$(v))) |
| 34 | PREV_VERSIONS := |
Colin Cross | c901659 | 2017-03-28 13:07:56 -0700 | [diff] [blame] | 35 | |
| 36 | # Filters ALL_VERSIONS down to the range [$1, $2], and errors if $1 > $2 or $3 is |
| 37 | # not in [$1, $2] |
| 38 | # $(1): min platform version |
| 39 | # $(2): max platform version |
| 40 | # $(3): default platform version |
| 41 | define allowed-platform-versions |
| 42 | $(strip \ |
| 43 | $(if $(filter $(ALL_VERSIONS),$(1)),, |
| 44 | $(error Invalid MIN_PLATFORM_VERSION '$(1)')) |
| 45 | $(if $(filter $(ALL_VERSIONS),$(2)),, |
| 46 | $(error Invalid MAX_PLATFORM_VERSION '$(2)')) |
| 47 | $(if $(filter $(ALL_VERSIONS),$(3)),, |
| 48 | $(error Invalid DEFAULT_PLATFORM_VERSION '$(3)')) |
| 49 | |
| 50 | $(eval allowed_versions_ := $(call find_and_earlier,$(ALL_VERSIONS),$(2))) |
| 51 | |
| 52 | $(if $(filter $(allowed_versions_),$(1)),, |
| 53 | $(error MIN_PLATFORM_VERSION '$(1)' must be before MAX_PLATFORM_VERSION '$(2)')) |
| 54 | |
| 55 | $(eval allowed_versions_ := $(1) \ |
| 56 | $(filter-out $(call find_and_earlier,$(allowed_versions_),$(1)),$(allowed_versions_))) |
| 57 | |
| 58 | $(if $(filter $(allowed_versions_),$(3)),, |
| 59 | $(error DEFAULT_PLATFORM_VERSION '$(3)' must be between MIN_PLATFORM_VERSION '$(1)' and MAX_PLATFORM_VERSION '$(2)')) |
| 60 | |
| 61 | $(allowed_versions_)) |
| 62 | endef |
| 63 | |
| 64 | #$(warning $(call allowed-platform-versions,OPR1,PPR1,OPR1)) |
| 65 | #$(warning $(call allowed-platform-versions,OPM1,PPR1,OPR1)) |
| 66 | |
Joe Onorato | eefd021 | 2009-05-13 00:45:23 -0400 | [diff] [blame] | 67 | # Set up version information. |
| 68 | include $(BUILD_SYSTEM)/version_defaults.mk |
| 69 | |
Colin Cross | c901659 | 2017-03-28 13:07:56 -0700 | [diff] [blame] | 70 | ENABLED_VERSIONS := $(call find_and_earlier,$(ALL_VERSIONS),$(TARGET_PLATFORM_VERSION)) |
| 71 | |
| 72 | $(foreach v,$(ENABLED_VERSIONS), \ |
| 73 | $(eval IS_AT_LEAST_$(v) := true)) |
| 74 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 75 | # --------------------------------------------------------------- |
| 76 | # If you update the build system such that the environment setup |
| 77 | # or buildspec.mk need to be updated, increment this number, and |
| 78 | # people who haven't re-run those will have to do so before they |
| 79 | # can build. Make sure to also update the corresponding value in |
| 80 | # buildspec.mk.default and envsetup.sh. |
Colin Cross | 8873713 | 2017-03-21 17:41:03 -0700 | [diff] [blame] | 81 | CORRECT_BUILD_ENV_SEQUENCE_NUMBER := 13 |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 82 | |
| 83 | # --------------------------------------------------------------- |
Jeff Brown | e33ba4c | 2011-07-11 22:11:46 -0700 | [diff] [blame] | 84 | # The product defaults to generic on hardware |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 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 | |
Dan Willemsen | 8a5d597 | 2019-07-29 14:22:05 -0700 | [diff] [blame] | 95 | TARGET_BUILD_APPS ?= |
Jeongik Cha | d05b57a | 2020-07-08 18:10:38 +0900 | [diff] [blame] | 96 | TARGET_BUILD_UNBUNDLED_IMAGE ?= |
Dan Willemsen | 8a5d597 | 2019-07-29 14:22:05 -0700 | [diff] [blame] | 97 | |
Martin Stjernholm | 7a430fd | 2020-06-04 15:16:39 +0100 | [diff] [blame] | 98 | # Set to true for an unbundled build, i.e. a build without |
| 99 | # support for platform targets like the system image. This also |
| 100 | # disables consistency checks that only apply to full platform |
| 101 | # builds. |
| 102 | TARGET_BUILD_UNBUNDLED ?= |
| 103 | |
| 104 | # TARGET_BUILD_APPS implies unbundled build, otherwise we default |
| 105 | # to bundled (i.e. platform targets such as the system image are |
| 106 | # included). |
| 107 | ifneq ($(TARGET_BUILD_APPS),) |
| 108 | TARGET_BUILD_UNBUNDLED := true |
| 109 | endif |
| 110 | |
Jeongik Cha | d05b57a | 2020-07-08 18:10:38 +0900 | [diff] [blame] | 111 | # TARGET_BUILD_UNBUNDLED_IMAGE also implies unbundled build. |
| 112 | # (i.e. it targets to only unbundled image, such as the vendor image, |
| 113 | # ,or the product image). |
| 114 | ifneq ($(TARGET_BUILD_UNBUNDLED_IMAGE),) |
| 115 | TARGET_BUILD_UNBUNDLED := true |
| 116 | endif |
| 117 | |
Dan Willemsen | 8a5d597 | 2019-07-29 14:22:05 -0700 | [diff] [blame] | 118 | .KATI_READONLY := \ |
| 119 | TARGET_PRODUCT \ |
| 120 | TARGET_BUILD_VARIANT \ |
Martin Stjernholm | 7a430fd | 2020-06-04 15:16:39 +0100 | [diff] [blame] | 121 | TARGET_BUILD_APPS \ |
| 122 | TARGET_BUILD_UNBUNDLED \ |
Jeongik Cha | d05b57a | 2020-07-08 18:10:38 +0900 | [diff] [blame] | 123 | TARGET_BUILD_UNBUNDLED_IMAGE \ |
Dan Willemsen | 8a5d597 | 2019-07-29 14:22:05 -0700 | [diff] [blame] | 124 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 125 | # --------------------------------------------------------------- |
| 126 | # Set up configuration for host machine. We don't do cross- |
Elliott Hughes | f71c05a | 2020-03-06 16:46:59 -0800 | [diff] [blame] | 127 | # compiles except for arm, so the HOST is whatever we are |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 128 | # running on |
| 129 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 130 | # HOST_OS |
| 131 | ifneq (,$(findstring Linux,$(UNAME))) |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 132 | HOST_OS := linux |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 133 | endif |
| 134 | ifneq (,$(findstring Darwin,$(UNAME))) |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 135 | HOST_OS := darwin |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 136 | endif |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 137 | |
Dan Willemsen | ce7f8dd | 2017-07-25 00:57:38 -0700 | [diff] [blame] | 138 | HOST_OS_EXTRA := $(shell uname -rsm) |
| 139 | ifeq ($(HOST_OS),linux) |
| 140 | ifneq ($(wildcard /etc/os-release),) |
| 141 | HOST_OS_EXTRA += $(shell source /etc/os-release; echo $$PRETTY_NAME) |
| 142 | endif |
| 143 | else ifeq ($(HOST_OS),darwin) |
| 144 | HOST_OS_EXTRA += $(shell sw_vers -productVersion) |
| 145 | endif |
| 146 | HOST_OS_EXTRA := $(subst $(space),-,$(HOST_OS_EXTRA)) |
Ying Wang | 08800fd | 2016-03-03 20:57:21 -0800 | [diff] [blame] | 147 | |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 148 | # BUILD_OS is the real host doing the build. |
| 149 | BUILD_OS := $(HOST_OS) |
| 150 | |
Jiyong Park | e80c45f | 2020-07-13 13:53:52 +0900 | [diff] [blame] | 151 | # We can do the cross-build only on Linux |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 152 | ifeq ($(HOST_OS),linux) |
Jiyong Park | e80c45f | 2020-07-13 13:53:52 +0900 | [diff] [blame] | 153 | # Windows has been the default host_cross OS |
| 154 | ifeq (,$(filter-out windows,$(HOST_CROSS_OS))) |
| 155 | # We can only create static host binaries for Linux, so if static host |
| 156 | # binaries are requested, turn off Windows cross-builds. |
| 157 | ifeq ($(BUILD_HOST_static),) |
| 158 | HOST_CROSS_OS := windows |
| 159 | HOST_CROSS_ARCH := x86 |
| 160 | HOST_CROSS_2ND_ARCH := x86_64 |
| 161 | 2ND_HOST_CROSS_IS_64_BIT := true |
| 162 | endif |
| 163 | else ifeq ($(HOST_CROSS_OS),linux_bionic) |
| 164 | ifeq (,$(HOST_CROSS_ARCH)) |
| 165 | $(error HOST_CROSS_ARCH missing.) |
| 166 | endif |
| 167 | else |
| 168 | $(error Unsupported HOST_CROSS_OS $(HOST_CROSS_OS)) |
| 169 | endif |
Dan Willemsen | 8820840 | 2021-10-19 00:30:37 -0700 | [diff] [blame] | 170 | else ifeq ($(HOST_OS),darwin) |
| 171 | HOST_CROSS_OS := darwin |
| 172 | HOST_CROSS_ARCH := arm64 |
| 173 | HOST_CROSS_2ND_ARCH := |
Dan Willemsen | 2a6e3b0 | 2017-11-06 11:03:28 -0800 | [diff] [blame] | 174 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 175 | |
| 176 | ifeq ($(HOST_OS),) |
| 177 | $(error Unable to determine HOST_OS from uname -sm: $(UNAME)!) |
| 178 | endif |
| 179 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 180 | # HOST_ARCH |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 181 | ifneq (,$(findstring x86_64,$(UNAME))) |
Ying Wang | 2713fce | 2014-06-09 12:31:12 -0700 | [diff] [blame] | 182 | HOST_ARCH := x86_64 |
| 183 | HOST_2ND_ARCH := x86 |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 184 | HOST_IS_64_BIT := true |
Brian Carlstrom | 2cd8a74 | 2015-03-20 11:39:00 -0700 | [diff] [blame] | 185 | else |
Dan Willemsen | 88225fd | 2016-06-29 12:26:53 -0700 | [diff] [blame] | 186 | ifneq (,$(findstring i686,$(UNAME))$(findstring x86,$(UNAME))) |
Brian Carlstrom | 2cd8a74 | 2015-03-20 11:39:00 -0700 | [diff] [blame] | 187 | $(error Building on a 32-bit x86 host is not supported: $(UNAME)!) |
| 188 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 189 | endif |
| 190 | |
Dan Willemsen | 1d090fc | 2018-08-28 01:51:25 -0700 | [diff] [blame] | 191 | ifeq ($(HOST_OS),darwin) |
| 192 | # Mac no longer supports 32-bit executables |
| 193 | HOST_2ND_ARCH := |
| 194 | endif |
| 195 | |
Anton Hansson | 1927985 | 2019-02-28 17:15:57 +0000 | [diff] [blame] | 196 | HOST_2ND_ARCH_VAR_PREFIX := 2ND_ |
| 197 | HOST_2ND_ARCH_MODULE_SUFFIX := _32 |
| 198 | HOST_CROSS_2ND_ARCH_VAR_PREFIX := 2ND_ |
| 199 | HOST_CROSS_2ND_ARCH_MODULE_SUFFIX := _64 |
| 200 | TARGET_2ND_ARCH_VAR_PREFIX := 2ND_ |
| 201 | .KATI_READONLY := \ |
| 202 | HOST_ARCH \ |
| 203 | HOST_2ND_ARCH \ |
| 204 | HOST_IS_64_BIT \ |
| 205 | HOST_2ND_ARCH_VAR_PREFIX \ |
| 206 | HOST_2ND_ARCH_MODULE_SUFFIX \ |
| 207 | HOST_CROSS_2ND_ARCH_VAR_PREFIX \ |
| 208 | HOST_CROSS_2ND_ARCH_MODULE_SUFFIX \ |
| 209 | TARGET_2ND_ARCH_VAR_PREFIX \ |
| 210 | |
| 211 | combo_target := HOST_ |
| 212 | combo_2nd_arch_prefix := |
| 213 | include $(BUILD_COMBOS)/select.mk |
| 214 | |
| 215 | ifdef HOST_2ND_ARCH |
| 216 | combo_2nd_arch_prefix := $(HOST_2ND_ARCH_VAR_PREFIX) |
| 217 | include $(BUILD_SYSTEM)/combo/select.mk |
| 218 | endif |
| 219 | |
| 220 | # Load the windows cross compiler under Linux |
| 221 | ifdef HOST_CROSS_OS |
| 222 | combo_target := HOST_CROSS_ |
| 223 | combo_2nd_arch_prefix := |
| 224 | include $(BUILD_SYSTEM)/combo/select.mk |
| 225 | |
| 226 | ifdef HOST_CROSS_2ND_ARCH |
| 227 | combo_2nd_arch_prefix := $(HOST_CROSS_2ND_ARCH_VAR_PREFIX) |
| 228 | include $(BUILD_SYSTEM)/combo/select.mk |
| 229 | endif |
| 230 | endif |
| 231 | |
| 232 | # on windows, the tools have .exe at the end, and we depend on the |
| 233 | # host config stuff being done first |
| 234 | |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 235 | BUILD_ARCH := $(HOST_ARCH) |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 236 | BUILD_2ND_ARCH := $(HOST_2ND_ARCH) |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 237 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 238 | ifeq ($(HOST_ARCH),) |
| 239 | $(error Unable to determine HOST_ARCH from uname -sm: $(UNAME)!) |
| 240 | endif |
| 241 | |
| 242 | # the host build defaults to release, and it must be release or debug |
| 243 | ifeq ($(HOST_BUILD_TYPE),) |
| 244 | HOST_BUILD_TYPE := release |
| 245 | endif |
| 246 | |
| 247 | ifneq ($(HOST_BUILD_TYPE),release) |
| 248 | ifneq ($(HOST_BUILD_TYPE),debug) |
| 249 | $(error HOST_BUILD_TYPE must be either release or debug, not '$(HOST_BUILD_TYPE)') |
| 250 | endif |
| 251 | endif |
| 252 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 253 | # We don't want to move all the prebuilt host tools to a $(HOST_OS)-x86_64 dir. |
| 254 | HOST_PREBUILT_ARCH := x86 |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 255 | # This is the standard way to name a directory containing prebuilt host |
| 256 | # objects. E.g., prebuilt/$(HOST_PREBUILT_TAG)/cc |
Dan Albert | 216ecac | 2015-05-04 12:44:44 -0700 | [diff] [blame] | 257 | HOST_PREBUILT_TAG := $(BUILD_OS)-$(HOST_PREBUILT_ARCH) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 258 | |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 259 | # TARGET_COPY_OUT_* are all relative to the staging directory, ie PRODUCT_OUT. |
| 260 | # Define them here so they can be used in product config files. |
| 261 | TARGET_COPY_OUT_SYSTEM := system |
Ramji Jiyani | 1065523 | 2022-01-20 06:43:09 +0000 | [diff] [blame] | 262 | TARGET_COPY_OUT_SYSTEM_DLKM := system_dlkm |
Alex Light | 4e358ab | 2016-06-16 14:47:10 -0700 | [diff] [blame] | 263 | TARGET_COPY_OUT_SYSTEM_OTHER := system_other |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 264 | TARGET_COPY_OUT_DATA := data |
Vishwath Mohan | b285c46 | 2017-03-29 15:32:04 -0700 | [diff] [blame] | 265 | TARGET_COPY_OUT_ASAN := $(TARGET_COPY_OUT_DATA)/asan |
Ying Wang | b888843 | 2014-03-11 17:13:27 -0700 | [diff] [blame] | 266 | TARGET_COPY_OUT_OEM := oem |
Tom Cherry | d14b895 | 2018-08-09 14:26:00 -0700 | [diff] [blame] | 267 | TARGET_COPY_OUT_RAMDISK := ramdisk |
Bowgo Tsai | 0013f55 | 2019-03-20 17:59:52 +0800 | [diff] [blame] | 268 | TARGET_COPY_OUT_DEBUG_RAMDISK := debug_ramdisk |
Bowgo Tsai | 6a68367 | 2020-02-14 19:00:15 +0800 | [diff] [blame] | 269 | TARGET_COPY_OUT_VENDOR_DEBUG_RAMDISK := vendor_debug_ramdisk |
Bowgo Tsai | 5c40c71 | 2019-10-08 10:22:19 +0800 | [diff] [blame] | 270 | TARGET_COPY_OUT_TEST_HARNESS_RAMDISK := test_harness_ramdisk |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 271 | TARGET_COPY_OUT_ROOT := root |
| 272 | TARGET_COPY_OUT_RECOVERY := recovery |
Anton Hansson | 379b2ba | 2018-10-02 14:10:16 +0100 | [diff] [blame] | 273 | # The directory used for optional partitions depend on the BoardConfig, so |
| 274 | # they're defined to placeholder values here and swapped after reading the |
| 275 | # BoardConfig, to be either the partition dir, or a subdir within 'system'. |
| 276 | _vendor_path_placeholder := ||VENDOR-PATH-PH|| |
| 277 | _product_path_placeholder := ||PRODUCT-PATH-PH|| |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 278 | _system_ext_path_placeholder := ||SYSTEM_EXT-PATH-PH|| |
Anton Hansson | 379b2ba | 2018-10-02 14:10:16 +0100 | [diff] [blame] | 279 | _odm_path_placeholder := ||ODM-PATH-PH|| |
Yifan Hong | cfb917a | 2020-05-07 14:58:20 -0700 | [diff] [blame] | 280 | _vendor_dlkm_path_placeholder := ||VENDOR_DLKM-PATH-PH|| |
Yifan Hong | f496f1b | 2020-07-15 16:52:59 -0700 | [diff] [blame] | 281 | _odm_dlkm_path_placeholder := ||ODM_DLKM-PATH-PH|| |
Ramji Jiyani | 13a4137 | 2022-01-27 07:05:08 +0000 | [diff] [blame] | 282 | _system_dlkm_path_placeholder := ||SYSTEM_DLKM-PATH-PH|| |
Anton Hansson | 379b2ba | 2018-10-02 14:10:16 +0100 | [diff] [blame] | 283 | TARGET_COPY_OUT_VENDOR := $(_vendor_path_placeholder) |
Petri Gynther | dc24d88 | 2021-03-02 23:54:08 -0800 | [diff] [blame] | 284 | TARGET_COPY_OUT_VENDOR_RAMDISK := vendor_ramdisk |
Lucas Wei | f57333f | 2022-02-24 10:30:15 +0800 | [diff] [blame] | 285 | TARGET_COPY_OUT_VENDOR_KERNEL_RAMDISK := vendor_kernel_ramdisk |
Anton Hansson | 379b2ba | 2018-10-02 14:10:16 +0100 | [diff] [blame] | 286 | TARGET_COPY_OUT_PRODUCT := $(_product_path_placeholder) |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 287 | # TODO(b/135957588) TARGET_COPY_OUT_PRODUCT_SERVICES will copy the target to |
| 288 | # product |
| 289 | TARGET_COPY_OUT_PRODUCT_SERVICES := $(_product_path_placeholder) |
| 290 | TARGET_COPY_OUT_SYSTEM_EXT := $(_system_ext_path_placeholder) |
Anton Hansson | 379b2ba | 2018-10-02 14:10:16 +0100 | [diff] [blame] | 291 | TARGET_COPY_OUT_ODM := $(_odm_path_placeholder) |
Yifan Hong | cfb917a | 2020-05-07 14:58:20 -0700 | [diff] [blame] | 292 | TARGET_COPY_OUT_VENDOR_DLKM := $(_vendor_dlkm_path_placeholder) |
Yifan Hong | f496f1b | 2020-07-15 16:52:59 -0700 | [diff] [blame] | 293 | TARGET_COPY_OUT_ODM_DLKM := $(_odm_dlkm_path_placeholder) |
Ramji Jiyani | 13a4137 | 2022-01-27 07:05:08 +0000 | [diff] [blame] | 294 | TARGET_COPY_OUT_SYSTEM_DLKM := $(_system_dlkm_path_placeholder) |
Vishwath Mohan | d4dbf79 | 2017-05-16 14:27:34 -0700 | [diff] [blame] | 295 | |
| 296 | # Returns the non-sanitized version of the path provided in $1. |
| 297 | define get_non_asan_path |
| 298 | $(patsubst $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/%,$(PRODUCT_OUT)/%,$1) |
| 299 | endef |
| 300 | |
Igor Murashkin | 9d4639c | 2017-06-15 10:41:02 -0700 | [diff] [blame] | 301 | ################################################################# |
| 302 | # Set up minimal BOOTCLASSPATH list of jars to build/execute |
| 303 | # java code with dalvikvm/art. |
Martin Stjernholm | 743513c | 2021-07-05 20:53:57 +0100 | [diff] [blame] | 304 | # Jars present in the ART apex. These should match exactly the list of Java |
| 305 | # libraries in art-bootclasspath-fragment. The APEX variant name |
| 306 | # (com.android.art) is the same regardless which Soong module provides the ART |
| 307 | # APEX. See the long comment in build/soong/java/dexprepopt_bootjars.go for |
| 308 | # details. |
Ulya Trafimovich | 4c69c2f | 2020-04-30 10:59:48 +0100 | [diff] [blame] | 309 | ART_APEX_JARS := \ |
| 310 | com.android.art:core-oj \ |
| 311 | com.android.art:core-libart \ |
Ulya Trafimovich | 4c69c2f | 2020-04-30 10:59:48 +0100 | [diff] [blame] | 312 | com.android.art:okhttp \ |
| 313 | com.android.art:bouncycastle \ |
| 314 | com.android.art:apache-xml |
Martin Stjernholm | fa83228 | 2021-02-17 12:26:19 +0000 | [diff] [blame] | 315 | # With EMMA_INSTRUMENT_FRAMEWORK=true the Core libraries depend on jacoco. |
| 316 | ifeq (true,$(EMMA_INSTRUMENT_FRAMEWORK)) |
| 317 | ART_APEX_JARS += com.android.art:jacocoagent |
| 318 | endif |
Igor Murashkin | 9d4639c | 2017-06-15 10:41:02 -0700 | [diff] [blame] | 319 | ################################################################# |
| 320 | |
Cole Faust | f1f49bb | 2021-12-01 13:49:12 -0800 | [diff] [blame] | 321 | # Dumps all variables that match [A-Z][A-Z0-9_]* (with a few exceptions) |
| 322 | # to the file at $(1). It is used to print only the variables that are |
| 323 | # likely to be relevant to the product or board configuration. |
Cole Faust | c722659 | 2022-01-12 21:20:07 -0800 | [diff] [blame] | 324 | # Soong config variables are dumped as $(call soong_config_set) calls |
| 325 | # instead of the raw variable values, because mk2rbc can't read the |
| 326 | # raw ones. |
Cole Faust | f1f49bb | 2021-12-01 13:49:12 -0800 | [diff] [blame] | 327 | define dump-variables-rbc |
Cole Faust | 0a74600 | 2022-03-24 12:21:55 -0700 | [diff] [blame] | 328 | $(eval _dump_variables_rbc_excluded := \ |
Cole Faust | ec8316d | 2022-04-04 11:52:52 -0700 | [diff] [blame] | 329 | BOARD_PLAT_PRIVATE_SEPOLICY_DIR \ |
| 330 | BOARD_PLAT_PUBLIC_SEPOLICY_DIR \ |
| 331 | BUILD_NUMBER \ |
| 332 | DATE \ |
Cole Faust | 0a74600 | 2022-03-24 12:21:55 -0700 | [diff] [blame] | 333 | LOCAL_PATH \ |
Cole Faust | ec8316d | 2022-04-04 11:52:52 -0700 | [diff] [blame] | 334 | MAKEFILE_LIST \ |
| 335 | PRODUCTS \ |
| 336 | PRODUCT_COPY_OUT_% \ |
| 337 | RBC_PRODUCT_CONFIG \ |
| 338 | RBC_BOARD_CONFIG \ |
| 339 | SOONG_% \ |
Cole Faust | 0a74600 | 2022-03-24 12:21:55 -0700 | [diff] [blame] | 340 | TOPDIR \ |
| 341 | TRACE_BEGIN_SOONG \ |
Cole Faust | ec8316d | 2022-04-04 11:52:52 -0700 | [diff] [blame] | 342 | USER) |
| 343 | $(file >$(OUT_DIR)/dump-variables-rbc-temp.txt,$(subst $(space),$(newline),$(sort $(filter-out $(_dump_variables_rbc_excluded),$(.VARIABLES))))) |
Cole Faust | f1f49bb | 2021-12-01 13:49:12 -0800 | [diff] [blame] | 344 | $(file >$(1),\ |
Cole Faust | 971ef8e | 2022-04-06 11:58:37 -0700 | [diff] [blame] | 345 | $(foreach v, $(shell grep -he "^[A-Z][A-Z0-9_]*$$" $(OUT_DIR)/dump-variables-rbc-temp.txt),\ |
Cole Faust | c722659 | 2022-01-12 21:20:07 -0800 | [diff] [blame] | 346 | $(v) := $(strip $($(v)))$(newline))\ |
Cole Faust | ec8316d | 2022-04-04 11:52:52 -0700 | [diff] [blame] | 347 | $(foreach ns,$(sort $(SOONG_CONFIG_NAMESPACES)),\ |
| 348 | $(foreach v,$(sort $(SOONG_CONFIG_$(ns))),\ |
Cole Faust | c722659 | 2022-01-12 21:20:07 -0800 | [diff] [blame] | 349 | $$(call soong_config_set,$(ns),$(v),$(SOONG_CONFIG_$(ns)_$(v)))$(newline)))) |
Cole Faust | f1f49bb | 2021-12-01 13:49:12 -0800 | [diff] [blame] | 350 | endef |
| 351 | |
Ying Wang | 6aef047 | 2014-07-23 20:20:49 -0700 | [diff] [blame] | 352 | # Read the product specs so we can get TARGET_DEVICE and other |
Ryo Fujii | cbb3266 | 2011-06-16 16:58:11 -0700 | [diff] [blame] | 353 | # variables that we need in order to locate the output files. |
| 354 | include $(BUILD_SYSTEM)/product_config.mk |
Jesse Wilson | ce7d502 | 2010-09-22 10:59:10 -0700 | [diff] [blame] | 355 | |
Ying Wang | d0244b3 | 2011-11-17 14:51:12 -0800 | [diff] [blame] | 356 | build_variant := $(filter-out eng user userdebug,$(TARGET_BUILD_VARIANT)) |
Ryo Fujii | cbb3266 | 2011-06-16 16:58:11 -0700 | [diff] [blame] | 357 | ifneq ($(build_variant)-$(words $(TARGET_BUILD_VARIANT)),-1) |
| 358 | $(warning bad TARGET_BUILD_VARIANT: $(TARGET_BUILD_VARIANT)) |
Ying Wang | d0244b3 | 2011-11-17 14:51:12 -0800 | [diff] [blame] | 359 | $(error must be empty or one of: eng user userdebug) |
Ryo Fujii | cbb3266 | 2011-06-16 16:58:11 -0700 | [diff] [blame] | 360 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 361 | |
Ying Wang | 7ba7d7f | 2014-09-02 15:11:20 -0700 | [diff] [blame] | 362 | SDK_HOST_ARCH := x86 |
Anton Hansson | 1927985 | 2019-02-28 17:15:57 +0000 | [diff] [blame] | 363 | TARGET_OS := linux |
Ying Wang | 7ba7d7f | 2014-09-02 15:11:20 -0700 | [diff] [blame] | 364 | |
Cole Faust | 52e5d9c | 2021-11-30 11:24:33 -0800 | [diff] [blame] | 365 | # Some board configuration files use $(PRODUCT_OUT) |
| 366 | TARGET_OUT_ROOT := $(OUT_DIR)/target |
| 367 | TARGET_PRODUCT_OUT_ROOT := $(TARGET_OUT_ROOT)/product |
| 368 | PRODUCT_OUT := $(TARGET_PRODUCT_OUT_ROOT)/$(TARGET_DEVICE) |
| 369 | .KATI_READONLY := TARGET_OUT_ROOT TARGET_PRODUCT_OUT_ROOT PRODUCT_OUT |
| 370 | |
Anton Hansson | bb76ce8 | 2019-02-26 12:34:03 +0000 | [diff] [blame] | 371 | include $(BUILD_SYSTEM)/board_config.mk |
Jiyong Park | 641b6cc | 2018-01-15 14:48:40 +0900 | [diff] [blame] | 372 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 373 | # the target build type defaults to release |
| 374 | ifneq ($(TARGET_BUILD_TYPE),debug) |
| 375 | TARGET_BUILD_TYPE := release |
| 376 | endif |
| 377 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 378 | # --------------------------------------------------------------- |
| 379 | # figure out the output directories |
| 380 | |
Dan Willemsen | 60d9c67 | 2016-05-27 15:15:47 -0700 | [diff] [blame] | 381 | SOONG_OUT_DIR := $(OUT_DIR)/soong |
| 382 | |
Dan Willemsen | d6ed368 | 2017-09-08 14:29:51 -0700 | [diff] [blame] | 383 | HOST_OUT_ROOT := $(OUT_DIR)/host |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 384 | |
Cole Faust | 52e5d9c | 2021-11-30 11:24:33 -0800 | [diff] [blame] | 385 | .KATI_READONLY := SOONG_OUT_DIR HOST_OUT_ROOT |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 386 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 387 | # We want to avoid two host bin directories in multilib build. |
Dan Willemsen | d6ed368 | 2017-09-08 14:29:51 -0700 | [diff] [blame] | 388 | HOST_OUT := $(HOST_OUT_ROOT)/$(HOST_OS)-$(HOST_PREBUILT_ARCH) |
Colin Cross | da166c5 | 2021-11-18 15:42:19 -0800 | [diff] [blame] | 389 | |
| 390 | # Soong now installs to the same directory as Make. |
| 391 | SOONG_HOST_OUT := $(HOST_OUT) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 392 | |
Jiyong Park | eccc461 | 2020-07-13 19:19:27 +0900 | [diff] [blame] | 393 | HOST_CROSS_OUT := $(HOST_OUT_ROOT)/$(HOST_CROSS_OS)-$(HOST_CROSS_ARCH) |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 394 | |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 395 | .KATI_READONLY := HOST_OUT SOONG_HOST_OUT HOST_CROSS_OUT |
| 396 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 397 | TARGET_COMMON_OUT_ROOT := $(TARGET_OUT_ROOT)/common |
| 398 | HOST_COMMON_OUT_ROOT := $(HOST_OUT_ROOT)/common |
| 399 | |
Cole Faust | 52e5d9c | 2021-11-30 11:24:33 -0800 | [diff] [blame] | 400 | .KATI_READONLY := TARGET_COMMON_OUT_ROOT HOST_COMMON_OUT_ROOT |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 401 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 402 | OUT_DOCS := $(TARGET_COMMON_OUT_ROOT)/docs |
Dan Albert | 303e603 | 2017-10-04 10:20:20 -0700 | [diff] [blame] | 403 | OUT_NDK_DOCS := $(TARGET_COMMON_OUT_ROOT)/ndk-docs |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 404 | .KATI_READONLY := OUT_DOCS OUT_NDK_DOCS |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 405 | |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 406 | $(call KATI_obsolete,BUILD_OUT,Use HOST_OUT instead) |
| 407 | |
| 408 | BUILD_OUT_EXECUTABLES := $(HOST_OUT)/bin |
Dan Willemsen | 60d9c67 | 2016-05-27 15:15:47 -0700 | [diff] [blame] | 409 | SOONG_HOST_OUT_EXECUTABLES := $(SOONG_HOST_OUT)/bin |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 410 | .KATI_READONLY := BUILD_OUT_EXECUTABLES SOONG_HOST_OUT_EXECUTABLES |
Raphael | 9ca1628 | 2010-04-16 17:50:09 -0700 | [diff] [blame] | 411 | |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 412 | HOST_OUT_EXECUTABLES := $(HOST_OUT)/bin |
Ying Wang | 36ef50f | 2014-06-30 17:06:21 -0700 | [diff] [blame] | 413 | HOST_OUT_SHARED_LIBRARIES := $(HOST_OUT)/lib64 |
Ivan Lozano | d62e712 | 2019-08-27 11:23:35 -0700 | [diff] [blame] | 414 | HOST_OUT_DYLIB_LIBRARIES := $(HOST_OUT)/lib64 |
Dan Willemsen | c6e194f | 2016-02-13 00:19:40 -0800 | [diff] [blame] | 415 | HOST_OUT_RENDERSCRIPT_BITCODE := $(HOST_OUT_SHARED_LIBRARIES) |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 416 | HOST_OUT_JAVA_LIBRARIES := $(HOST_OUT)/framework |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 417 | HOST_OUT_SDK_ADDON := $(HOST_OUT)/sdk_addon |
Dan Willemsen | 7fe992c | 2016-03-02 13:54:51 -0800 | [diff] [blame] | 418 | HOST_OUT_NATIVE_TESTS := $(HOST_OUT)/nativetest64 |
Ryan Campbell | 81c9d29 | 2016-09-12 13:56:50 -0700 | [diff] [blame] | 419 | HOST_OUT_COVERAGE := $(HOST_OUT)/coverage |
Colin Cross | e887ccb | 2018-03-16 22:09:50 -0700 | [diff] [blame] | 420 | HOST_OUT_TESTCASES := $(HOST_OUT)/testcases |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 421 | .KATI_READONLY := \ |
| 422 | HOST_OUT_EXECUTABLES \ |
| 423 | HOST_OUT_SHARED_LIBRARIES \ |
| 424 | HOST_OUT_RENDERSCRIPT_BITCODE \ |
| 425 | HOST_OUT_JAVA_LIBRARIES \ |
| 426 | HOST_OUT_SDK_ADDON \ |
| 427 | HOST_OUT_NATIVE_TESTS \ |
| 428 | HOST_OUT_COVERAGE \ |
| 429 | HOST_OUT_TESTCASES |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 430 | |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 431 | HOST_CROSS_OUT_EXECUTABLES := $(HOST_CROSS_OUT)/bin |
| 432 | HOST_CROSS_OUT_SHARED_LIBRARIES := $(HOST_CROSS_OUT)/lib |
Dan Willemsen | 7fe992c | 2016-03-02 13:54:51 -0800 | [diff] [blame] | 433 | HOST_CROSS_OUT_NATIVE_TESTS := $(HOST_CROSS_OUT)/nativetest |
Ryan Campbell | 81c9d29 | 2016-09-12 13:56:50 -0700 | [diff] [blame] | 434 | HOST_CROSS_OUT_COVERAGE := $(HOST_CROSS_OUT)/coverage |
Colin Cross | e887ccb | 2018-03-16 22:09:50 -0700 | [diff] [blame] | 435 | HOST_CROSS_OUT_TESTCASES := $(HOST_CROSS_OUT)/testcases |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 436 | .KATI_READONLY := \ |
| 437 | HOST_CROSS_OUT_EXECUTABLES \ |
| 438 | HOST_CROSS_OUT_SHARED_LIBRARIES \ |
| 439 | HOST_CROSS_OUT_NATIVE_TESTS \ |
| 440 | HOST_CROSS_OUT_COVERAGE \ |
| 441 | HOST_CROSS_OUT_TESTCASES |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 442 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 443 | HOST_OUT_INTERMEDIATES := $(HOST_OUT)/obj |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 444 | HOST_OUT_NOTICE_FILES := $(HOST_OUT_INTERMEDIATES)/NOTICE_FILES |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 445 | HOST_OUT_COMMON_INTERMEDIATES := $(HOST_COMMON_OUT_ROOT)/obj |
Ying Wang | ec900ac | 2013-11-13 15:56:18 -0800 | [diff] [blame] | 446 | HOST_OUT_FAKE := $(HOST_OUT)/fake_packages |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 447 | .KATI_READONLY := \ |
| 448 | HOST_OUT_INTERMEDIATES \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 449 | HOST_OUT_NOTICE_FILES \ |
| 450 | HOST_OUT_COMMON_INTERMEDIATES \ |
| 451 | HOST_OUT_FAKE |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 452 | |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 453 | HOST_CROSS_OUT_INTERMEDIATES := $(HOST_CROSS_OUT)/obj |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 454 | HOST_CROSS_OUT_NOTICE_FILES := $(HOST_CROSS_OUT_INTERMEDIATES)/NOTICE_FILES |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 455 | .KATI_READONLY := \ |
| 456 | HOST_CROSS_OUT_INTERMEDIATES \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 457 | HOST_CROSS_OUT_NOTICE_FILES |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 458 | |
Colin Cross | d826264 | 2014-01-24 23:17:21 -0800 | [diff] [blame] | 459 | HOST_OUT_GEN := $(HOST_OUT)/gen |
| 460 | HOST_OUT_COMMON_GEN := $(HOST_COMMON_OUT_ROOT)/gen |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 461 | .KATI_READONLY := \ |
| 462 | HOST_OUT_GEN \ |
| 463 | HOST_OUT_COMMON_GEN |
Colin Cross | d826264 | 2014-01-24 23:17:21 -0800 | [diff] [blame] | 464 | |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 465 | HOST_CROSS_OUT_GEN := $(HOST_CROSS_OUT)/gen |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 466 | .KATI_READONLY := HOST_CROSS_OUT_GEN |
Dan Willemsen | 057aaea | 2015-08-14 12:59:50 -0700 | [diff] [blame] | 467 | |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 468 | # Out for HOST_2ND_ARCH |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 469 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_INTERMEDIATES := $(HOST_OUT)/obj32 |
Ying Wang | 966c1e0 | 2014-05-20 14:43:51 -0700 | [diff] [blame] | 470 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_SHARED_LIBRARIES := $(HOST_OUT)/lib |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 471 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_EXECUTABLES := $(HOST_OUT_EXECUTABLES) |
Dan Albert | dc94137 | 2015-05-04 18:17:52 -0700 | [diff] [blame] | 472 | $(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] | 473 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_NATIVE_TESTS := $(HOST_OUT)/nativetest |
Simran Basi | 7166d1f | 2017-01-25 15:11:55 -0800 | [diff] [blame] | 474 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_TESTCASES := $(HOST_OUT_TESTCASES) |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 475 | .KATI_READONLY := \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 476 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_INTERMEDIATES \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 477 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_SHARED_LIBRARIES \ |
| 478 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_EXECUTABLES \ |
| 479 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_JAVA_LIBRARIES \ |
| 480 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_NATIVE_TESTS \ |
| 481 | $(HOST_2ND_ARCH_VAR_PREFIX)HOST_OUT_TESTCASES |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 482 | |
Ying Wang | c459586 | 2014-06-10 12:04:56 -0700 | [diff] [blame] | 483 | # The default host library path. |
| 484 | # 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] | 485 | HOST_LIBRARY_PATH := $(HOST_OUT_SHARED_LIBRARIES) |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 486 | .KATI_READONLY := HOST_LIBRARY_PATH |
Ying Wang | 6feb6d5 | 2014-04-17 10:03:35 -0700 | [diff] [blame] | 487 | |
Dan Willemsen | 9ecbf83 | 2016-02-05 16:20:19 -0800 | [diff] [blame] | 488 | # Out for HOST_CROSS_2ND_ARCH |
Dan Willemsen | 9ecbf83 | 2016-02-05 16:20:19 -0800 | [diff] [blame] | 489 | $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_INTERMEDIATES := $(HOST_CROSS_OUT)/obj64 |
Dan Willemsen | 9ecbf83 | 2016-02-05 16:20:19 -0800 | [diff] [blame] | 490 | $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_SHARED_LIBRARIES := $(HOST_CROSS_OUT)/lib64 |
| 491 | $(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] | 492 | $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_NATIVE_TESTS := $(HOST_CROSS_OUT)/nativetest64 |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 493 | .KATI_READONLY := \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 494 | $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_INTERMEDIATES \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 495 | $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_SHARED_LIBRARIES \ |
| 496 | $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_EXECUTABLES \ |
| 497 | $(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_OUT_NATIVE_TESTS |
Dan Willemsen | 9ecbf83 | 2016-02-05 16:20:19 -0800 | [diff] [blame] | 498 | |
Vishwath Mohan | d8eabaa | 2017-05-09 19:36:54 -0700 | [diff] [blame] | 499 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
| 500 | TARGET_OUT_INTERMEDIATES := $(PRODUCT_OUT)/obj_asan |
| 501 | else |
| 502 | TARGET_OUT_INTERMEDIATES := $(PRODUCT_OUT)/obj |
| 503 | endif |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 504 | TARGET_OUT_HEADERS := $(TARGET_OUT_INTERMEDIATES)/include |
Dan Willemsen | 8cf6b65 | 2018-09-05 11:01:12 -0700 | [diff] [blame] | 505 | .KATI_READONLY := TARGET_OUT_INTERMEDIATES TARGET_OUT_HEADERS |
Vishwath Mohan | d8eabaa | 2017-05-09 19:36:54 -0700 | [diff] [blame] | 506 | |
| 507 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
| 508 | TARGET_OUT_COMMON_INTERMEDIATES := $(TARGET_COMMON_OUT_ROOT)/obj_asan |
| 509 | else |
| 510 | TARGET_OUT_COMMON_INTERMEDIATES := $(TARGET_COMMON_OUT_ROOT)/obj |
| 511 | endif |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 512 | .KATI_READONLY := TARGET_OUT_COMMON_INTERMEDIATES |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 513 | |
Colin Cross | d826264 | 2014-01-24 23:17:21 -0800 | [diff] [blame] | 514 | TARGET_OUT_GEN := $(PRODUCT_OUT)/gen |
| 515 | TARGET_OUT_COMMON_GEN := $(TARGET_COMMON_OUT_ROOT)/gen |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 516 | .KATI_READONLY := TARGET_OUT_GEN TARGET_OUT_COMMON_GEN |
Colin Cross | d826264 | 2014-01-24 23:17:21 -0800 | [diff] [blame] | 517 | |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 518 | TARGET_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_SYSTEM) |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 519 | .KATI_READONLY := TARGET_OUT |
Ivan Krasin | 74b32b8 | 2015-09-18 11:54:43 -0700 | [diff] [blame] | 520 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
Vishwath Mohan | b285c46 | 2017-03-29 15:32:04 -0700 | [diff] [blame] | 521 | target_out_shared_libraries_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/system |
Andreas Gampe | 4ed21d1 | 2017-06-16 10:24:54 -0700 | [diff] [blame] | 522 | ifeq ($(SANITIZE_LITE),true) |
| 523 | # When using SANITIZE_LITE, APKs must not be packaged with sanitized libraries, as they will not |
| 524 | # work with unsanitized app_process. For simplicity, generate APKs into /data/asan/. |
| 525 | target_out_app_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/system |
| 526 | else |
| 527 | target_out_app_base := $(TARGET_OUT) |
| 528 | endif |
Evgenii Stepanov | 4d3d414 | 2015-06-11 17:32:31 -0700 | [diff] [blame] | 529 | else |
| 530 | target_out_shared_libraries_base := $(TARGET_OUT) |
Andreas Gampe | 4ed21d1 | 2017-06-16 10:24:54 -0700 | [diff] [blame] | 531 | target_out_app_base := $(TARGET_OUT) |
Evgenii Stepanov | 4d3d414 | 2015-06-11 17:32:31 -0700 | [diff] [blame] | 532 | endif |
| 533 | |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 534 | TARGET_OUT_EXECUTABLES := $(TARGET_OUT)/bin |
| 535 | TARGET_OUT_OPTIONAL_EXECUTABLES := $(TARGET_OUT)/xbin |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 536 | ifeq ($(TARGET_IS_64_BIT),true) |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 537 | # /system/lib always contains 32-bit libraries, |
| 538 | # and /system/lib64 (if present) always contains 64-bit libraries. |
Evgenii Stepanov | 4d3d414 | 2015-06-11 17:32:31 -0700 | [diff] [blame] | 539 | TARGET_OUT_SHARED_LIBRARIES := $(target_out_shared_libraries_base)/lib64 |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 540 | else |
Evgenii Stepanov | 4d3d414 | 2015-06-11 17:32:31 -0700 | [diff] [blame] | 541 | TARGET_OUT_SHARED_LIBRARIES := $(target_out_shared_libraries_base)/lib |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 542 | endif |
Dan Willemsen | c6e194f | 2016-02-13 00:19:40 -0800 | [diff] [blame] | 543 | TARGET_OUT_RENDERSCRIPT_BITCODE := $(TARGET_OUT_SHARED_LIBRARIES) |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 544 | TARGET_OUT_JAVA_LIBRARIES := $(TARGET_OUT)/framework |
Andreas Gampe | 4ed21d1 | 2017-06-16 10:24:54 -0700 | [diff] [blame] | 545 | TARGET_OUT_APPS := $(target_out_app_base)/app |
| 546 | TARGET_OUT_APPS_PRIVILEGED := $(target_out_app_base)/priv-app |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 547 | TARGET_OUT_KEYLAYOUT := $(TARGET_OUT)/usr/keylayout |
| 548 | TARGET_OUT_KEYCHARS := $(TARGET_OUT)/usr/keychars |
| 549 | TARGET_OUT_ETC := $(TARGET_OUT)/etc |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 550 | TARGET_OUT_NOTICE_FILES := $(TARGET_OUT_INTERMEDIATES)/NOTICE_FILES |
Dima Zavin | 531f524 | 2010-09-27 17:37:17 -0700 | [diff] [blame] | 551 | TARGET_OUT_FAKE := $(PRODUCT_OUT)/fake_packages |
Simran Basi | 7166d1f | 2017-01-25 15:11:55 -0800 | [diff] [blame] | 552 | TARGET_OUT_TESTCASES := $(PRODUCT_OUT)/testcases |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 553 | .KATI_READONLY := \ |
| 554 | TARGET_OUT_EXECUTABLES \ |
| 555 | TARGET_OUT_OPTIONAL_EXECUTABLES \ |
| 556 | TARGET_OUT_SHARED_LIBRARIES \ |
| 557 | TARGET_OUT_RENDERSCRIPT_BITCODE \ |
| 558 | TARGET_OUT_JAVA_LIBRARIES \ |
| 559 | TARGET_OUT_APPS \ |
| 560 | TARGET_OUT_APPS_PRIVILEGED \ |
| 561 | TARGET_OUT_KEYLAYOUT \ |
| 562 | TARGET_OUT_KEYCHARS \ |
| 563 | TARGET_OUT_ETC \ |
| 564 | TARGET_OUT_NOTICE_FILES \ |
| 565 | TARGET_OUT_FAKE \ |
Dan Willemsen | efee069 | 2020-03-06 18:27:52 -0800 | [diff] [blame] | 566 | TARGET_OUT_TESTCASES |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 567 | |
Andreas Gampe | 4ed21d1 | 2017-06-16 10:24:54 -0700 | [diff] [blame] | 568 | ifeq ($(SANITIZE_LITE),true) |
| 569 | # When using SANITIZE_LITE, APKs must not be packaged with sanitized libraries, as they will not |
| 570 | # work with unsanitized app_process. For simplicity, generate APKs into /data/asan/. |
| 571 | TARGET_OUT_SYSTEM_OTHER := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/$(TARGET_COPY_OUT_SYSTEM_OTHER) |
| 572 | else |
Alex Light | 4e358ab | 2016-06-16 14:47:10 -0700 | [diff] [blame] | 573 | TARGET_OUT_SYSTEM_OTHER := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_SYSTEM_OTHER) |
Andreas Gampe | 4ed21d1 | 2017-06-16 10:24:54 -0700 | [diff] [blame] | 574 | endif |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 575 | .KATI_READONLY := TARGET_OUT_SYSTEM_OTHER |
Alex Light | 4e358ab | 2016-06-16 14:47:10 -0700 | [diff] [blame] | 576 | |
Ying Wang | e1d44c3 | 2013-12-27 11:09:36 -0800 | [diff] [blame] | 577 | # Out for TARGET_2ND_ARCH |
Ying Wang | c459586 | 2014-06-10 12:04:56 -0700 | [diff] [blame] | 578 | TARGET_2ND_ARCH_MODULE_SUFFIX := $(HOST_2ND_ARCH_MODULE_SUFFIX) |
Anton Hansson | 1927985 | 2019-02-28 17:15:57 +0000 | [diff] [blame] | 579 | .KATI_READONLY := TARGET_2ND_ARCH_MODULE_SUFFIX |
Vishwath Mohan | d8eabaa | 2017-05-09 19:36:54 -0700 | [diff] [blame] | 580 | |
| 581 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
| 582 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATES := $(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)_asan |
| 583 | else |
| 584 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATES := $(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH) |
| 585 | endif |
Evgenii Stepanov | 4d3d414 | 2015-06-11 17:32:31 -0700 | [diff] [blame] | 586 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SHARED_LIBRARIES := $(target_out_shared_libraries_base)/lib |
Dan Willemsen | c6e194f | 2016-02-13 00:19:40 -0800 | [diff] [blame] | 587 | $(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] | 588 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_EXECUTABLES := $(TARGET_OUT_EXECUTABLES) |
Colin Cross | d957446 | 2014-01-24 13:37:07 -0800 | [diff] [blame] | 589 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_APPS := $(TARGET_OUT_APPS) |
| 590 | $(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] | 591 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_TESTCASES := $(TARGET_OUT_TESTCASES) |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 592 | .KATI_READONLY := \ |
| 593 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATES \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 594 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SHARED_LIBRARIES \ |
| 595 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_RENDERSCRIPT_BITCODE \ |
| 596 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_EXECUTABLES \ |
| 597 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_APPS \ |
| 598 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_APPS_PRIVILEGED \ |
| 599 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_TESTCASES |
Ying Wang | e1d44c3 | 2013-12-27 11:09:36 -0800 | [diff] [blame] | 600 | |
Nelson Li | 1f8357f | 2019-03-14 01:04:05 +0000 | [diff] [blame] | 601 | MODULE_CLASS_APPS := app |
| 602 | MODULE_CLASS_EXECUTABLES := bin |
| 603 | MODULE_CLASS_JAVA_LIBRARIES := framework |
| 604 | MODULE_CLASS_NATIVE_TESTS := nativetest |
| 605 | MODULE_CLASS_METRIC_TESTS := benchmarktest |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 606 | TARGET_OUT_DATA := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_DATA) |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 607 | TARGET_OUT_DATA_EXECUTABLES := $(TARGET_OUT_EXECUTABLES) |
| 608 | TARGET_OUT_DATA_SHARED_LIBRARIES := $(TARGET_OUT_SHARED_LIBRARIES) |
| 609 | TARGET_OUT_DATA_JAVA_LIBRARIES := $(TARGET_OUT_DATA)/framework |
| 610 | TARGET_OUT_DATA_APPS := $(TARGET_OUT_DATA)/app |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 611 | TARGET_OUT_DATA_KEYLAYOUT := $(TARGET_OUT_KEYLAYOUT) |
| 612 | TARGET_OUT_DATA_KEYCHARS := $(TARGET_OUT_KEYCHARS) |
| 613 | TARGET_OUT_DATA_ETC := $(TARGET_OUT_ETC) |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 614 | ifeq ($(TARGET_IS_64_BIT),true) |
| 615 | TARGET_OUT_DATA_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest64 |
Julien Desprez | 188a1dd | 2016-04-12 10:22:06 +0100 | [diff] [blame] | 616 | TARGET_OUT_DATA_METRIC_TESTS := $(TARGET_OUT_DATA)/benchmarktest64 |
Steven Moreland | cbfba70 | 2017-07-11 14:59:30 -0700 | [diff] [blame] | 617 | TARGET_OUT_VENDOR_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest64$(TARGET_VENDOR_TEST_SUFFIX) |
| 618 | TARGET_OUT_VENDOR_METRIC_TESTS := $(TARGET_OUT_DATA)/benchmarktest64$(TARGET_VENDOR_TEST_SUFFIX) |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 619 | else |
Ying Wang | 4c68174 | 2010-07-20 11:08:47 -0700 | [diff] [blame] | 620 | TARGET_OUT_DATA_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest |
Julien Desprez | 188a1dd | 2016-04-12 10:22:06 +0100 | [diff] [blame] | 621 | TARGET_OUT_DATA_METRIC_TESTS := $(TARGET_OUT_DATA)/benchmarktest |
Steven Moreland | cbfba70 | 2017-07-11 14:59:30 -0700 | [diff] [blame] | 622 | TARGET_OUT_VENDOR_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest$(TARGET_VENDOR_TEST_SUFFIX) |
| 623 | TARGET_OUT_VENDOR_METRIC_TESTS := $(TARGET_OUT_DATA)/benchmarktest$(TARGET_VENDOR_TEST_SUFFIX) |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 624 | endif |
Nelson Li | 1f8357f | 2019-03-14 01:04:05 +0000 | [diff] [blame] | 625 | MODULE_CLASS_FAKE := fake_packages |
Tsu Chiang Chuang | 40da883 | 2012-07-13 13:47:09 -0700 | [diff] [blame] | 626 | TARGET_OUT_DATA_FAKE := $(TARGET_OUT_DATA)/fake_packages |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 627 | .KATI_READONLY := \ |
| 628 | TARGET_OUT_DATA \ |
| 629 | TARGET_OUT_DATA_EXECUTABLES \ |
| 630 | TARGET_OUT_DATA_SHARED_LIBRARIES \ |
| 631 | TARGET_OUT_DATA_JAVA_LIBRARIES \ |
| 632 | TARGET_OUT_DATA_APPS \ |
| 633 | TARGET_OUT_DATA_KEYLAYOUT \ |
| 634 | TARGET_OUT_DATA_KEYCHARS \ |
| 635 | TARGET_OUT_DATA_ETC \ |
| 636 | TARGET_OUT_DATA_NATIVE_TESTS \ |
| 637 | TARGET_OUT_DATA_METRIC_TESTS \ |
| 638 | TARGET_OUT_VENDOR_NATIVE_TESTS \ |
| 639 | TARGET_OUT_VENDOR_METRIC_TESTS \ |
Nelson Li | 1f8357f | 2019-03-14 01:04:05 +0000 | [diff] [blame] | 640 | TARGET_OUT_DATA_FAKE \ |
| 641 | MODULE_CLASS_APPS \ |
| 642 | MODULE_CLASS_EXECUTABLES \ |
| 643 | MODULE_CLASS_JAVA_LIBRARIES \ |
| 644 | MODULE_CLASS_NATIVE_TESTS \ |
| 645 | MODULE_CLASS_METRIC_TESTS \ |
| 646 | MODULE_CLASS_FAKE |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 647 | |
Ying Wang | e3d0679 | 2014-01-23 15:09:04 -0800 | [diff] [blame] | 648 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_EXECUTABLES := $(TARGET_OUT_DATA_EXECUTABLES) |
| 649 | $(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] | 650 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_APPS := $(TARGET_OUT_DATA_APPS) |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 651 | $(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] | 652 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_METRIC_TESTS := $(TARGET_OUT_DATA)/benchmarktest |
Steven Moreland | cbfba70 | 2017-07-11 14:59:30 -0700 | [diff] [blame] | 653 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_NATIVE_TESTS := $(TARGET_OUT_DATA)/nativetest$(TARGET_VENDOR_TEST_SUFFIX) |
| 654 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_METRIC_TESTS := $(TARGET_OUT_DATA)/benchmarktest$(TARGET_VENDOR_TEST_SUFFIX) |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 655 | .KATI_READONLY := \ |
| 656 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_EXECUTABLES \ |
| 657 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_SHARED_LIBRARIES \ |
| 658 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_APPS \ |
| 659 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS \ |
| 660 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_METRIC_TESTS \ |
| 661 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_NATIVE_TESTS \ |
| 662 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_METRIC_TESTS \ |
Ying Wang | e3d0679 | 2014-01-23 15:09:04 -0800 | [diff] [blame] | 663 | |
Ying Wang | 9f8e8db | 2011-11-04 11:37:01 -0700 | [diff] [blame] | 664 | TARGET_OUT_CACHE := $(PRODUCT_OUT)/cache |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 665 | .KATI_READONLY := TARGET_OUT_CACHE |
Ying Wang | 9f8e8db | 2011-11-04 11:37:01 -0700 | [diff] [blame] | 666 | |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 667 | TARGET_OUT_VENDOR := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR) |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 668 | .KATI_READONLY := TARGET_OUT_VENDOR |
Ivan Krasin | 74b32b8 | 2015-09-18 11:54:43 -0700 | [diff] [blame] | 669 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
Anton Hansson | ae9f105 | 2018-10-02 13:16:05 +0100 | [diff] [blame] | 670 | target_out_vendor_shared_libraries_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/$(TARGET_COPY_OUT_VENDOR) |
Andreas Gampe | 4ed21d1 | 2017-06-16 10:24:54 -0700 | [diff] [blame] | 671 | ifeq ($(SANITIZE_LITE),true) |
| 672 | # When using SANITIZE_LITE, APKs must not be packaged with sanitized libraries, as they will not |
| 673 | # work with unsanitized app_process. For simplicity, generate APKs into /data/asan/. |
Anton Hansson | ae9f105 | 2018-10-02 13:16:05 +0100 | [diff] [blame] | 674 | target_out_vendor_app_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/$(TARGET_COPY_OUT_VENDOR) |
Andreas Gampe | 4ed21d1 | 2017-06-16 10:24:54 -0700 | [diff] [blame] | 675 | else |
| 676 | target_out_vendor_app_base := $(TARGET_OUT_VENDOR) |
| 677 | endif |
Evgenii Stepanov | bf14097 | 2015-06-30 14:02:02 -0700 | [diff] [blame] | 678 | else |
| 679 | target_out_vendor_shared_libraries_base := $(TARGET_OUT_VENDOR) |
Andreas Gampe | 4ed21d1 | 2017-06-16 10:24:54 -0700 | [diff] [blame] | 680 | target_out_vendor_app_base := $(TARGET_OUT_VENDOR) |
Evgenii Stepanov | bf14097 | 2015-06-30 14:02:02 -0700 | [diff] [blame] | 681 | endif |
| 682 | |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 683 | TARGET_OUT_VENDOR_EXECUTABLES := $(TARGET_OUT_VENDOR)/bin |
| 684 | TARGET_OUT_VENDOR_OPTIONAL_EXECUTABLES := $(TARGET_OUT_VENDOR)/xbin |
Ying Wang | 4b1c95d | 2014-07-08 17:07:36 -0700 | [diff] [blame] | 685 | ifeq ($(TARGET_IS_64_BIT),true) |
Evgenii Stepanov | bf14097 | 2015-06-30 14:02:02 -0700 | [diff] [blame] | 686 | TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(target_out_vendor_shared_libraries_base)/lib64 |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 687 | else |
Evgenii Stepanov | bf14097 | 2015-06-30 14:02:02 -0700 | [diff] [blame] | 688 | TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(target_out_vendor_shared_libraries_base)/lib |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 689 | endif |
Miao Wang | 57be564 | 2017-03-01 19:39:19 -0800 | [diff] [blame] | 690 | TARGET_OUT_VENDOR_RENDERSCRIPT_BITCODE := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES) |
Ying Wang | c634974 | 2014-01-13 16:14:20 -0800 | [diff] [blame] | 691 | TARGET_OUT_VENDOR_JAVA_LIBRARIES := $(TARGET_OUT_VENDOR)/framework |
Andreas Gampe | 4ed21d1 | 2017-06-16 10:24:54 -0700 | [diff] [blame] | 692 | TARGET_OUT_VENDOR_APPS := $(target_out_vendor_app_base)/app |
| 693 | TARGET_OUT_VENDOR_APPS_PRIVILEGED := $(target_out_vendor_app_base)/priv-app |
Ying Wang | 8f77936 | 2011-09-13 13:57:26 -0700 | [diff] [blame] | 694 | TARGET_OUT_VENDOR_ETC := $(TARGET_OUT_VENDOR)/etc |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 695 | .KATI_READONLY := \ |
| 696 | TARGET_OUT_VENDOR_EXECUTABLES \ |
| 697 | TARGET_OUT_VENDOR_OPTIONAL_EXECUTABLES \ |
| 698 | TARGET_OUT_VENDOR_SHARED_LIBRARIES \ |
| 699 | TARGET_OUT_VENDOR_RENDERSCRIPT_BITCODE \ |
| 700 | TARGET_OUT_VENDOR_JAVA_LIBRARIES \ |
| 701 | TARGET_OUT_VENDOR_APPS \ |
| 702 | TARGET_OUT_VENDOR_APPS_PRIVILEGED \ |
| 703 | TARGET_OUT_VENDOR_ETC |
Ying Wang | 8f77936 | 2011-09-13 13:57:26 -0700 | [diff] [blame] | 704 | |
Ying Wang | e3d0679 | 2014-01-23 15:09:04 -0800 | [diff] [blame] | 705 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_EXECUTABLES := $(TARGET_OUT_VENDOR_EXECUTABLES) |
Andreas Gampe | cf6268f | 2016-06-30 20:20:38 -0700 | [diff] [blame] | 706 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_SHARED_LIBRARIES := $(target_out_vendor_shared_libraries_base)/lib |
Miao Wang | 57be564 | 2017-03-01 19:39:19 -0800 | [diff] [blame] | 707 | $(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] | 708 | $(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] | 709 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_APPS_PRIVILEGED := $(TARGET_OUT_VENDOR_APPS_PRIVILEGED) |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 710 | .KATI_READONLY := \ |
| 711 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_EXECUTABLES \ |
| 712 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_SHARED_LIBRARIES \ |
| 713 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_RENDERSCRIPT_BITCODE \ |
| 714 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_APPS \ |
| 715 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_APPS_PRIVILEGED |
Ying Wang | 61d499b | 2014-01-15 16:02:16 -0800 | [diff] [blame] | 716 | |
Ying Wang | b888843 | 2014-03-11 17:13:27 -0700 | [diff] [blame] | 717 | TARGET_OUT_OEM := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_OEM) |
Ying Wang | f15250e | 2014-06-26 14:12:35 -0700 | [diff] [blame] | 718 | TARGET_OUT_OEM_EXECUTABLES := $(TARGET_OUT_OEM)/bin |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 719 | ifeq ($(TARGET_IS_64_BIT),true) |
Ying Wang | f15250e | 2014-06-26 14:12:35 -0700 | [diff] [blame] | 720 | TARGET_OUT_OEM_SHARED_LIBRARIES := $(TARGET_OUT_OEM)/lib64 |
| 721 | else |
| 722 | TARGET_OUT_OEM_SHARED_LIBRARIES := $(TARGET_OUT_OEM)/lib |
| 723 | endif |
Ying Wang | b888843 | 2014-03-11 17:13:27 -0700 | [diff] [blame] | 724 | # We don't expect Java libraries in the oem.img. |
| 725 | # TARGET_OUT_OEM_JAVA_LIBRARIES:= $(TARGET_OUT_OEM)/framework |
Ying Wang | f15250e | 2014-06-26 14:12:35 -0700 | [diff] [blame] | 726 | TARGET_OUT_OEM_APPS := $(TARGET_OUT_OEM)/app |
Ying Wang | b888843 | 2014-03-11 17:13:27 -0700 | [diff] [blame] | 727 | TARGET_OUT_OEM_ETC := $(TARGET_OUT_OEM)/etc |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 728 | .KATI_READONLY := \ |
| 729 | TARGET_OUT_OEM \ |
| 730 | TARGET_OUT_OEM_EXECUTABLES \ |
| 731 | TARGET_OUT_OEM_SHARED_LIBRARIES \ |
| 732 | TARGET_OUT_OEM_APPS \ |
| 733 | TARGET_OUT_OEM_ETC |
Ying Wang | b888843 | 2014-03-11 17:13:27 -0700 | [diff] [blame] | 734 | |
Ying Wang | f15250e | 2014-06-26 14:12:35 -0700 | [diff] [blame] | 735 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_EXECUTABLES := $(TARGET_OUT_OEM_EXECUTABLES) |
| 736 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_SHARED_LIBRARIES := $(TARGET_OUT_OEM)/lib |
| 737 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_APPS := $(TARGET_OUT_OEM_APPS) |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 738 | .KATI_READONLY := \ |
| 739 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_EXECUTABLES \ |
| 740 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_SHARED_LIBRARIES \ |
| 741 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_OEM_APPS \ |
Ying Wang | f15250e | 2014-06-26 14:12:35 -0700 | [diff] [blame] | 742 | |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 743 | TARGET_OUT_ODM := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ODM) |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 744 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
Anton Hansson | ae9f105 | 2018-10-02 13:16:05 +0100 | [diff] [blame] | 745 | target_out_odm_shared_libraries_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/$(TARGET_COPY_OUT_OEM) |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 746 | ifeq ($(SANITIZE_LITE),true) |
| 747 | # When using SANITIZE_LITE, APKs must not be packaged with sanitized libraries, as they will not |
| 748 | # work with unsanitized app_process. For simplicity, generate APKs into /data/asan/. |
Anton Hansson | ae9f105 | 2018-10-02 13:16:05 +0100 | [diff] [blame] | 749 | target_out_odm_app_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/$(TARGET_COPY_OUT_OEM) |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 750 | else |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 751 | target_out_odm_app_base := $(TARGET_OUT_ODM) |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 752 | endif |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 753 | else |
| 754 | target_out_odm_shared_libraries_base := $(TARGET_OUT_ODM) |
| 755 | target_out_odm_app_base := $(TARGET_OUT_ODM) |
| 756 | endif |
| 757 | |
| 758 | TARGET_OUT_ODM_EXECUTABLES := $(TARGET_OUT_ODM)/bin |
| 759 | TARGET_OUT_ODM_OPTIONAL_EXECUTABLES := $(TARGET_OUT_ODM)/xbin |
| 760 | ifeq ($(TARGET_IS_64_BIT),true) |
| 761 | TARGET_OUT_ODM_SHARED_LIBRARIES := $(target_out_odm_shared_libraries_base)/lib64 |
| 762 | else |
| 763 | TARGET_OUT_ODM_SHARED_LIBRARIES := $(target_out_odm_shared_libraries_base)/lib |
| 764 | endif |
| 765 | TARGET_OUT_ODM_RENDERSCRIPT_BITCODE := $(TARGET_OUT_ODM_SHARED_LIBRARIES) |
| 766 | TARGET_OUT_ODM_JAVA_LIBRARIES := $(TARGET_OUT_ODM)/framework |
| 767 | TARGET_OUT_ODM_APPS := $(target_out_odm_app_base)/app |
| 768 | TARGET_OUT_ODM_APPS_PRIVILEGED := $(target_out_odm_app_base)/priv-app |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 769 | TARGET_OUT_ODM_ETC := $(TARGET_OUT_ODM)/etc |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 770 | .KATI_READONLY := \ |
| 771 | TARGET_OUT_ODM \ |
| 772 | TARGET_OUT_ODM_EXECUTABLES \ |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 773 | TARGET_OUT_ODM_OPTIONAL_EXECUTABLES \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 774 | TARGET_OUT_ODM_SHARED_LIBRARIES \ |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 775 | TARGET_OUT_ODM_RENDERSCRIPT_BITCODE \ |
| 776 | TARGET_OUT_ODM_JAVA_LIBRARIES \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 777 | TARGET_OUT_ODM_APPS \ |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 778 | TARGET_OUT_ODM_APPS_PRIVILEGED \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 779 | TARGET_OUT_ODM_ETC |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 780 | |
| 781 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_EXECUTABLES := $(TARGET_OUT_ODM_EXECUTABLES) |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 782 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_SHARED_LIBRARIES := $(target_out_odm_shared_libraries_base)/lib |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 783 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_RENDERSCRIPT_BITCODE := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_SHARED_LIBRARIES) |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 784 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_APPS := $(TARGET_OUT_ODM_APPS) |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 785 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_APPS_PRIVILEGED := $(TARGET_OUT_ODM_APPS_PRIVILEGED) |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 786 | .KATI_READONLY := \ |
| 787 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_EXECUTABLES \ |
| 788 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_SHARED_LIBRARIES \ |
Bowgo Tsai | d624fa6 | 2017-11-14 23:42:30 +0800 | [diff] [blame] | 789 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_RENDERSCRIPT_BITCODE \ |
| 790 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_APPS \ |
| 791 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_APPS_PRIVILEGED |
Ying Wang | 4540a85 | 2015-03-12 18:30:39 -0700 | [diff] [blame] | 792 | |
Yifan Hong | cfb917a | 2020-05-07 14:58:20 -0700 | [diff] [blame] | 793 | TARGET_OUT_VENDOR_DLKM := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR_DLKM) |
| 794 | |
| 795 | TARGET_OUT_VENDOR_DLKM_ETC := $(TARGET_OUT_VENDOR_DLKM)/etc |
| 796 | .KATI_READONLY := \ |
| 797 | TARGET_OUT_VENDOR_DLKM_ETC |
| 798 | |
| 799 | # Unlike other partitions, vendor_dlkm should only contain kernel modules. |
| 800 | TARGET_OUT_VENDOR_DLKM_EXECUTABLES := |
| 801 | TARGET_OUT_VENDOR_DLKM_OPTIONAL_EXECUTABLES := |
| 802 | TARGET_OUT_VENDOR_DLKM_SHARED_LIBRARIES := |
| 803 | TARGET_OUT_VENDOR_DLKM_RENDERSCRIPT_BITCODE := |
| 804 | TARGET_OUT_VENDOR_DLKM_JAVA_LIBRARIES := |
| 805 | TARGET_OUT_VENDOR_DLKM_APPS := |
| 806 | TARGET_OUT_VENDOR_DLKM_APPS_PRIVILEGED := |
| 807 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_DLKM_EXECUTABLES := |
| 808 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_DLKM_SHARED_LIBRARIES := |
| 809 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_DLKM_RENDERSCRIPT_BITCODE := |
| 810 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_DLKM_APPS := |
| 811 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_DLKM_APPS_PRIVILEGED := |
| 812 | $(KATI_obsolete_var \ |
| 813 | TARGET_OUT_VENDOR_DLKM_EXECUTABLES \ |
| 814 | TARGET_OUT_VENDOR_DLKM_OPTIONAL_EXECUTABLES \ |
| 815 | TARGET_OUT_VENDOR_DLKM_SHARED_LIBRARIES \ |
| 816 | TARGET_OUT_VENDOR_DLKM_RENDERSCRIPT_BITCODE \ |
| 817 | TARGET_OUT_VENDOR_DLKM_JAVA_LIBRARIES \ |
| 818 | TARGET_OUT_VENDOR_DLKM_APPS \ |
| 819 | TARGET_OUT_VENDOR_DLKM_APPS_PRIVILEGED \ |
| 820 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_DLKM_EXECUTABLES \ |
| 821 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_DLKM_SHARED_LIBRARIES \ |
| 822 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_DLKM_RENDERSCRIPT_BITCODE \ |
| 823 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_DLKM_APPS \ |
| 824 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_VENDOR_DLKM_APPS_PRIVILEGED \ |
| 825 | , vendor_dlkm should not contain any executables, libraries, or apps) |
| 826 | |
Yifan Hong | f496f1b | 2020-07-15 16:52:59 -0700 | [diff] [blame] | 827 | TARGET_OUT_ODM_DLKM := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ODM_DLKM) |
| 828 | |
| 829 | TARGET_OUT_ODM_DLKM_ETC := $(TARGET_OUT_ODM_DLKM)/etc |
| 830 | .KATI_READONLY := \ |
| 831 | TARGET_OUT_ODM_DLKM_ETC |
| 832 | |
| 833 | # Unlike other partitions, odm_dlkm should only contain kernel modules. |
| 834 | TARGET_OUT_ODM_DLKM_EXECUTABLES := |
| 835 | TARGET_OUT_ODM_DLKM_OPTIONAL_EXECUTABLES := |
| 836 | TARGET_OUT_ODM_DLKM_SHARED_LIBRARIES := |
| 837 | TARGET_OUT_ODM_DLKM_RENDERSCRIPT_BITCODE := |
| 838 | TARGET_OUT_ODM_DLKM_JAVA_LIBRARIES := |
| 839 | TARGET_OUT_ODM_DLKM_APPS := |
| 840 | TARGET_OUT_ODM_DLKM_APPS_PRIVILEGED := |
| 841 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_DLKM_EXECUTABLES := |
| 842 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_DLKM_SHARED_LIBRARIES := |
| 843 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_DLKM_RENDERSCRIPT_BITCODE := |
| 844 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_DLKM_APPS := |
| 845 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_DLKM_APPS_PRIVILEGED := |
| 846 | $(KATI_obsolete_var \ |
| 847 | TARGET_OUT_ODM_DLKM_EXECUTABLES \ |
| 848 | TARGET_OUT_ODM_DLKM_OPTIONAL_EXECUTABLES \ |
| 849 | TARGET_OUT_ODM_DLKM_SHARED_LIBRARIES \ |
| 850 | TARGET_OUT_ODM_DLKM_RENDERSCRIPT_BITCODE \ |
| 851 | TARGET_OUT_ODM_DLKM_JAVA_LIBRARIES \ |
| 852 | TARGET_OUT_ODM_DLKM_APPS \ |
| 853 | TARGET_OUT_ODM_DLKM_APPS_PRIVILEGED \ |
| 854 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_DLKM_EXECUTABLES \ |
| 855 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_DLKM_SHARED_LIBRARIES \ |
| 856 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_DLKM_RENDERSCRIPT_BITCODE \ |
| 857 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_DLKM_APPS \ |
| 858 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_ODM_DLKM_APPS_PRIVILEGED \ |
| 859 | , odm_dlkm should not contain any executables, libraries, or apps) |
| 860 | |
Ramji Jiyani | 13a4137 | 2022-01-27 07:05:08 +0000 | [diff] [blame] | 861 | TARGET_OUT_SYSTEM_DLKM := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_SYSTEM_DLKM) |
| 862 | |
| 863 | # Unlike other partitions, system_dlkm should only contain kernel modules. |
| 864 | TARGET_OUT_SYSTEM_DLKM_EXECUTABLES := |
| 865 | TARGET_OUT_SYSTEM_DLKM_OPTIONAL_EXECUTABLES := |
| 866 | TARGET_OUT_SYSTEM_DLKM_SHARED_LIBRARIES := |
| 867 | TARGET_OUT_SYSTEM_DLKM_RENDERSCRIPT_BITCODE := |
| 868 | TARGET_OUT_SYSTEM_DLKM_JAVA_LIBRARIES := |
| 869 | TARGET_OUT_SYSTEM_DLKM_APPS := |
| 870 | TARGET_OUT_SYSTEM_DLKM_APPS_PRIVILEGED := |
| 871 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_DLKM_EXECUTABLES := |
| 872 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_DLKM_SHARED_LIBRARIES := |
| 873 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_DLKM_RENDERSCRIPT_BITCODE := |
| 874 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_DLKM_APPS := |
| 875 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_DLKM_APPS_PRIVILEGED := |
| 876 | $(KATI_obsolete_var \ |
| 877 | TARGET_OUT_SYSTEM_DLKM_EXECUTABLES \ |
| 878 | TARGET_OUT_SYSTEM_DLKM_OPTIONAL_EXECUTABLES \ |
| 879 | TARGET_OUT_SYSTEM_DLKM_SHARED_LIBRARIES \ |
| 880 | TARGET_OUT_SYSTEM_DLKM_RENDERSCRIPT_BITCODE \ |
| 881 | TARGET_OUT_SYSTEM_DLKM_JAVA_LIBRARIES \ |
| 882 | TARGET_OUT_SYSTEM_DLKM_APPS \ |
| 883 | TARGET_OUT_SYSTEM_DLKM_APPS_PRIVILEGED \ |
| 884 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_DLKM_EXECUTABLES \ |
| 885 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_DLKM_SHARED_LIBRARIES \ |
| 886 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_DLKM_RENDERSCRIPT_BITCODE \ |
| 887 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_DLKM_APPS \ |
| 888 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_DLKM_APPS_PRIVILEGED \ |
| 889 | , system_dlkm should not contain any executables, libraries, or apps) |
| 890 | |
Jaekyun Seok | b7735d8 | 2017-11-27 17:04:47 +0900 | [diff] [blame] | 891 | TARGET_OUT_PRODUCT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_PRODUCT) |
Doheon Lee | 09d9b90 | 2018-06-25 10:56:01 +0900 | [diff] [blame] | 892 | TARGET_OUT_PRODUCT_EXECUTABLES := $(TARGET_OUT_PRODUCT)/bin |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 893 | .KATI_READONLY := TARGET_OUT_PRODUCT |
Jaekyun Seok | b7735d8 | 2017-11-27 17:04:47 +0900 | [diff] [blame] | 894 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
Anton Hansson | ae9f105 | 2018-10-02 13:16:05 +0100 | [diff] [blame] | 895 | target_out_product_shared_libraries_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/$(TARGET_COPY_OUT_PRODUCT) |
Jaekyun Seok | b7735d8 | 2017-11-27 17:04:47 +0900 | [diff] [blame] | 896 | ifeq ($(SANITIZE_LITE),true) |
| 897 | # When using SANITIZE_LITE, APKs must not be packaged with sanitized libraries, as they will not |
| 898 | # work with unsanitized app_process. For simplicity, generate APKs into /data/asan/. |
Anton Hansson | ae9f105 | 2018-10-02 13:16:05 +0100 | [diff] [blame] | 899 | target_out_product_app_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/$(TARGET_COPY_OUT_PRODUCT) |
Jaekyun Seok | b7735d8 | 2017-11-27 17:04:47 +0900 | [diff] [blame] | 900 | else |
| 901 | target_out_product_app_base := $(TARGET_OUT_PRODUCT) |
| 902 | endif |
| 903 | else |
Inseob Kim | 47c1352 | 2018-05-04 11:20:43 +0900 | [diff] [blame] | 904 | target_out_product_shared_libraries_base := $(TARGET_OUT_PRODUCT) |
Jaekyun Seok | b7735d8 | 2017-11-27 17:04:47 +0900 | [diff] [blame] | 905 | target_out_product_app_base := $(TARGET_OUT_PRODUCT) |
| 906 | endif |
| 907 | |
| 908 | ifeq ($(TARGET_IS_64_BIT),true) |
| 909 | TARGET_OUT_PRODUCT_SHARED_LIBRARIES := $(target_out_product_shared_libraries_base)/lib64 |
| 910 | else |
| 911 | TARGET_OUT_PRODUCT_SHARED_LIBRARIES := $(target_out_product_shared_libraries_base)/lib |
| 912 | endif |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 913 | TARGET_OUT_PRODUCT_JAVA_LIBRARIES := $(TARGET_OUT_PRODUCT)/framework |
Jaekyun Seok | b7735d8 | 2017-11-27 17:04:47 +0900 | [diff] [blame] | 914 | TARGET_OUT_PRODUCT_APPS := $(target_out_product_app_base)/app |
| 915 | TARGET_OUT_PRODUCT_APPS_PRIVILEGED := $(target_out_product_app_base)/priv-app |
| 916 | TARGET_OUT_PRODUCT_ETC := $(TARGET_OUT_PRODUCT)/etc |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 917 | .KATI_READONLY := \ |
Doheon Lee | 09d9b90 | 2018-06-25 10:56:01 +0900 | [diff] [blame] | 918 | TARGET_OUT_PRODUCT_EXECUTABLES \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 919 | TARGET_OUT_PRODUCT_SHARED_LIBRARIES \ |
| 920 | TARGET_OUT_PRODUCT_JAVA_LIBRARIES \ |
| 921 | TARGET_OUT_PRODUCT_APPS \ |
| 922 | TARGET_OUT_PRODUCT_APPS_PRIVILEGED \ |
| 923 | TARGET_OUT_PRODUCT_ETC |
Jaekyun Seok | b7735d8 | 2017-11-27 17:04:47 +0900 | [diff] [blame] | 924 | |
Doheon Lee | 09d9b90 | 2018-06-25 10:56:01 +0900 | [diff] [blame] | 925 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_PRODUCT_EXECUTABLES := $(TARGET_OUT_PRODUCT_EXECUTABLES) |
Jaekyun Seok | b7735d8 | 2017-11-27 17:04:47 +0900 | [diff] [blame] | 926 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_PRODUCT_SHARED_LIBRARIES := $(target_out_product_shared_libraries_base)/lib |
Jaekyun Seok | b7735d8 | 2017-11-27 17:04:47 +0900 | [diff] [blame] | 927 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_PRODUCT_APPS := $(TARGET_OUT_PRODUCT_APPS) |
| 928 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_PRODUCT_APPS_PRIVILEGED := $(TARGET_OUT_PRODUCT_APPS_PRIVILEGED) |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 929 | .KATI_READONLY := \ |
Doheon Lee | 09d9b90 | 2018-06-25 10:56:01 +0900 | [diff] [blame] | 930 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_PRODUCT_EXECUTABLES \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 931 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_PRODUCT_SHARED_LIBRARIES \ |
| 932 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_PRODUCT_APPS \ |
| 933 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_PRODUCT_APPS_PRIVILEGED |
Jaekyun Seok | b7735d8 | 2017-11-27 17:04:47 +0900 | [diff] [blame] | 934 | |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 935 | TARGET_OUT_SYSTEM_EXT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_SYSTEM_EXT) |
Dario Freni | 5f681e1 | 2018-05-29 13:09:01 +0100 | [diff] [blame] | 936 | ifneq ($(filter address,$(SANITIZE_TARGET)),) |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 937 | target_out_system_ext_shared_libraries_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/$(TARGET_COPY_OUT_SYSTEM_EXT) |
Dario Freni | 5f681e1 | 2018-05-29 13:09:01 +0100 | [diff] [blame] | 938 | ifeq ($(SANITIZE_LITE),true) |
| 939 | # When using SANITIZE_LITE, APKs must not be packaged with sanitized libraries, as they will not |
| 940 | # work with unsanitized app_process. For simplicity, generate APKs into /data/asan/. |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 941 | target_out_system_ext_app_base := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ASAN)/$(TARGET_COPY_OUT_SYSTEM_EXT) |
Dario Freni | 5f681e1 | 2018-05-29 13:09:01 +0100 | [diff] [blame] | 942 | else |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 943 | target_out_system_ext_app_base := $(TARGET_OUT_SYSTEM_EXT) |
Dario Freni | 5f681e1 | 2018-05-29 13:09:01 +0100 | [diff] [blame] | 944 | endif |
| 945 | else |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 946 | target_out_system_ext_shared_libraries_base := $(TARGET_OUT_SYSTEM_EXT) |
| 947 | target_out_system_ext_app_base := $(TARGET_OUT_SYSTEM_EXT) |
Dario Freni | 5f681e1 | 2018-05-29 13:09:01 +0100 | [diff] [blame] | 948 | endif |
| 949 | |
| 950 | ifeq ($(TARGET_IS_64_BIT),true) |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 951 | TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES := $(target_out_system_ext_shared_libraries_base)/lib64 |
Dario Freni | 5f681e1 | 2018-05-29 13:09:01 +0100 | [diff] [blame] | 952 | else |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 953 | TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES := $(target_out_system_ext_shared_libraries_base)/lib |
Dario Freni | 5f681e1 | 2018-05-29 13:09:01 +0100 | [diff] [blame] | 954 | endif |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 955 | TARGET_OUT_SYSTEM_EXT_JAVA_LIBRARIES:= $(TARGET_OUT_SYSTEM_EXT)/framework |
| 956 | TARGET_OUT_SYSTEM_EXT_APPS := $(target_out_system_ext_app_base)/app |
| 957 | TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED := $(target_out_system_ext_app_base)/priv-app |
| 958 | TARGET_OUT_SYSTEM_EXT_ETC := $(TARGET_OUT_SYSTEM_EXT)/etc |
Jeongik Cha | 6a5e9a2 | 2019-08-20 19:24:43 +0900 | [diff] [blame] | 959 | TARGET_OUT_SYSTEM_EXT_EXECUTABLES := $(TARGET_OUT_SYSTEM_EXT)/bin |
| 960 | .KATI_READONLY := \ |
| 961 | TARGET_OUT_SYSTEM_EXT_EXECUTABLES \ |
| 962 | TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES \ |
| 963 | TARGET_OUT_SYSTEM_EXT_JAVA_LIBRARIES \ |
| 964 | TARGET_OUT_SYSTEM_EXT_APPS \ |
| 965 | TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED \ |
| 966 | TARGET_OUT_SYSTEM_EXT_ETC |
Dario Freni | 5f681e1 | 2018-05-29 13:09:01 +0100 | [diff] [blame] | 967 | |
Jeongik Cha | 6a5e9a2 | 2019-08-20 19:24:43 +0900 | [diff] [blame] | 968 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_EXT_EXECUTABLES := $(TARGET_OUT_SYSTEM_EXT_EXECUTABLES) |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 969 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES := $(target_out_system_ext_shared_libraries_base)/lib |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 970 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_EXT_APPS := $(TARGET_OUT_SYSTEM_EXT_APPS) |
| 971 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED := $(TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED) |
Jeongik Cha | 6a5e9a2 | 2019-08-20 19:24:43 +0900 | [diff] [blame] | 972 | .KATI_READONLY := \ |
| 973 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_EXT_EXECUTABLES \ |
| 974 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES \ |
| 975 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_EXT_APPS \ |
| 976 | $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED |
Dario Freni | 5f681e1 | 2018-05-29 13:09:01 +0100 | [diff] [blame] | 977 | |
Steve Fung | dfbab49 | 2015-09-24 18:12:33 -0700 | [diff] [blame] | 978 | TARGET_OUT_BREAKPAD := $(PRODUCT_OUT)/breakpad |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 979 | .KATI_READONLY := TARGET_OUT_BREAKPAD |
Steve Fung | dfbab49 | 2015-09-24 18:12:33 -0700 | [diff] [blame] | 980 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 981 | TARGET_OUT_UNSTRIPPED := $(PRODUCT_OUT)/symbols |
| 982 | TARGET_OUT_EXECUTABLES_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/system/bin |
| 983 | TARGET_OUT_SHARED_LIBRARIES_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/system/lib |
Colin Cross | a58f8e0 | 2014-06-20 13:33:36 -0700 | [diff] [blame] | 984 | 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] | 985 | TARGET_ROOT_OUT_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 986 | TARGET_ROOT_OUT_BIN_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED)/bin |
Ryan Campbell | 737bc02 | 2016-09-15 17:32:13 -0700 | [diff] [blame] | 987 | TARGET_OUT_COVERAGE := $(PRODUCT_OUT)/coverage |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 988 | .KATI_READONLY := \ |
| 989 | TARGET_OUT_UNSTRIPPED \ |
| 990 | TARGET_OUT_EXECUTABLES_UNSTRIPPED \ |
| 991 | TARGET_OUT_SHARED_LIBRARIES_UNSTRIPPED \ |
| 992 | TARGET_OUT_VENDOR_SHARED_LIBRARIES_UNSTRIPPED \ |
| 993 | TARGET_ROOT_OUT_UNSTRIPPED \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 994 | TARGET_ROOT_OUT_BIN_UNSTRIPPED \ |
| 995 | TARGET_OUT_COVERAGE |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 996 | |
Tom Cherry | d14b895 | 2018-08-09 14:26:00 -0700 | [diff] [blame] | 997 | TARGET_RAMDISK_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_RAMDISK) |
| 998 | TARGET_RAMDISK_OUT_UNSTRIPPED := $(TARGET_OUT_UNSTRIPPED) |
Bowgo Tsai | 0013f55 | 2019-03-20 17:59:52 +0800 | [diff] [blame] | 999 | TARGET_DEBUG_RAMDISK_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_DEBUG_RAMDISK) |
Bowgo Tsai | 6a68367 | 2020-02-14 19:00:15 +0800 | [diff] [blame] | 1000 | TARGET_VENDOR_DEBUG_RAMDISK_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR_DEBUG_RAMDISK) |
Bowgo Tsai | 5c40c71 | 2019-10-08 10:22:19 +0800 | [diff] [blame] | 1001 | TARGET_TEST_HARNESS_RAMDISK_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_TEST_HARNESS_RAMDISK) |
Tom Cherry | d14b895 | 2018-08-09 14:26:00 -0700 | [diff] [blame] | 1002 | |
Ramji Jiyani | 1065523 | 2022-01-20 06:43:09 +0000 | [diff] [blame] | 1003 | TARGET_SYSTEM_DLKM_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_SYSTEM_DLKM) |
| 1004 | .KATI_READONLY := TARGET_SYSTEM_DLKM_OUT |
| 1005 | |
Steve Muckle | e1b1086 | 2019-07-10 10:49:37 -0700 | [diff] [blame] | 1006 | TARGET_VENDOR_RAMDISK_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR_RAMDISK) |
Lucas Wei | f57333f | 2022-02-24 10:30:15 +0800 | [diff] [blame] | 1007 | TARGET_VENDOR_KERNEL_RAMDISK_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR_KERNEL_RAMDISK) |
Steve Muckle | e1b1086 | 2019-07-10 10:49:37 -0700 | [diff] [blame] | 1008 | |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 1009 | TARGET_ROOT_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_ROOT) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1010 | TARGET_ROOT_OUT_BIN := $(TARGET_ROOT_OUT)/bin |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1011 | TARGET_ROOT_OUT_ETC := $(TARGET_ROOT_OUT)/etc |
| 1012 | TARGET_ROOT_OUT_USR := $(TARGET_ROOT_OUT)/usr |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 1013 | .KATI_READONLY := \ |
| 1014 | TARGET_ROOT_OUT \ |
| 1015 | TARGET_ROOT_OUT_BIN \ |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 1016 | TARGET_ROOT_OUT_ETC \ |
| 1017 | TARGET_ROOT_OUT_USR |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1018 | |
Ying Wang | 2b6aaa3 | 2011-10-27 15:18:39 -0700 | [diff] [blame] | 1019 | TARGET_RECOVERY_OUT := $(PRODUCT_OUT)/$(TARGET_COPY_OUT_RECOVERY) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1020 | TARGET_RECOVERY_ROOT_OUT := $(TARGET_RECOVERY_OUT)/root |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 1021 | .KATI_READONLY := \ |
| 1022 | TARGET_RECOVERY_OUT \ |
| 1023 | TARGET_RECOVERY_ROOT_OUT |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1024 | |
| 1025 | TARGET_SYSLOADER_OUT := $(PRODUCT_OUT)/sysloader |
| 1026 | TARGET_SYSLOADER_ROOT_OUT := $(TARGET_SYSLOADER_OUT)/root |
| 1027 | TARGET_SYSLOADER_SYSTEM_OUT := $(TARGET_SYSLOADER_OUT)/root/system |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 1028 | .KATI_READONLY := \ |
| 1029 | TARGET_SYSLOADER_OUT \ |
| 1030 | TARGET_SYSLOADER_ROOT_OUT \ |
| 1031 | TARGET_SYSLOADER_SYSTEM_OUT |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1032 | |
| 1033 | TARGET_INSTALLER_OUT := $(PRODUCT_OUT)/installer |
| 1034 | TARGET_INSTALLER_DATA_OUT := $(TARGET_INSTALLER_OUT)/data |
| 1035 | TARGET_INSTALLER_ROOT_OUT := $(TARGET_INSTALLER_OUT)/root |
| 1036 | TARGET_INSTALLER_SYSTEM_OUT := $(TARGET_INSTALLER_OUT)/root/system |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 1037 | .KATI_READONLY := \ |
| 1038 | TARGET_INSTALLER_OUT \ |
| 1039 | TARGET_INSTALLER_DATA_OUT \ |
| 1040 | TARGET_INSTALLER_ROOT_OUT \ |
| 1041 | TARGET_INSTALLER_SYSTEM_OUT |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1042 | |
Dan Willemsen | 8447b81 | 2020-06-08 21:00:18 -0700 | [diff] [blame] | 1043 | COMMON_MODULE_CLASSES := TARGET_NOTICE_FILES HOST_NOTICE_FILES HOST_JAVA_LIBRARIES |
Ivan Lozano | d62e712 | 2019-08-27 11:23:35 -0700 | [diff] [blame] | 1044 | PER_ARCH_MODULE_CLASSES := SHARED_LIBRARIES STATIC_LIBRARIES EXECUTABLES GYP RENDERSCRIPT_BITCODE NATIVE_TESTS HEADER_LIBRARIES RLIB_LIBRARIES DYLIB_LIBRARIES |
Dan Willemsen | 11677ed | 2018-03-28 14:33:10 -0700 | [diff] [blame] | 1045 | .KATI_READONLY := COMMON_MODULE_CLASSES PER_ARCH_MODULE_CLASSES |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1046 | |
Dan Willemsen | 20f99a6 | 2017-10-12 01:35:14 -0700 | [diff] [blame] | 1047 | ifeq ($(CALLED_FROM_SETUP),true) |
Dan Willemsen | 0d25529 | 2017-02-18 10:32:13 -0800 | [diff] [blame] | 1048 | PRINT_BUILD_CONFIG ?= true |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1049 | endif |