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);\ |
Inseob Kim | b97c96b | 2024-07-31 02:00:41 +0000 | [diff] [blame] | 36 | echo "ro.product.$(1).brand=$(PRODUCT_BRAND)" >> $(2);\ |
| 37 | echo "ro.product.$(1).device=$(TARGET_DEVICE)" >> $(2);\ |
| 38 | echo "ro.product.$(1).manufacturer=$(PRODUCT_MANUFACTURER)" >> $(2);\ |
| 39 | echo "ro.product.$(1).model=$(PRODUCT_MODEL)" >> $(2);\ |
| 40 | echo "ro.product.$(1).name=$(TARGET_PRODUCT)" >> $(2);\ |
| 41 | if [ -n "$(strip $(PRODUCT_MODEL_FOR_ATTESTATION))" ]; then \ |
| 42 | echo "ro.product.model_for_attestation=$(PRODUCT_MODEL_FOR_ATTESTATION)" >> $(2);\ |
| 43 | fi; \ |
| 44 | if [ -n "$(strip $(PRODUCT_BRAND_FOR_ATTESTATION))" ]; then \ |
| 45 | echo "ro.product.brand_for_attestation=$(PRODUCT_BRAND_FOR_ATTESTATION)" >> $(2);\ |
| 46 | fi; \ |
| 47 | if [ -n "$(strip $(PRODUCT_NAME_FOR_ATTESTATION))" ]; then \ |
| 48 | echo "ro.product.name_for_attestation=$(PRODUCT_NAME_FOR_ATTESTATION)" >> $(2);\ |
| 49 | fi; \ |
| 50 | if [ -n "$(strip $(PRODUCT_DEVICE_FOR_ATTESTATION))" ]; then \ |
| 51 | echo "ro.product.device_for_attestation=$(PRODUCT_DEVICE_FOR_ATTESTATION)" >> $(2);\ |
| 52 | fi; \ |
| 53 | if [ -n "$(strip $(PRODUCT_MANUFACTURER_FOR_ATTESTATION))" ]; then \ |
| 54 | echo "ro.product.manufacturer_for_attestation=$(PRODUCT_MANUFACTURER_FOR_ATTESTATION)" >> $(2);\ |
| 55 | fi; \ |
Christopher Ferris | 66b6fd6 | 2022-04-08 15:20:23 -0700 | [diff] [blame] | 56 | $(if $(filter true,$(ZYGOTE_FORCE_64)),\ |
| 57 | $(if $(filter vendor,$(1)),\ |
| 58 | echo "ro.$(1).product.cpu.abilist=$(TARGET_CPU_ABI_LIST_64_BIT)" >> $(2);\ |
| 59 | echo "ro.$(1).product.cpu.abilist32=" >> $(2);\ |
| 60 | echo "ro.$(1).product.cpu.abilist64=$(TARGET_CPU_ABI_LIST_64_BIT)" >> $(2);\ |
| 61 | )\ |
| 62 | ,\ |
| 63 | $(if $(filter system vendor odm,$(1)),\ |
| 64 | echo "ro.$(1).product.cpu.abilist=$(TARGET_CPU_ABI_LIST)" >> $(2);\ |
| 65 | echo "ro.$(1).product.cpu.abilist32=$(TARGET_CPU_ABI_LIST_32_BIT)" >> $(2);\ |
| 66 | echo "ro.$(1).product.cpu.abilist64=$(TARGET_CPU_ABI_LIST_64_BIT)" >> $(2);\ |
| 67 | )\ |
SzuWei Lin | baf5c81 | 2020-12-31 16:59:27 +0800 | [diff] [blame] | 68 | )\ |
Jiyong Park | 35a83d1 | 2020-05-26 02:01:05 +0900 | [diff] [blame] | 69 | echo "ro.$(1).build.date=`$(DATE_FROM_FILE)`" >> $(2);\ |
| 70 | echo "ro.$(1).build.date.utc=`$(DATE_FROM_FILE) +%s`" >> $(2);\ |
Tiffany Yang | 19450e3 | 2023-05-23 17:36:54 -0700 | [diff] [blame] | 71 | # Allow optional assignments for ARC forward-declarations (b/249168657) |
| 72 | # TODO: Remove any tag-related inconsistencies once the goals from |
| 73 | # go/arc-android-sigprop-changes have been achieved. |
| 74 | echo "ro.$(1).build.fingerprint?=$(BUILD_FINGERPRINT_FROM_FILE)" >> $(2);\ |
| 75 | echo "ro.$(1).build.id?=$(BUILD_ID)" >> $(2);\ |
| 76 | echo "ro.$(1).build.tags?=$(BUILD_VERSION_TAGS)" >> $(2);\ |
Jiyong Park | 35a83d1 | 2020-05-26 02:01:05 +0900 | [diff] [blame] | 77 | echo "ro.$(1).build.type=$(TARGET_BUILD_VARIANT)" >> $(2);\ |
| 78 | echo "ro.$(1).build.version.incremental=$(BUILD_NUMBER_FROM_FILE)" >> $(2);\ |
Tianjie | e88ac67 | 2020-10-15 17:22:48 -0700 | [diff] [blame] | 79 | echo "ro.$(1).build.version.release=$(PLATFORM_VERSION_LAST_STABLE)" >> $(2);\ |
| 80 | echo "ro.$(1).build.version.release_or_codename=$(PLATFORM_VERSION)" >> $(2);\ |
Jiyong Park | 35a83d1 | 2020-05-26 02:01:05 +0900 | [diff] [blame] | 81 | echo "ro.$(1).build.version.sdk=$(PLATFORM_SDK_VERSION)" >> $(2);\ |
Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 82 | |
Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 83 | endef |
| 84 | |
Jiyong Park | c0bd8c7 | 2020-06-29 10:46:22 +0900 | [diff] [blame] | 85 | # Rule for generating <partition>/[etc/]build.prop file |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 86 | # |
| 87 | # $(1): partition name |
| 88 | # $(2): path to the output |
| 89 | # $(3): path to the input *.prop files. The contents of the files are directly |
| 90 | # emitted to the output |
| 91 | # $(4): list of variable names each of which contains name=value pairs |
| 92 | # $(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] | 93 | # $(3) and (4) are affected |
| 94 | # $(6): optional list of files to append at the end. The content of each file is emitted |
| 95 | # to the output |
Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 96 | # $(7): optional flag to skip common properties generation |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 97 | define build-properties |
| 98 | ALL_DEFAULT_INSTALLED_MODULES += $(2) |
| 99 | |
Jiyong Park | d721e87 | 2020-06-22 17:30:57 +0900 | [diff] [blame] | 100 | $(eval # Properties can be assigned using `prop ?= value` or `prop = value` syntax.) |
| 101 | $(eval # Eliminate spaces around the ?= and = separators.) |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 102 | $(foreach name,$(strip $(4)),\ |
Jiyong Park | d721e87 | 2020-06-22 17:30:57 +0900 | [diff] [blame] | 103 | $(eval _temp := $$(call collapse-pairs,$$($(name)),?=))\ |
| 104 | $(eval _resolved_$(name) := $$(call collapse-pairs,$$(_temp),=))\ |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 105 | ) |
| 106 | |
Jiyong Park | 0b4fccb | 2020-06-26 17:38:00 +0900 | [diff] [blame] | 107 | $(eval # Implement the legacy behavior when BUILD_BROKEN_DUP_SYSPROP is on.) |
| 108 | $(eval # Optional assignments are all converted to normal assignments and) |
| 109 | $(eval # when their duplicates the first one wins) |
| 110 | $(if $(filter true,$(BUILD_BROKEN_DUP_SYSPROP)),\ |
| 111 | $(foreach name,$(strip $(4)),\ |
| 112 | $(eval _temp := $$(subst ?=,=,$$(_resolved_$(name))))\ |
| 113 | $(eval _resolved_$(name) := $$(call uniq-pairs-by-first-component,$$(_resolved_$(name)),=))\ |
| 114 | )\ |
| 115 | $(eval _option := --allow-dup)\ |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 116 | ) |
| 117 | |
Jiakai Zhang | 53dd895 | 2024-01-18 17:22:13 +0000 | [diff] [blame] | 118 | $(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] | 119 | $(hide) echo Building $$@ |
| 120 | $(hide) mkdir -p $$(dir $$@) |
| 121 | $(hide) rm -f $$@ && touch $$@ |
Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 122 | ifneq ($(strip $(7)), true) |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 123 | $(hide) $$(call generate-common-build-props,$(call to-lower,$(strip $(1))),$$@) |
Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 124 | endif |
Spandan Das | 9ac5a64 | 2024-12-12 23:40:27 +0000 | [diff] [blame] | 125 | # Make and Soong use different intermediate files to build vendor/build.prop. |
Spandan Das | c0b1b53 | 2025-01-08 20:29:20 +0000 | [diff] [blame^] | 126 | # Although the sysprop contents are same, the absolute paths of android-info.prop are different. |
Spandan Das | 9ac5a64 | 2024-12-12 23:40:27 +0000 | [diff] [blame] | 127 | # Print the filename for the intermediate files (files in OUT_DIR). |
| 128 | # This helps with validating mk->soong migration of android partitions. |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 129 | $(hide) $(foreach file,$(strip $(3)),\ |
| 130 | if [ -f "$(file)" ]; then\ |
| 131 | echo "" >> $$@;\ |
| 132 | echo "####################################" >> $$@;\ |
Spandan Das | 9ac5a64 | 2024-12-12 23:40:27 +0000 | [diff] [blame] | 133 | $(if $(filter $(OUT_DIR)/%,$(file)), \ |
| 134 | echo "# from $(notdir $(file))" >> $$@;\ |
| 135 | ,\ |
| 136 | echo "# from $(file)" >> $$@;\ |
| 137 | )\ |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 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 | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 163 | KNOWN_OEM_THUMBPRINT_PROPERTIES := \ |
| 164 | ro.product.brand \ |
| 165 | ro.product.name \ |
| 166 | ro.product.device |
| 167 | OEM_THUMBPRINT_PROPERTIES := $(filter $(KNOWN_OEM_THUMBPRINT_PROPERTIES),\ |
| 168 | $(PRODUCT_OEM_PROPERTIES)) |
| 169 | KNOWN_OEM_THUMBPRINT_PROPERTIES:= |
| 170 | |
| 171 | # ----------------------------------------------------------------- |
| 172 | # system/build.prop |
| 173 | # |
Inseob Kim | b97c96b | 2024-07-31 02:00:41 +0000 | [diff] [blame] | 174 | # system/build.prop is built by Soong. See system-build.prop module in |
| 175 | # build/soong/Android.bp. |
Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 176 | |
Jiyong Park | bb26c6f | 2020-05-26 03:18:36 +0900 | [diff] [blame] | 177 | INSTALLED_BUILD_PROP_TARGET := $(TARGET_OUT)/build.prop |
| 178 | |
Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 179 | # ----------------------------------------------------------------- |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 180 | # vendor/build.prop |
Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 181 | # |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 182 | _prop_files_ := $(if $(TARGET_VENDOR_PROP),\ |
| 183 | $(TARGET_VENDOR_PROP),\ |
| 184 | $(wildcard $(TARGET_DEVICE_DIR)/vendor.prop)) |
Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 185 | |
Spandan Das | c0b1b53 | 2025-01-08 20:29:20 +0000 | [diff] [blame^] | 186 | android_info_prop := $(call intermediates-dir-for,ETC,android_info_prop)/android-info.prop |
Jiyong Park | 3a2e95a | 2020-05-25 17:56:09 +0900 | [diff] [blame] | 187 | $(android_info_prop): $(INSTALLED_ANDROID_INFO_TXT_TARGET) |
| 188 | cat $< | grep 'require version-' | sed -e 's/require version-/ro.build.expect./g' > $@ |
| 189 | |
Donghyun Jo | 8c65ef6 | 2021-03-02 08:51:03 +0900 | [diff] [blame] | 190 | _prop_files_ += $(android_info_prop) |
Jiyong Park | 3a2e95a | 2020-05-25 17:56:09 +0900 | [diff] [blame] | 191 | |
Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 192 | ifdef property_overrides_split_enabled |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 193 | # Order matters here. When there are duplicates, the last one wins. |
| 194 | # TODO(b/117892318): don't allow duplicates so that the ordering doesn't matter |
| 195 | _prop_vars_ := \ |
| 196 | ADDITIONAL_VENDOR_PROPERTIES \ |
Jiyong Park | eb49b34 | 2020-05-29 17:50:03 +0900 | [diff] [blame] | 197 | PRODUCT_VENDOR_PROPERTIES |
| 198 | |
| 199 | # TODO(b/117892318): deprecate this |
| 200 | _prop_vars_ += \ |
| 201 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES \ |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 202 | PRODUCT_PROPERTY_OVERRIDES |
Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 203 | else |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 204 | _prop_vars_ := |
Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 205 | endif |
| 206 | |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 207 | INSTALLED_VENDOR_BUILD_PROP_TARGET := $(TARGET_OUT_VENDOR)/build.prop |
| 208 | $(eval $(call build-properties,\ |
| 209 | vendor,\ |
| 210 | $(INSTALLED_VENDOR_BUILD_PROP_TARGET),\ |
| 211 | $(_prop_files_),\ |
| 212 | $(_prop_vars_),\ |
Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 213 | $(PRODUCT_VENDOR_PROPERTY_BLACKLIST),\ |
Oleksiy Avramchenko | d3d0f7d | 2020-12-15 14:38:32 +0100 | [diff] [blame] | 214 | $(empty),\ |
Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 215 | $(empty))) |
Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 216 | |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 217 | $(eval $(call declare-1p-target,$(INSTALLED_VENDOR_BUILD_PROP_TARGET))) |
| 218 | |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 219 | # ----------------------------------------------------------------- |
Jiyong Park | c0bd8c7 | 2020-06-29 10:46:22 +0900 | [diff] [blame] | 220 | # product/etc/build.prop |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 221 | # |
Inseob Kim | d05947d | 2024-08-08 17:48:43 +0900 | [diff] [blame] | 222 | # product/etc/build.prop is built by Soong. See product-build.prop module in |
| 223 | # build/soong/Android.bp. |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 224 | |
Jiyong Park | c0bd8c7 | 2020-06-29 10:46:22 +0900 | [diff] [blame] | 225 | INSTALLED_PRODUCT_BUILD_PROP_TARGET := $(TARGET_OUT_PRODUCT)/etc/build.prop |
Alexander Mishkovets | 5a6bc22 | 2020-11-11 15:25:37 +0100 | [diff] [blame] | 226 | |
Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 227 | # ---------------------------------------------------------------- |
Jiyong Park | 62117c8 | 2020-06-26 09:56:31 +0900 | [diff] [blame] | 228 | # odm/etc/build.prop |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 229 | # |
Inseob Kim | d05947d | 2024-08-08 17:48:43 +0900 | [diff] [blame] | 230 | # odm/etc/build.prop is built by Soong. See odm-build.prop module in |
| 231 | # build/soong/Android.bp. |
Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 232 | |
Jiyong Park | 62117c8 | 2020-06-26 09:56:31 +0900 | [diff] [blame] | 233 | INSTALLED_ODM_BUILD_PROP_TARGET := $(TARGET_OUT_ODM)/etc/build.prop |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 234 | |
Yifan Hong | 51a971b | 2020-06-25 17:00:27 -0700 | [diff] [blame] | 235 | # ---------------------------------------------------------------- |
| 236 | # vendor_dlkm/etc/build.prop |
Spandan Das | 2744356 | 2024-11-06 22:12:11 +0000 | [diff] [blame] | 237 | # odm_dlkm/etc/build.prop |
| 238 | # system_dlkm/build.prop |
| 239 | # These are built by Soong. See build/soong/Android.bp |
Yifan Hong | 51a971b | 2020-06-25 17:00:27 -0700 | [diff] [blame] | 240 | |
| 241 | INSTALLED_VENDOR_DLKM_BUILD_PROP_TARGET := $(TARGET_OUT_VENDOR_DLKM)/etc/build.prop |
Yifan Hong | 81a092f | 2020-07-15 17:02:07 -0700 | [diff] [blame] | 242 | INSTALLED_ODM_DLKM_BUILD_PROP_TARGET := $(TARGET_OUT_ODM_DLKM)/etc/build.prop |
Ramji Jiyani | 13a4137 | 2022-01-27 07:05:08 +0000 | [diff] [blame] | 243 | INSTALLED_SYSTEM_DLKM_BUILD_PROP_TARGET := $(TARGET_OUT_SYSTEM_DLKM)/etc/build.prop |
Spandan Das | 2744356 | 2024-11-06 22:12:11 +0000 | [diff] [blame] | 244 | ALL_DEFAULT_INSTALLED_MODULES += \ |
| 245 | $(INSTALLED_VENDOR_DLKM_BUILD_PROP_TARGET) \ |
| 246 | $(INSTALLED_ODM_DLKM_BUILD_PROP_TARGET) \ |
| 247 | $(INSTALLED_SYSTEM_DLKM_BUILD_PROP_TARGET) \ |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 248 | |
Jiyong Park | e134686 | 2020-05-18 14:31:30 +0900 | [diff] [blame] | 249 | # ----------------------------------------------------------------- |
Jiyong Park | c0bd8c7 | 2020-06-29 10:46:22 +0900 | [diff] [blame] | 250 | # system_ext/etc/build.prop |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 251 | # |
Inseob Kim | d05947d | 2024-08-08 17:48:43 +0900 | [diff] [blame] | 252 | # system_ext/etc/build.prop is built by Soong. See system-build.prop module in |
Inseob Kim | 6dbd7eb | 2024-08-05 12:50:01 +0900 | [diff] [blame] | 253 | # build/soong/Android.bp. |
Jiyong Park | e28fa80 | 2020-05-26 00:21:20 +0900 | [diff] [blame] | 254 | |
Jiyong Park | c0bd8c7 | 2020-06-29 10:46:22 +0900 | [diff] [blame] | 255 | INSTALLED_SYSTEM_EXT_BUILD_PROP_TARGET := $(TARGET_OUT_SYSTEM_EXT)/etc/build.prop |
Bob Badour | 70c07dd | 2022-02-12 15:39:22 -0800 | [diff] [blame] | 256 | |
Yifan Hong | 33fd5d4 | 2020-09-24 18:18:26 -0700 | [diff] [blame] | 257 | RAMDISK_BUILD_PROP_REL_PATH := system/etc/ramdisk/build.prop |
Cole Faust | 5f84cf7 | 2024-11-12 15:15:30 -0800 | [diff] [blame] | 258 | ifeq (true,$(BOARD_USES_RECOVERY_AS_BOOT)) |
| 259 | INSTALLED_RAMDISK_BUILD_PROP_TARGET := $(TARGET_RECOVERY_ROOT_OUT)/first_stage_ramdisk/$(RAMDISK_BUILD_PROP_REL_PATH) |
| 260 | else |
Yifan Hong | 33fd5d4 | 2020-09-24 18:18:26 -0700 | [diff] [blame] | 261 | INSTALLED_RAMDISK_BUILD_PROP_TARGET := $(TARGET_RAMDISK_OUT)/$(RAMDISK_BUILD_PROP_REL_PATH) |
Cole Faust | 5f84cf7 | 2024-11-12 15:15:30 -0800 | [diff] [blame] | 262 | endif |
Wei Li | 4993336 | 2023-01-04 17:13:47 -0800 | [diff] [blame] | 263 | |
| 264 | ALL_INSTALLED_BUILD_PROP_FILES := \ |
| 265 | $(INSTALLED_BUILD_PROP_TARGET) \ |
| 266 | $(INSTALLED_VENDOR_BUILD_PROP_TARGET) \ |
| 267 | $(INSTALLED_PRODUCT_BUILD_PROP_TARGET) \ |
| 268 | $(INSTALLED_ODM_BUILD_PROP_TARGET) \ |
| 269 | $(INSTALLED_VENDOR_DLKM_BUILD_PROP_TARGET) \ |
| 270 | $(INSTALLED_ODM_DLKM_BUILD_PROP_TARGET) \ |
| 271 | $(INSTALLED_SYSTEM_DLKM_BUILD_PROP_TARGET) \ |
| 272 | $(INSTALLED_SYSTEM_EXT_BUILD_PROP_TARGET) \ |
| 273 | $(INSTALLED_RAMDISK_BUILD_PROP_TARGET) |
| 274 | |
| 275 | # $1 installed file path, e.g. out/target/product/vsoc_x86_64/system/build.prop |
| 276 | define is-build-prop |
| 277 | $(if $(findstring $1,$(ALL_INSTALLED_BUILD_PROP_FILES)),Y) |
Tiffany Yang | 19450e3 | 2023-05-23 17:36:54 -0700 | [diff] [blame] | 278 | endef |