Merge "Enable BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED for full-treble products"
am: 42c7cf0631
Change-Id: I7efa870b5649108a2e59b52a682e16e5b8d10420
This commit is contained in:
commit
cae2ca8ef5
2 changed files with 27 additions and 15 deletions
|
@ -122,6 +122,24 @@ ifeq ($(BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED), true)
|
||||||
property_overrides_split_enabled := true
|
property_overrides_split_enabled := true
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
# FINAL_VENDOR_DEFAULT_PROPERTIES will be installed in vendor/default.prop if
|
||||||
|
# property_overrides_split_enabled is true. Otherwise it will be installed in
|
||||||
|
# ROOT/default.prop.
|
||||||
|
ifdef BOARD_VNDK_VERSION
|
||||||
|
ifeq ($(BOARD_VNDK_VERSION),current)
|
||||||
|
FINAL_VENDOR_DEFAULT_PROPERTIES := ro.vndk.version=$(PLATFORM_VNDK_VERSION)
|
||||||
|
else
|
||||||
|
FINAL_VENDOR_DEFAULT_PROPERTIES := ro.vndk.version=$(BOARD_VNDK_VERSION)
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
FINAL_VENDOR_DEFAULT_PROPERTIES :=
|
||||||
|
endif
|
||||||
|
FINAL_VENDOR_DEFAULT_PROPERTIES += \
|
||||||
|
$(call collapse-pairs, $(PRODUCT_DEFAULT_PROPERTY_OVERRIDES))
|
||||||
|
FINAL_VENDOR_DEFAULT_PROPERTIES := $(call uniq-pairs-by-first-component, \
|
||||||
|
$(FINAL_VENDOR_DEFAULT_PROPERTIES),=)
|
||||||
|
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
# prop.default
|
# prop.default
|
||||||
ifdef property_overrides_split_enabled
|
ifdef property_overrides_split_enabled
|
||||||
|
@ -139,7 +157,7 @@ FINAL_DEFAULT_PROPERTIES := \
|
||||||
$(call collapse-pairs, $(PRODUCT_SYSTEM_DEFAULT_PROPERTIES))
|
$(call collapse-pairs, $(PRODUCT_SYSTEM_DEFAULT_PROPERTIES))
|
||||||
ifndef property_overrides_split_enabled
|
ifndef property_overrides_split_enabled
|
||||||
FINAL_DEFAULT_PROPERTIES += \
|
FINAL_DEFAULT_PROPERTIES += \
|
||||||
$(call collapse-pairs, $(PRODUCT_DEFAULT_PROPERTY_OVERRIDES))
|
$(call collapse-pairs, $(FINAL_VENDOR_DEFAULT_PROPERTIES))
|
||||||
endif
|
endif
|
||||||
FINAL_DEFAULT_PROPERTIES := $(call uniq-pairs-by-first-component, \
|
FINAL_DEFAULT_PROPERTIES := $(call uniq-pairs-by-first-component, \
|
||||||
$(FINAL_DEFAULT_PROPERTIES),=)
|
$(FINAL_DEFAULT_PROPERTIES),=)
|
||||||
|
@ -174,20 +192,6 @@ ifdef property_overrides_split_enabled
|
||||||
INSTALLED_VENDOR_DEFAULT_PROP_TARGET := $(TARGET_OUT_VENDOR)/default.prop
|
INSTALLED_VENDOR_DEFAULT_PROP_TARGET := $(TARGET_OUT_VENDOR)/default.prop
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += $(INSTALLED_VENDOR_DEFAULT_PROP_TARGET)
|
ALL_DEFAULT_INSTALLED_MODULES += $(INSTALLED_VENDOR_DEFAULT_PROP_TARGET)
|
||||||
|
|
||||||
ifdef BOARD_VNDK_VERSION
|
|
||||||
ifeq ($(BOARD_VNDK_VERSION),current)
|
|
||||||
FINAL_VENDOR_DEFAULT_PROPERTIES := ro.vndk.version=$(PLATFORM_VNDK_VERSION)
|
|
||||||
else
|
|
||||||
FINAL_VENDOR_DEFAULT_PROPERTIES := ro.vndk.version=$(BOARD_VNDK_VERSION)
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
FINAL_VENDOR_DEFAULT_PROPERTIES :=
|
|
||||||
endif
|
|
||||||
FINAL_VENDOR_DEFAULT_PROPERTIES += \
|
|
||||||
$(call collapse-pairs, $(PRODUCT_DEFAULT_PROPERTY_OVERRIDES))
|
|
||||||
FINAL_VENDOR_DEFAULT_PROPERTIES := $(call uniq-pairs-by-first-component, \
|
|
||||||
$(FINAL_VENDOR_DEFAULT_PROPERTIES),=)
|
|
||||||
|
|
||||||
$(INSTALLED_VENDOR_DEFAULT_PROP_TARGET): $(INSTALLED_DEFAULT_PROP_TARGET)
|
$(INSTALLED_VENDOR_DEFAULT_PROP_TARGET): $(INSTALLED_DEFAULT_PROP_TARGET)
|
||||||
@echo Target buildinfo: $@
|
@echo Target buildinfo: $@
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
|
|
|
@ -797,6 +797,14 @@ $(foreach req,$(requirements),$(eval $(req)_OVERRIDE ?=))
|
||||||
|
|
||||||
requirements :=
|
requirements :=
|
||||||
|
|
||||||
|
# BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED can be true only if early-mount of
|
||||||
|
# partitions is supported. But the early-mount must be supported for full
|
||||||
|
# treble products, and so BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED should be set
|
||||||
|
# by default for full treble products.
|
||||||
|
ifeq ($(PRODUCT_FULL_TREBLE),true)
|
||||||
|
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED ?= true
|
||||||
|
endif
|
||||||
|
|
||||||
# If PRODUCT_USE_VNDK is true and BOARD_VNDK_VERSION is not defined yet,
|
# If PRODUCT_USE_VNDK is true and BOARD_VNDK_VERSION is not defined yet,
|
||||||
# BOARD_VNDK_VERSION will be set to "current" as default.
|
# BOARD_VNDK_VERSION will be set to "current" as default.
|
||||||
# PRODUCT_USE_VNDK will be true in Android-P or later launching devices.
|
# PRODUCT_USE_VNDK will be true in Android-P or later launching devices.
|
||||||
|
|
Loading…
Reference in a new issue