diff --git a/core/config.mk b/core/config.mk index d4a2ea6a40..265597fc3e 100644 --- a/core/config.mk +++ b/core/config.mk @@ -1272,7 +1272,15 @@ ifeq ($(TARGET_PRODUCT_PROP),) TARGET_PRODUCT_PROP := $(wildcard $(TARGET_DEVICE_DIR)/product.prop) endif -.KATI_READONLY := TARGET_SYSTEM_PROP TARGET_SYSTEM_EXT_PROP TARGET_PRODUCT_PROP +ifeq ($(TARGET_ODM_PROP),) +TARGET_ODM_PROP := $(wildcard $(TARGET_DEVICE_DIR)/odm.prop) +endif + +.KATI_READONLY := \ + TARGET_SYSTEM_PROP \ + TARGET_SYSTEM_EXT_PROP \ + TARGET_PRODUCT_PROP \ + TARGET_ODM_PROP \ include $(BUILD_SYSTEM)/sysprop_config.mk diff --git a/core/soong_config.mk b/core/soong_config.mk index 606a225776..77fc5a7ff1 100644 --- a/core/soong_config.mk +++ b/core/soong_config.mk @@ -366,6 +366,7 @@ $(call add_json_list, OemProperties, $(PRODUCT_OEM_PROPERTIES)) $(call add_json_list, SystemPropFiles, $(TARGET_SYSTEM_PROP)) $(call add_json_list, SystemExtPropFiles, $(TARGET_SYSTEM_EXT_PROP)) $(call add_json_list, ProductPropFiles, $(TARGET_PRODUCT_PROP)) +$(call add_json_list, OdmPropFiles, $(TARGET_ODM_PROP)) # Do not set ArtTargetIncludeDebugBuild into any value if PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD is not set, # to have the same behavior from runtime_libart.mk.