forked from openkylin/platform_build
Make more use of ADDITIONAL_VENDOR_PROPERTIES
Properties that were defined in the build rule for vendor/build.prop are now defined via ADDITIONAL_VENDOR_PROPERTIES. Bug: 117892318 Test: m Change-Id: Ib3dc9d001a8dcd0aa38f1acae384a96b67b5af8a
This commit is contained in:
parent
57f51f1693
commit
f2b944ccea
34
core/main.mk
34
core/main.mk
|
@ -279,6 +279,40 @@ ADDITIONAL_VENDOR_PROPERTIES += \
|
||||||
ro.minui.pixel_format=$(TARGET_RECOVERY_PIXEL_FORMAT)
|
ro.minui.pixel_format=$(TARGET_RECOVERY_PIXEL_FORMAT)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef PRODUCT_USE_DYNAMIC_PARTITIONS
|
||||||
|
ADDITIONAL_VENDOR_PROPERTIES += \
|
||||||
|
ro.boot.dynamic_partitions=$(PRODUCT_USE_DYNAMIC_PARTITIONS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef PRODUCT_RETROFIT_DYNAMIC_PARTITIONS
|
||||||
|
ADDITIONAL_VENDOR_PROPERTIES += \
|
||||||
|
ro.boot.dynamic_partitions_retrofit=$(PRODUCT_RETROFIT_DYNAMIC_PARTITIONS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef PRODUCT_SHIPPING_API_LEVEL
|
||||||
|
ADDITIONAL_VENDOR_PROPERTIES += \
|
||||||
|
ro.product.first_api_level=$(PRODUCT_SHIPPING_API_LEVEL)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ADDITIONAL_VENDOR_PROPERTIES += \
|
||||||
|
ro.vendor.build.security_patch=$(VENDOR_SECURITY_PATCH) \
|
||||||
|
ro.vendor.product.cpu.abilist=$(TARGET_CPU_ABI_LIST) \
|
||||||
|
ro.vendor.product.cpu.abilist32=$(TARGET_CPU_ABI_LIST_32_BIT) \
|
||||||
|
ro.vendor.product.cpu.abilist64=$(TARGET_CPU_ABI_LIST_64_BIT) \
|
||||||
|
ro.product.board=$(TARGET_BOOTLOADER_BOARD_NAME) \
|
||||||
|
ro.board.platform=$(TARGET_BOARD_PLATFORM) \
|
||||||
|
ro.hwui.use_vulkan=$(TARGET_USES_VULKAN)
|
||||||
|
|
||||||
|
ifdef TARGET_SCREEN_DENSITY
|
||||||
|
ADDITIONAL_VENDOR_PROPERTIES += \
|
||||||
|
ro.sf.lcd_density=$(TARGET_SCREEN_DENSITY)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef AB_OTA_UPDATER
|
||||||
|
ADDITIONAL_VENDOR_PROPERTIES += \
|
||||||
|
ro.build.ab_update=$(AB_OTA_UPDATER)
|
||||||
|
endif
|
||||||
|
|
||||||
# Set ro.product.vndk.version to know the VNDK version required by product
|
# Set ro.product.vndk.version to know the VNDK version required by product
|
||||||
# modules. It uses the version in PRODUCT_PRODUCT_VNDK_VERSION. If the value
|
# modules. It uses the version in PRODUCT_PRODUCT_VNDK_VERSION. If the value
|
||||||
# is "current", use PLATFORM_VNDK_VERSION.
|
# is "current", use PLATFORM_VNDK_VERSION.
|
||||||
|
|
|
@ -281,26 +281,6 @@ $(INSTALLED_VENDOR_BUILD_PROP_TARGET): $(BUILDINFO_COMMON_SH) $(POST_PROCESS_PRO
|
||||||
@echo Target vendor buildinfo: $@
|
@echo Target vendor buildinfo: $@
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
$(hide) rm -f $@ && touch $@
|
$(hide) rm -f $@ && touch $@
|
||||||
ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true)
|
|
||||||
$(hide) echo ro.boot.dynamic_partitions=true >> $@
|
|
||||||
endif
|
|
||||||
ifeq ($(PRODUCT_RETROFIT_DYNAMIC_PARTITIONS),true)
|
|
||||||
$(hide) echo ro.boot.dynamic_partitions_retrofit=true >> $@
|
|
||||||
endif
|
|
||||||
$(hide) grep 'ro.product.first_api_level' $(intermediate_system_build_prop) >> $@ || true
|
|
||||||
$(hide) echo ro.vendor.build.security_patch="$(VENDOR_SECURITY_PATCH)">>$@
|
|
||||||
$(hide) echo ro.vendor.product.cpu.abilist="$(TARGET_CPU_ABI_LIST)">>$@
|
|
||||||
$(hide) echo ro.vendor.product.cpu.abilist32="$(TARGET_CPU_ABI_LIST_32_BIT)">>$@
|
|
||||||
$(hide) echo ro.vendor.product.cpu.abilist64="$(TARGET_CPU_ABI_LIST_64_BIT)">>$@
|
|
||||||
$(hide) echo ro.product.board="$(TARGET_BOOTLOADER_BOARD_NAME)">>$@
|
|
||||||
$(hide) echo ro.board.platform="$(TARGET_BOARD_PLATFORM)">>$@
|
|
||||||
$(hide) echo ro.hwui.use_vulkan="$(TARGET_USES_VULKAN)">>$@
|
|
||||||
ifdef TARGET_SCREEN_DENSITY
|
|
||||||
$(hide) echo ro.sf.lcd_density="$(TARGET_SCREEN_DENSITY)">>$@
|
|
||||||
endif
|
|
||||||
ifeq ($(AB_OTA_UPDATER),true)
|
|
||||||
$(hide) echo ro.build.ab_update=true >> $@
|
|
||||||
endif
|
|
||||||
$(hide) $(call generate-common-build-props,vendor,$@)
|
$(hide) $(call generate-common-build-props,vendor,$@)
|
||||||
$(hide) echo "#" >> $@; \
|
$(hide) echo "#" >> $@; \
|
||||||
echo "# BOOTIMAGE_BUILD_PROPERTIES" >> $@; \
|
echo "# BOOTIMAGE_BUILD_PROPERTIES" >> $@; \
|
||||||
|
|
Loading…
Reference in New Issue