From baf5c8114b7d432267ae1a5a39300714d5babe9b Mon Sep 17 00:00:00 2001 From: SzuWei Lin Date: Thu, 31 Dec 2020 16:59:27 +0800 Subject: [PATCH] Make ro.product.cpu.abilist.* to be fetched dynamically The patch rename the original ro.product.cpu.abilist* to ro.system.product.cpu.abilist*. The property service will define ro.product.cpu.abilist* by the intersect ABIs of ro.{partition}.product.cpu.abilist*. Bug: 176520383 Test: build aosp_arm64-userdebug and check the system/build.prop Change-Id: I26e404632b28e9f6abd462920e0084ad2022a763 --- core/main.mk | 8 -------- core/sysprop.mk | 5 +++++ tools/buildinfo.sh | 3 --- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/core/main.mk b/core/main.mk index 8857b5d172..9f1487ebb6 100644 --- a/core/main.mk +++ b/core/main.mk @@ -285,9 +285,6 @@ 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) @@ -302,11 +299,6 @@ ADDITIONAL_VENDOR_PROPERTIES += \ ro.build.ab_update=$(AB_OTA_UPDATER) endif -ADDITIONAL_ODM_PROPERTIES += \ - ro.odm.product.cpu.abilist=$(TARGET_CPU_ABI_LIST) \ - ro.odm.product.cpu.abilist32=$(TARGET_CPU_ABI_LIST_32_BIT) \ - ro.odm.product.cpu.abilist64=$(TARGET_CPU_ABI_LIST_64_BIT) - # 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 # is "current", use PLATFORM_VNDK_VERSION. diff --git a/core/sysprop.mk b/core/sysprop.mk index bb19dc5761..502984243f 100644 --- a/core/sysprop.mk +++ b/core/sysprop.mk @@ -47,6 +47,11 @@ define generate-common-build-props echo "ro.product.$(1).model=$(PRODUCT_MODEL)" >> $(2);\ echo "ro.product.$(1).name=$(TARGET_PRODUCT)" >> $(2);\ )\ + $(if $(filter system vendor odm,$(1)),\ + echo "ro.$(1).product.cpu.abilist=$(TARGET_CPU_ABI_LIST) " >> $(2);\ + echo "ro.$(1).product.cpu.abilist32=$(TARGET_CPU_ABI_LIST_32_BIT)" >> $(2);\ + echo "ro.$(1).product.cpu.abilist64=$(TARGET_CPU_ABI_LIST_64_BIT)" >> $(2);\ + )\ echo "ro.$(1).build.date=`$(DATE_FROM_FILE)`" >> $(2);\ echo "ro.$(1).build.date.utc=`$(DATE_FROM_FILE) +%s`" >> $(2);\ echo "ro.$(1).build.fingerprint=$(BUILD_FINGERPRINT_FROM_FILE)" >> $(2);\ diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh index 9bee115484..f27ed8c077 100755 --- a/tools/buildinfo.sh +++ b/tools/buildinfo.sh @@ -35,9 +35,6 @@ echo "ro.product.cpu.abi=$TARGET_CPU_ABI" if [ -n "$TARGET_CPU_ABI2" ] ; then echo "ro.product.cpu.abi2=$TARGET_CPU_ABI2" fi -echo "ro.product.cpu.abilist=$TARGET_CPU_ABI_LIST" -echo "ro.product.cpu.abilist32=$TARGET_CPU_ABI_LIST_32_BIT" -echo "ro.product.cpu.abilist64=$TARGET_CPU_ABI_LIST_64_BIT" if [ -n "$PRODUCT_DEFAULT_LOCALE" ] ; then echo "ro.product.locale=$PRODUCT_DEFAULT_LOCALE"