| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 1 | # | 
|  | 2 | # Copyright (C) 2020 The Android Open Source Project | 
|  | 3 | # | 
|  | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | 
|  | 5 | # you may not use this file except in compliance with the License. | 
|  | 6 | # You may obtain a copy of the License at | 
|  | 7 | # | 
|  | 8 | #      http://www.apache.org/licenses/LICENSE-2.0 | 
|  | 9 | # | 
|  | 10 | # Unless required by applicable law or agreed to in writing, software | 
|  | 11 | # distributed under the License is distributed on an "AS IS" BASIS, | 
|  | 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
|  | 13 | # See the License for the specific language governing permissions and | 
|  | 14 | # limitations under the License. | 
|  | 15 | # | 
|  | 16 |  | 
| Jiyong Park | c0bd8c7 | 2020-06-29 10:46:22 +0900 | [diff] [blame] | 17 | # sysprop.mk defines rules for generating <partition>/[etc/]build.prop files | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 18 |  | 
|  | 19 | # ----------------------------------------------------------------- | 
|  | 20 | # property_overrides_split_enabled | 
|  | 21 | property_overrides_split_enabled := | 
|  | 22 | ifeq ($(BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED), true) | 
|  | 23 | property_overrides_split_enabled := true | 
|  | 24 | endif | 
|  | 25 |  | 
| Jiyong Park | ae55638 | 2020-05-20 18:33:43 +0900 | [diff] [blame] | 26 | POST_PROCESS_PROPS := $(HOST_OUT_EXECUTABLES)/post_process_props$(HOST_EXECUTABLE_SUFFIX) | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 27 |  | 
| Jiyong Park | 35a83d1 | 2020-05-26 02:01:05 +0900 | [diff] [blame] | 28 | # Emits a set of sysprops common to all partitions to a file. | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 29 | # $(1): Partition name | 
|  | 30 | # $(2): Output file name | 
|  | 31 | define generate-common-build-props | 
| Jiyong Park | 35a83d1 | 2020-05-26 02:01:05 +0900 | [diff] [blame] | 32 | echo "####################################" >> $(2);\ | 
|  | 33 | echo "# from generate-common-build-props" >> $(2);\ | 
|  | 34 | echo "# These properties identify this partition image." >> $(2);\ | 
|  | 35 | echo "####################################" >> $(2);\ | 
|  | 36 | $(if $(filter system,$(1)),\ | 
|  | 37 | echo "ro.product.$(1).brand=$(PRODUCT_SYSTEM_BRAND)" >> $(2);\ | 
|  | 38 | echo "ro.product.$(1).device=$(PRODUCT_SYSTEM_DEVICE)" >> $(2);\ | 
|  | 39 | echo "ro.product.$(1).manufacturer=$(PRODUCT_SYSTEM_MANUFACTURER)" >> $(2);\ | 
|  | 40 | echo "ro.product.$(1).model=$(PRODUCT_SYSTEM_MODEL)" >> $(2);\ | 
|  | 41 | echo "ro.product.$(1).name=$(PRODUCT_SYSTEM_NAME)" >> $(2);\ | 
|  | 42 | ,\ | 
|  | 43 | echo "ro.product.$(1).brand=$(PRODUCT_BRAND)" >> $(2);\ | 
|  | 44 | echo "ro.product.$(1).device=$(TARGET_DEVICE)" >> $(2);\ | 
|  | 45 | echo "ro.product.$(1).manufacturer=$(PRODUCT_MANUFACTURER)" >> $(2);\ | 
|  | 46 | echo "ro.product.$(1).model=$(PRODUCT_MODEL)" >> $(2);\ | 
|  | 47 | echo "ro.product.$(1).name=$(TARGET_PRODUCT)" >> $(2);\ | 
| wufei3 | 99fafae | 2023-08-09 14:00:58 +0800 | [diff] [blame] | 48 | if [ -n "$(strip $(PRODUCT_MODEL_FOR_ATTESTATION))" ]; then \ | 
|  | 49 | echo "ro.product.model_for_attestation=$(PRODUCT_MODEL_FOR_ATTESTATION)" >> $(2);\ | 
|  | 50 | fi; \ | 
|  | 51 | if [ -n "$(strip $(PRODUCT_BRAND_FOR_ATTESTATION))" ]; then \ | 
|  | 52 | echo "ro.product.brand_for_attestation=$(PRODUCT_BRAND_FOR_ATTESTATION)" >> $(2);\ | 
|  | 53 | fi; \ | 
|  | 54 | if [ -n "$(strip $(PRODUCT_NAME_FOR_ATTESTATION))" ]; then \ | 
|  | 55 | echo "ro.product.name_for_attestation=$(PRODUCT_NAME_FOR_ATTESTATION)" >> $(2);\ | 
|  | 56 | fi; \ | 
|  | 57 | if [ -n "$(strip $(PRODUCT_DEVICE_FOR_ATTESTATION))" ]; then \ | 
|  | 58 | echo "ro.product.device_for_attestation=$(PRODUCT_DEVICE_FOR_ATTESTATION)" >> $(2);\ | 
|  | 59 | fi; \ | 
|  | 60 | if [ -n "$(strip $(PRODUCT_MANUFACTURER_FOR_ATTESTATION))" ]; then \ | 
|  | 61 | echo "ro.product.manufacturer_for_attestation=$(PRODUCT_MANUFACTURER_FOR_ATTESTATION)" >> $(2);\ | 
|  | 62 | fi; \ | 
| Jiyong Park | 35a83d1 | 2020-05-26 02:01:05 +0900 | [diff] [blame] | 63 | )\ | 
| Christopher Ferris | 66b6fd6 | 2022-04-08 15:20:23 -0700 | [diff] [blame] | 64 | $(if $(filter true,$(ZYGOTE_FORCE_64)),\ | 
|  | 65 | $(if $(filter vendor,$(1)),\ | 
|  | 66 | echo "ro.$(1).product.cpu.abilist=$(TARGET_CPU_ABI_LIST_64_BIT)" >> $(2);\ | 
|  | 67 | echo "ro.$(1).product.cpu.abilist32=" >> $(2);\ | 
|  | 68 | echo "ro.$(1).product.cpu.abilist64=$(TARGET_CPU_ABI_LIST_64_BIT)" >> $(2);\ | 
|  | 69 | )\ | 
|  | 70 | ,\ | 
|  | 71 | $(if $(filter system vendor odm,$(1)),\ | 
|  | 72 | echo "ro.$(1).product.cpu.abilist=$(TARGET_CPU_ABI_LIST)" >> $(2);\ | 
|  | 73 | echo "ro.$(1).product.cpu.abilist32=$(TARGET_CPU_ABI_LIST_32_BIT)" >> $(2);\ | 
|  | 74 | echo "ro.$(1).product.cpu.abilist64=$(TARGET_CPU_ABI_LIST_64_BIT)" >> $(2);\ | 
|  | 75 | )\ | 
| SzuWei Lin | baf5c81 | 2020-12-31 16:59:27 +0800 | [diff] [blame] | 76 | )\ | 
| Jiyong Park | 35a83d1 | 2020-05-26 02:01:05 +0900 | [diff] [blame] | 77 | echo "ro.$(1).build.date=`$(DATE_FROM_FILE)`" >> $(2);\ | 
|  | 78 | echo "ro.$(1).build.date.utc=`$(DATE_FROM_FILE) +%s`" >> $(2);\ | 
| Tiffany Yang | 19450e3 | 2023-05-23 17:36:54 -0700 | [diff] [blame] | 79 | # Allow optional assignments for ARC forward-declarations (b/249168657) | 
|  | 80 | # TODO: Remove any tag-related inconsistencies once the goals from | 
|  | 81 | # go/arc-android-sigprop-changes have been achieved. | 
|  | 82 | echo "ro.$(1).build.fingerprint?=$(BUILD_FINGERPRINT_FROM_FILE)" >> $(2);\ | 
|  | 83 | echo "ro.$(1).build.id?=$(BUILD_ID)" >> $(2);\ | 
|  | 84 | echo "ro.$(1).build.tags?=$(BUILD_VERSION_TAGS)" >> $(2);\ | 
| Jiyong Park | 35a83d1 | 2020-05-26 02:01:05 +0900 | [diff] [blame] | 85 | echo "ro.$(1).build.type=$(TARGET_BUILD_VARIANT)" >> $(2);\ | 
|  | 86 | echo "ro.$(1).build.version.incremental=$(BUILD_NUMBER_FROM_FILE)" >> $(2);\ | 
| Tianjie | e88ac67 | 2020-10-15 17:22:48 -0700 | [diff] [blame] | 87 | echo "ro.$(1).build.version.release=$(PLATFORM_VERSION_LAST_STABLE)" >> $(2);\ | 
|  | 88 | echo "ro.$(1).build.version.release_or_codename=$(PLATFORM_VERSION)" >> $(2);\ | 
| Jiyong Park | 35a83d1 | 2020-05-26 02:01:05 +0900 | [diff] [blame] | 89 | echo "ro.$(1).build.version.sdk=$(PLATFORM_SDK_VERSION)" >> $(2);\ | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 90 |  | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 91 | endef | 
|  | 92 |  | 
| Jiyong Park | c0bd8c7 | 2020-06-29 10:46:22 +0900 | [diff] [blame] | 93 | # Rule for generating <partition>/[etc/]build.prop file | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 94 | # | 
|  | 95 | # $(1): partition name | 
|  | 96 | # $(2): path to the output | 
|  | 97 | # $(3): path to the input *.prop files. The contents of the files are directly | 
|  | 98 | #       emitted to the output | 
|  | 99 | # $(4): list of variable names each of which contains name=value pairs | 
|  | 100 | # $(5): optional list of prop names to force remove from the output. Properties from both | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 101 | #       $(3) and (4) are affected | 
|  | 102 | # $(6): optional list of files to append at the end. The content of each file is emitted | 
|  | 103 | #       to the output | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 104 | # $(7): optional flag to skip common properties generation | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 105 | define build-properties | 
|  | 106 | ALL_DEFAULT_INSTALLED_MODULES += $(2) | 
|  | 107 |  | 
| Jiyong Park | d721e87 | 2020-06-22 17:30:57 +0900 | [diff] [blame] | 108 | $(eval # Properties can be assigned using `prop ?= value` or `prop = value` syntax.) | 
|  | 109 | $(eval # Eliminate spaces around the ?= and = separators.) | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 110 | $(foreach name,$(strip $(4)),\ | 
| Jiyong Park | d721e87 | 2020-06-22 17:30:57 +0900 | [diff] [blame] | 111 | $(eval _temp := $$(call collapse-pairs,$$($(name)),?=))\ | 
|  | 112 | $(eval _resolved_$(name) := $$(call collapse-pairs,$$(_temp),=))\ | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 113 | ) | 
|  | 114 |  | 
| Jiyong Park | 0b4fccb | 2020-06-26 17:38:00 +0900 | [diff] [blame] | 115 | $(eval # Implement the legacy behavior when BUILD_BROKEN_DUP_SYSPROP is on.) | 
|  | 116 | $(eval # Optional assignments are all converted to normal assignments and) | 
|  | 117 | $(eval # when their duplicates the first one wins) | 
|  | 118 | $(if $(filter true,$(BUILD_BROKEN_DUP_SYSPROP)),\ | 
|  | 119 | $(foreach name,$(strip $(4)),\ | 
|  | 120 | $(eval _temp := $$(subst ?=,=,$$(_resolved_$(name))))\ | 
|  | 121 | $(eval _resolved_$(name) := $$(call uniq-pairs-by-first-component,$$(_resolved_$(name)),=))\ | 
|  | 122 | )\ | 
|  | 123 | $(eval _option := --allow-dup)\ | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 124 | ) | 
|  | 125 |  | 
| Jiakai Zhang | 53dd895 | 2024-01-18 17:22:13 +0000 | [diff] [blame] | 126 | $(2): $(POST_PROCESS_PROPS) $(INTERNAL_BUILD_ID_MAKEFILE) $(3) $(6) $(BUILT_KERNEL_VERSION_FILE_FOR_UFFD_GC) | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 127 | $(hide) echo Building $$@ | 
|  | 128 | $(hide) mkdir -p $$(dir $$@) | 
|  | 129 | $(hide) rm -f $$@ && touch $$@ | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 130 | ifneq ($(strip $(7)), true) | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 131 | $(hide) $$(call generate-common-build-props,$(call to-lower,$(strip $(1))),$$@) | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 132 | endif | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 133 | $(hide) $(foreach file,$(strip $(3)),\ | 
|  | 134 | if [ -f "$(file)" ]; then\ | 
|  | 135 | echo "" >> $$@;\ | 
|  | 136 | echo "####################################" >> $$@;\ | 
|  | 137 | echo "# from $(file)" >> $$@;\ | 
|  | 138 | echo "####################################" >> $$@;\ | 
|  | 139 | cat $(file) >> $$@;\ | 
|  | 140 | fi;) | 
|  | 141 | $(hide) $(foreach name,$(strip $(4)),\ | 
|  | 142 | echo "" >> $$@;\ | 
|  | 143 | echo "####################################" >> $$@;\ | 
|  | 144 | echo "# from variable $(name)" >> $$@;\ | 
|  | 145 | echo "####################################" >> $$@;\ | 
|  | 146 | $$(foreach line,$$(_resolved_$(name)),\ | 
|  | 147 | echo "$$(line)" >> $$@;\ | 
|  | 148 | )\ | 
|  | 149 | ) | 
| Jiakai Zhang | 53dd895 | 2024-01-18 17:22:13 +0000 | [diff] [blame] | 150 | $(hide) $(POST_PROCESS_PROPS) $$(_option) \ | 
|  | 151 | --sdk-version $(PLATFORM_SDK_VERSION) \ | 
|  | 152 | --kernel-version-file-for-uffd-gc "$(BUILT_KERNEL_VERSION_FILE_FOR_UFFD_GC)" \ | 
|  | 153 | $$@ $(5) | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 154 | $(hide) $(foreach file,$(strip $(6)),\ | 
|  | 155 | if [ -f "$(file)" ]; then\ | 
|  | 156 | cat $(file) >> $$@;\ | 
|  | 157 | fi;) | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 158 | $(hide) echo "# end of file" >> $$@ | 
| Bob Badour | e9bdbc5 | 2022-03-10 11:31:07 -0800 | [diff] [blame] | 159 |  | 
| Bob Badour | 1d31e2d | 2023-03-01 10:31:25 -0800 | [diff] [blame] | 160 | $(call declare-1p-target,$(2)) | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 161 | endef | 
|  | 162 |  | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 163 | # ----------------------------------------------------------------- | 
| Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 164 | # Define fingerprint, thumbprint, and version tags for the current build | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 165 | # | 
| Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 166 | # BUILD_VERSION_TAGS is a comma-separated list of tags chosen by the device | 
|  | 167 | # implementer that further distinguishes the build. It's basically defined | 
|  | 168 | # by the device implementer. Here, we are adding a mandatory tag that | 
|  | 169 | # identifies the signing config of the build. | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 170 | BUILD_VERSION_TAGS := $(BUILD_VERSION_TAGS) | 
|  | 171 | ifeq ($(TARGET_BUILD_TYPE),debug) | 
|  | 172 | BUILD_VERSION_TAGS += debug | 
|  | 173 | endif | 
|  | 174 | # The "test-keys" tag marks builds signed with the old test keys, | 
|  | 175 | # which are available in the SDK.  "dev-keys" marks builds signed with | 
|  | 176 | # non-default dev keys (usually private keys from a vendor directory). | 
|  | 177 | # Both of these tags will be removed and replaced with "release-keys" | 
|  | 178 | # when the target-files is signed in a post-build step. | 
|  | 179 | ifeq ($(DEFAULT_SYSTEM_DEV_CERTIFICATE),build/make/target/product/security/testkey) | 
|  | 180 | BUILD_KEYS := test-keys | 
|  | 181 | else | 
|  | 182 | BUILD_KEYS := dev-keys | 
|  | 183 | endif | 
|  | 184 | BUILD_VERSION_TAGS += $(BUILD_KEYS) | 
|  | 185 | BUILD_VERSION_TAGS := $(subst $(space),$(comma),$(sort $(BUILD_VERSION_TAGS))) | 
|  | 186 |  | 
| Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 187 | # BUILD_FINGERPRINT is used used to uniquely identify the combined build and | 
|  | 188 | # product; used by the OTA server. | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 189 | ifeq (,$(strip $(BUILD_FINGERPRINT))) | 
| Cole Faust | c874c70 | 2023-09-27 13:44:56 -0700 | [diff] [blame] | 190 | BUILD_FINGERPRINT := $(PRODUCT_BRAND)/$(TARGET_PRODUCT)/$(TARGET_DEVICE):$(PLATFORM_VERSION)/$(BUILD_ID)/$(BUILD_NUMBER_FROM_FILE):$(TARGET_BUILD_VARIANT)/$(BUILD_VERSION_TAGS) | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 191 | endif | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 192 |  | 
|  | 193 | BUILD_FINGERPRINT_FILE := $(PRODUCT_OUT)/build_fingerprint.txt | 
|  | 194 | ifneq (,$(shell mkdir -p $(PRODUCT_OUT) && echo $(BUILD_FINGERPRINT) >$(BUILD_FINGERPRINT_FILE) && grep " " $(BUILD_FINGERPRINT_FILE))) | 
|  | 195 | $(error BUILD_FINGERPRINT cannot contain spaces: "$(file <$(BUILD_FINGERPRINT_FILE))") | 
|  | 196 | endif | 
|  | 197 | BUILD_FINGERPRINT_FROM_FILE := $$(cat $(BUILD_FINGERPRINT_FILE)) | 
|  | 198 | # unset it for safety. | 
|  | 199 | BUILD_FINGERPRINT := | 
|  | 200 |  | 
| Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 201 | # BUILD_THUMBPRINT is used to uniquely identify the system build; used by the | 
|  | 202 | # OTA server. This purposefully excludes any product-specific variables. | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 203 | ifeq (,$(strip $(BUILD_THUMBPRINT))) | 
|  | 204 | BUILD_THUMBPRINT := $(PLATFORM_VERSION)/$(BUILD_ID)/$(BUILD_NUMBER_FROM_FILE):$(TARGET_BUILD_VARIANT)/$(BUILD_VERSION_TAGS) | 
|  | 205 | endif | 
|  | 206 |  | 
|  | 207 | BUILD_THUMBPRINT_FILE := $(PRODUCT_OUT)/build_thumbprint.txt | 
| Jeongik Cha | 05210f9 | 2023-04-27 11:05:22 +0900 | [diff] [blame] | 208 | ifeq ($(strip $(HAS_BUILD_NUMBER)),true) | 
|  | 209 | $(BUILD_THUMBPRINT_FILE): $(BUILD_NUMBER_FILE) | 
|  | 210 | endif | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 211 | ifneq (,$(shell mkdir -p $(PRODUCT_OUT) && echo $(BUILD_THUMBPRINT) >$(BUILD_THUMBPRINT_FILE) && grep " " $(BUILD_THUMBPRINT_FILE))) | 
|  | 212 | $(error BUILD_THUMBPRINT cannot contain spaces: "$(file <$(BUILD_THUMBPRINT_FILE))") | 
|  | 213 | endif | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 214 | # unset it for safety. | 
| Inseob Kim | 06d2231 | 2024-03-27 05:19:56 +0000 | [diff] [blame] | 215 | BUILD_THUMBPRINT_FILE := | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 216 | BUILD_THUMBPRINT := | 
|  | 217 |  | 
| Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 218 | KNOWN_OEM_THUMBPRINT_PROPERTIES := \ | 
|  | 219 | ro.product.brand \ | 
|  | 220 | ro.product.name \ | 
|  | 221 | ro.product.device | 
|  | 222 | OEM_THUMBPRINT_PROPERTIES := $(filter $(KNOWN_OEM_THUMBPRINT_PROPERTIES),\ | 
|  | 223 | $(PRODUCT_OEM_PROPERTIES)) | 
|  | 224 | KNOWN_OEM_THUMBPRINT_PROPERTIES:= | 
|  | 225 |  | 
|  | 226 | # ----------------------------------------------------------------- | 
|  | 227 | # system/build.prop | 
|  | 228 | # | 
|  | 229 | # Note: parts of this file that can't be generated by the build-properties | 
|  | 230 | # macro are manually created as separate files and then fed into the macro | 
|  | 231 |  | 
| Inseob Kim | 06d2231 | 2024-03-27 05:19:56 +0000 | [diff] [blame] | 232 | buildinfo_prop := $(call intermediates-dir-for,ETC,buildinfo.prop)/buildinfo.prop | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 233 |  | 
| Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 234 | ifdef TARGET_SYSTEM_PROP | 
|  | 235 | system_prop_file := $(TARGET_SYSTEM_PROP) | 
|  | 236 | else | 
|  | 237 | system_prop_file := $(wildcard $(TARGET_DEVICE_DIR)/system.prop) | 
|  | 238 | endif | 
|  | 239 |  | 
|  | 240 | _prop_files_ := \ | 
| Inseob Kim | 06d2231 | 2024-03-27 05:19:56 +0000 | [diff] [blame] | 241 | $(buildinfo_prop) \ | 
| Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 242 | $(system_prop_file) | 
|  | 243 |  | 
|  | 244 | # Order matters here. When there are duplicates, the last one wins. | 
|  | 245 | # TODO(b/117892318): don't allow duplicates so that the ordering doesn't matter | 
|  | 246 | _prop_vars_ := \ | 
|  | 247 | ADDITIONAL_SYSTEM_PROPERTIES \ | 
| Jiyong Park | eb49b34 | 2020-05-29 17:50:03 +0900 | [diff] [blame] | 248 | PRODUCT_SYSTEM_PROPERTIES | 
|  | 249 |  | 
|  | 250 | # TODO(b/117892318): deprecate this | 
|  | 251 | _prop_vars_ += \ | 
| Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 252 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES | 
|  | 253 |  | 
|  | 254 | ifndef property_overrides_split_enabled | 
|  | 255 | _prop_vars_ += \ | 
| Garfield Tan | 04714da | 2020-08-13 15:21:32 -0700 | [diff] [blame] | 256 | ADDITIONAL_VENDOR_PROPERTIES \ | 
|  | 257 | PRODUCT_VENDOR_PROPERTIES | 
| Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 258 | endif | 
|  | 259 |  | 
| Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 260 | INSTALLED_BUILD_PROP_TARGET := $(TARGET_OUT)/build.prop | 
|  | 261 |  | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 262 | $(eval $(call build-properties,\ | 
|  | 263 | system,\ | 
|  | 264 | $(INSTALLED_BUILD_PROP_TARGET),\ | 
|  | 265 | $(_prop_files_),\ | 
|  | 266 | $(_prop_vars_),\ | 
| Peter Collingbourne | 0e3b095 | 2022-02-18 19:17:04 -0800 | [diff] [blame] | 267 | $(PRODUCT_SYSTEM_PROPERTY_BLACKLIST),\ | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 268 | $(empty),\ | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 269 | $(empty))) | 
| Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 270 |  | 
| Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 271 | $(eval $(call declare-1p-target,$(INSTALLED_BUILD_PROP_TARGET))) | 
|  | 272 |  | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 273 | # ----------------------------------------------------------------- | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 274 | # vendor/build.prop | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 275 | # | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 276 | _prop_files_ := $(if $(TARGET_VENDOR_PROP),\ | 
|  | 277 | $(TARGET_VENDOR_PROP),\ | 
|  | 278 | $(wildcard $(TARGET_DEVICE_DIR)/vendor.prop)) | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 279 |  | 
| Jiyong Park | 3a2e95a | 2020-05-25 17:56:09 +0900 | [diff] [blame] | 280 | android_info_prop := $(call intermediates-dir-for,ETC,android_info_prop)/android_info.prop | 
|  | 281 | $(android_info_prop): $(INSTALLED_ANDROID_INFO_TXT_TARGET) | 
|  | 282 | cat $< | grep 'require version-' | sed -e 's/require version-/ro.build.expect./g' > $@ | 
|  | 283 |  | 
| Donghyun Jo | 8c65ef6 | 2021-03-02 08:51:03 +0900 | [diff] [blame] | 284 | _prop_files_ += $(android_info_prop) | 
| Jiyong Park | 3a2e95a | 2020-05-25 17:56:09 +0900 | [diff] [blame] | 285 |  | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 286 | ifdef property_overrides_split_enabled | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 287 | # Order matters here. When there are duplicates, the last one wins. | 
|  | 288 | # TODO(b/117892318): don't allow duplicates so that the ordering doesn't matter | 
|  | 289 | _prop_vars_ := \ | 
|  | 290 | ADDITIONAL_VENDOR_PROPERTIES \ | 
| Jiyong Park | eb49b34 | 2020-05-29 17:50:03 +0900 | [diff] [blame] | 291 | PRODUCT_VENDOR_PROPERTIES | 
|  | 292 |  | 
|  | 293 | # TODO(b/117892318): deprecate this | 
|  | 294 | _prop_vars_ += \ | 
|  | 295 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES \ | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 296 | PRODUCT_PROPERTY_OVERRIDES | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 297 | else | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 298 | _prop_vars_ := | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 299 | endif | 
|  | 300 |  | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 301 | INSTALLED_VENDOR_BUILD_PROP_TARGET := $(TARGET_OUT_VENDOR)/build.prop | 
|  | 302 | $(eval $(call build-properties,\ | 
|  | 303 | vendor,\ | 
|  | 304 | $(INSTALLED_VENDOR_BUILD_PROP_TARGET),\ | 
|  | 305 | $(_prop_files_),\ | 
|  | 306 | $(_prop_vars_),\ | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 307 | $(PRODUCT_VENDOR_PROPERTY_BLACKLIST),\ | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 308 | $(empty),\ | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 309 | $(empty))) | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 310 |  | 
| Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 311 | $(eval $(call declare-1p-target,$(INSTALLED_VENDOR_BUILD_PROP_TARGET))) | 
|  | 312 |  | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 313 | # ----------------------------------------------------------------- | 
| Jiyong Park | c0bd8c7 | 2020-06-29 10:46:22 +0900 | [diff] [blame] | 314 | # product/etc/build.prop | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 315 | # | 
|  | 316 |  | 
|  | 317 | _prop_files_ := $(if $(TARGET_PRODUCT_PROP),\ | 
|  | 318 | $(TARGET_PRODUCT_PROP),\ | 
|  | 319 | $(wildcard $(TARGET_DEVICE_DIR)/product.prop)) | 
|  | 320 |  | 
|  | 321 | # Order matters here. When there are duplicates, the last one wins. | 
|  | 322 | # TODO(b/117892318): don't allow duplicates so that the ordering doesn't matter | 
|  | 323 | _prop_vars_ := \ | 
|  | 324 | ADDITIONAL_PRODUCT_PROPERTIES \ | 
|  | 325 | PRODUCT_PRODUCT_PROPERTIES | 
|  | 326 |  | 
| Jiyong Park | c0bd8c7 | 2020-06-29 10:46:22 +0900 | [diff] [blame] | 327 | INSTALLED_PRODUCT_BUILD_PROP_TARGET := $(TARGET_OUT_PRODUCT)/etc/build.prop | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 328 |  | 
|  | 329 | ifdef PRODUCT_OEM_PROPERTIES | 
|  | 330 | import_oem_prop := $(call intermediates-dir-for,ETC,import_oem_prop)/oem.prop | 
|  | 331 |  | 
|  | 332 | $(import_oem_prop): | 
|  | 333 | $(hide) echo "####################################" >> $@; \ | 
|  | 334 | echo "# PRODUCT_OEM_PROPERTIES" >> $@; \ | 
|  | 335 | echo "####################################" >> $@; | 
|  | 336 | $(hide) $(foreach prop,$(PRODUCT_OEM_PROPERTIES), \ | 
|  | 337 | echo "import /oem/oem.prop $(prop)" >> $@;) | 
|  | 338 |  | 
|  | 339 | _footers_ := $(import_oem_prop) | 
|  | 340 | else | 
|  | 341 | _footers_ := | 
|  | 342 | endif | 
|  | 343 |  | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 344 | # Skip common /product properties generation if device released before R and | 
|  | 345 | # has no product partition. This is the first part of the check. | 
|  | 346 | ifeq ($(call math_lt,$(if $(PRODUCT_SHIPPING_API_LEVEL),$(PRODUCT_SHIPPING_API_LEVEL),30),30), true) | 
|  | 347 | _skip_common_properties := true | 
|  | 348 | endif | 
|  | 349 |  | 
|  | 350 | # The second part of the check - always generate common properties for the | 
|  | 351 | # devices with product partition regardless of shipping level. | 
|  | 352 | ifneq ($(BOARD_USES_PRODUCTIMAGE),) | 
|  | 353 | _skip_common_properties := | 
|  | 354 | endif | 
|  | 355 |  | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 356 | $(eval $(call build-properties,\ | 
|  | 357 | product,\ | 
|  | 358 | $(INSTALLED_PRODUCT_BUILD_PROP_TARGET),\ | 
|  | 359 | $(_prop_files_),\ | 
|  | 360 | $(_prop_vars_),\ | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 361 | $(empty),\ | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 362 | $(_footers_),\ | 
|  | 363 | $(_skip_common_properties))) | 
|  | 364 |  | 
| Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 365 | $(eval $(call declare-1p-target,$(INSTALLED_PRODUCT_BUILD_PROP_TARGET))) | 
|  | 366 |  | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 367 | _skip_common_properties := | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 368 |  | 
|  | 369 | # ---------------------------------------------------------------- | 
| Jiyong Park | 62117c8 | 2020-06-26 09:56:31 +0900 | [diff] [blame] | 370 | # odm/etc/build.prop | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 371 | # | 
|  | 372 | _prop_files_ := $(if $(TARGET_ODM_PROP),\ | 
|  | 373 | $(TARGET_ODM_PROP),\ | 
|  | 374 | $(wildcard $(TARGET_DEVICE_DIR)/odm.prop)) | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 375 |  | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 376 | # Order matters here. When there are duplicates, the last one wins. | 
|  | 377 | # TODO(b/117892318): don't allow duplicates so that the ordering doesn't matter | 
|  | 378 | _prop_vars_ := \ | 
|  | 379 | ADDITIONAL_ODM_PROPERTIES \ | 
|  | 380 | PRODUCT_ODM_PROPERTIES | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 381 |  | 
| Jiyong Park | 62117c8 | 2020-06-26 09:56:31 +0900 | [diff] [blame] | 382 | INSTALLED_ODM_BUILD_PROP_TARGET := $(TARGET_OUT_ODM)/etc/build.prop | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 383 | $(eval $(call build-properties,\ | 
|  | 384 | odm,\ | 
|  | 385 | $(INSTALLED_ODM_BUILD_PROP_TARGET),\ | 
| Hidefumi Kaneko | b09a36c | 2021-07-30 17:38:36 +0900 | [diff] [blame] | 386 | $(_prop_files_),\ | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 387 | $(_prop_vars_),\ | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 388 | $(empty),\ | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 389 | $(empty),\ | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 390 | $(empty))) | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 391 |  | 
| Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 392 | $(eval $(call declare-1p-target,$(INSTALLED_ODM_BUILD_PROP_TARGET))) | 
|  | 393 |  | 
| Yifan Hong | 51a971b | 2020-06-25 17:00:27 -0700 | [diff] [blame] | 394 | # ---------------------------------------------------------------- | 
|  | 395 | # vendor_dlkm/etc/build.prop | 
|  | 396 | # | 
|  | 397 |  | 
|  | 398 | INSTALLED_VENDOR_DLKM_BUILD_PROP_TARGET := $(TARGET_OUT_VENDOR_DLKM)/etc/build.prop | 
|  | 399 | $(eval $(call build-properties,\ | 
|  | 400 | vendor_dlkm,\ | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 401 | $(INSTALLED_VENDOR_DLKM_BUILD_PROP_TARGET),\ | 
|  | 402 | $(empty),\ | 
|  | 403 | $(empty),\ | 
|  | 404 | $(empty),\ | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 405 | $(empty),\ | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 406 | $(empty))) | 
| Yifan Hong | 51a971b | 2020-06-25 17:00:27 -0700 | [diff] [blame] | 407 |  | 
| Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 408 | $(eval $(call declare-1p-target,$(INSTALLED_VENDOR_DLKM_BUILD_PROP_TARGET))) | 
|  | 409 |  | 
| Yifan Hong | 81a092f | 2020-07-15 17:02:07 -0700 | [diff] [blame] | 410 | # ---------------------------------------------------------------- | 
|  | 411 | # odm_dlkm/etc/build.prop | 
|  | 412 | # | 
|  | 413 |  | 
|  | 414 | INSTALLED_ODM_DLKM_BUILD_PROP_TARGET := $(TARGET_OUT_ODM_DLKM)/etc/build.prop | 
|  | 415 | $(eval $(call build-properties,\ | 
|  | 416 | odm_dlkm,\ | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 417 | $(INSTALLED_ODM_DLKM_BUILD_PROP_TARGET),\ | 
|  | 418 | $(empty),\ | 
|  | 419 | $(empty),\ | 
|  | 420 | $(empty),\ | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 421 | $(empty),\ | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 422 | $(empty))) | 
| Yifan Hong | 81a092f | 2020-07-15 17:02:07 -0700 | [diff] [blame] | 423 |  | 
| Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 424 | $(eval $(call declare-1p-target,$(INSTALLED_ODM_DLKM_BUILD_PROP_TARGET))) | 
|  | 425 |  | 
| Ramji Jiyani | 13a4137 | 2022-01-27 07:05:08 +0000 | [diff] [blame] | 426 | # ---------------------------------------------------------------- | 
|  | 427 | # system_dlkm/build.prop | 
|  | 428 | # | 
|  | 429 |  | 
|  | 430 | INSTALLED_SYSTEM_DLKM_BUILD_PROP_TARGET := $(TARGET_OUT_SYSTEM_DLKM)/etc/build.prop | 
|  | 431 | $(eval $(call build-properties,\ | 
|  | 432 | system_dlkm,\ | 
|  | 433 | $(INSTALLED_SYSTEM_DLKM_BUILD_PROP_TARGET),\ | 
|  | 434 | $(empty),\ | 
|  | 435 | $(empty),\ | 
|  | 436 | $(empty),\ | 
|  | 437 | $(empty),\ | 
|  | 438 | $(empty))) | 
|  | 439 |  | 
| Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 440 | $(eval $(call declare-1p-target,$(INSTALLED_SYSTEM_DLKM_BUILD_PROP_TARGET))) | 
|  | 441 |  | 
| Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 442 | # ----------------------------------------------------------------- | 
| Jiyong Park | c0bd8c7 | 2020-06-29 10:46:22 +0900 | [diff] [blame] | 443 | # system_ext/etc/build.prop | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 444 | # | 
|  | 445 | _prop_files_ := $(if $(TARGET_SYSTEM_EXT_PROP),\ | 
|  | 446 | $(TARGET_SYSTEM_EXT_PROP),\ | 
|  | 447 | $(wildcard $(TARGET_DEVICE_DIR)/system_ext.prop)) | 
|  | 448 |  | 
|  | 449 | # Order matters here. When there are duplicates, the last one wins. | 
|  | 450 | # TODO(b/117892318): don't allow duplicates so that the ordering doesn't matter | 
|  | 451 | _prop_vars_ := PRODUCT_SYSTEM_EXT_PROPERTIES | 
|  | 452 |  | 
| Jiyong Park | c0bd8c7 | 2020-06-29 10:46:22 +0900 | [diff] [blame] | 453 | INSTALLED_SYSTEM_EXT_BUILD_PROP_TARGET := $(TARGET_OUT_SYSTEM_EXT)/etc/build.prop | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 454 | $(eval $(call build-properties,\ | 
|  | 455 | system_ext,\ | 
|  | 456 | $(INSTALLED_SYSTEM_EXT_BUILD_PROP_TARGET),\ | 
|  | 457 | $(_prop_files_),\ | 
|  | 458 | $(_prop_vars_),\ | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 459 | $(empty),\ | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 460 | $(empty),\ | 
| Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 461 | $(empty))) | 
| Yifan Hong | 33fd5d4 | 2020-09-24 18:18:26 -0700 | [diff] [blame] | 462 |  | 
| Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 463 | $(eval $(call declare-1p-target,$(INSTALLED_SYSTEM_EXT_BUILD_PROP_TARGET))) | 
|  | 464 |  | 
| Yifan Hong | 33fd5d4 | 2020-09-24 18:18:26 -0700 | [diff] [blame] | 465 | # ---------------------------------------------------------------- | 
|  | 466 | # ramdisk/boot/etc/build.prop | 
|  | 467 | # | 
|  | 468 |  | 
|  | 469 | RAMDISK_BUILD_PROP_REL_PATH := system/etc/ramdisk/build.prop | 
|  | 470 | INSTALLED_RAMDISK_BUILD_PROP_TARGET := $(TARGET_RAMDISK_OUT)/$(RAMDISK_BUILD_PROP_REL_PATH) | 
|  | 471 | $(eval $(call build-properties,\ | 
| Kelvin Zhang | 8250d2c | 2022-03-23 19:46:09 +0000 | [diff] [blame] | 472 | bootimage,\ | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 473 | $(INSTALLED_RAMDISK_BUILD_PROP_TARGET),\ | 
|  | 474 | $(empty),\ | 
|  | 475 | $(empty),\ | 
|  | 476 | $(empty),\ | 
| Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 477 | $(empty),\ | 
| Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 478 | $(empty))) | 
| Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 479 |  | 
|  | 480 | $(eval $(call declare-1p-target,$(INSTALLED_RAMDISK_BUILD_PROP_TARGET))) | 
| Wei Li | 4993336 | 2023-01-04 17:13:47 -0800 | [diff] [blame] | 481 |  | 
|  | 482 | ALL_INSTALLED_BUILD_PROP_FILES := \ | 
|  | 483 | $(INSTALLED_BUILD_PROP_TARGET) \ | 
|  | 484 | $(INSTALLED_VENDOR_BUILD_PROP_TARGET) \ | 
|  | 485 | $(INSTALLED_PRODUCT_BUILD_PROP_TARGET) \ | 
|  | 486 | $(INSTALLED_ODM_BUILD_PROP_TARGET) \ | 
|  | 487 | $(INSTALLED_VENDOR_DLKM_BUILD_PROP_TARGET) \ | 
|  | 488 | $(INSTALLED_ODM_DLKM_BUILD_PROP_TARGET) \ | 
|  | 489 | $(INSTALLED_SYSTEM_DLKM_BUILD_PROP_TARGET) \ | 
|  | 490 | $(INSTALLED_SYSTEM_EXT_BUILD_PROP_TARGET) \ | 
|  | 491 | $(INSTALLED_RAMDISK_BUILD_PROP_TARGET) | 
|  | 492 |  | 
|  | 493 | # $1 installed file path, e.g. out/target/product/vsoc_x86_64/system/build.prop | 
|  | 494 | define is-build-prop | 
|  | 495 | $(if $(findstring $1,$(ALL_INSTALLED_BUILD_PROP_FILES)),Y) | 
| Tiffany Yang | 19450e3 | 2023-05-23 17:36:54 -0700 | [diff] [blame] | 496 | endef |