From cb1d31c43b7bf66ded40879bd1daf42234215db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Cl=C3=A9ment=20Tosi?= Date: Wed, 7 Sep 2022 10:36:54 +0100 Subject: [PATCH] core: Drop support for BOARD_PREBUILT_PVMFWIMAGE Remove the variable as it was only used when the prebuilt was device-specific but pvmfw is now part of AOSP. Bug: 237371962 Test: m $(realpath --relative-to=. $ANDROID_PRODUCT_OUT/pvmfw.img) Change-Id: I5b4c1ffd563e3dccf22ee485cb12866355f5bfe0 --- core/Makefile | 8 +------- core/board_config.mk | 6 ------ core/config.mk | 1 + 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/core/Makefile b/core/Makefile index a69b1e78e0..47d06ccd0e 100644 --- a/core/Makefile +++ b/core/Makefile @@ -3909,15 +3909,9 @@ endif # BOARD_PREBUILT_DTBOIMAGE ifeq ($(BOARD_USES_PVMFWIMAGE),true) INSTALLED_PVMFWIMAGE_TARGET := $(PRODUCT_OUT)/pvmfw.img INSTALLED_PVMFW_EMBEDDED_AVBKEY_TARGET := $(PRODUCT_OUT)/pvmfw_embedded.avbpubkey -INTERNAL_PREBUILT_PVMFWIMAGE := packages/modules/Virtualization/pvmfw/pvmfw.img +PREBUILT_PVMFWIMAGE_TARGET := packages/modules/Virtualization/pvmfw/pvmfw.img INTERNAL_PVMFW_EMBEDDED_AVBKEY := external/avb/test/data/testkey_rsa4096_pub.bin -ifdef BOARD_PREBUILT_PVMFWIMAGE -PREBUILT_PVMFWIMAGE_TARGET := $(BOARD_PREBUILT_PVMFWIMAGE) -else -PREBUILT_PVMFWIMAGE_TARGET := $(INTERNAL_PREBUILT_PVMFWIMAGE) -endif - ifeq ($(BOARD_AVB_ENABLE),true) $(INSTALLED_PVMFWIMAGE_TARGET): $(PREBUILT_PVMFWIMAGE_TARGET) $(AVBTOOL) $(BOARD_AVB_PVMFW_KEY_PATH) cp $< $@ diff --git a/core/board_config.mk b/core/board_config.mk index 192e96b5a5..0fda480eab 100644 --- a/core/board_config.mk +++ b/core/board_config.mk @@ -931,9 +931,6 @@ endif .KATI_READONLY := BUILDING_SYSTEM_DLKM_IMAGE BOARD_USES_PVMFWIMAGE := -ifdef BOARD_PREBUILT_PVMFWIMAGE - BOARD_USES_PVMFWIMAGE := true -endif ifeq ($(PRODUCT_BUILD_PVMFW_IMAGE),true) BOARD_USES_PVMFWIMAGE := true endif @@ -943,9 +940,6 @@ BUILDING_PVMFW_IMAGE := ifeq ($(PRODUCT_BUILD_PVMFW_IMAGE),true) BUILDING_PVMFW_IMAGE := true endif -ifdef BOARD_PREBUILT_PVMFWIMAGE - BUILDING_PVMFW_IMAGE := -endif .KATI_READONLY := BUILDING_PVMFW_IMAGE ########################################### diff --git a/core/config.mk b/core/config.mk index 51e140d6b0..01f06f33bd 100644 --- a/core/config.mk +++ b/core/config.mk @@ -165,6 +165,7 @@ $(KATI_obsolete_var PRODUCT_SUPPORTS_VERITY,VB 1.0 and related variables are no $(KATI_obsolete_var PRODUCT_SUPPORTS_VERITY_FEC,VB 1.0 and related variables are no longer supported) $(KATI_obsolete_var PRODUCT_SUPPORTS_BOOT_SIGNER,VB 1.0 and related variables are no longer supported) $(KATI_obsolete_var PRODUCT_VERITY_SIGNING_KEY,VB 1.0 and related variables are no longer supported) +$(KATI_obsolete_var BOARD_PREBUILT_PVMFWIMAGE,pvmfw.bin is now built in AOSP and custom versions are no longer supported) # Used to force goals to build. Only use for conditionally defined goals. .PHONY: FORCE FORCE: