Merge "Add PRODUCT_BUILD_VBMETA_IMAGE to control vbmeta generation"
am: 23b46e54ac
Change-Id: Idc47cbfa3c54faa3656d2df156fef55ba5546ebd
This commit is contained in:
commit
bb78e6bfb8
3 changed files with 10 additions and 0 deletions
|
@ -3397,6 +3397,7 @@ define build-vbmetaimage-target
|
|||
$(hide) rm -rf $(AVB_CHAIN_KEY_DIR)
|
||||
endef
|
||||
|
||||
ifdef BUILDING_VBMETA_IMAGE
|
||||
INSTALLED_VBMETAIMAGE_TARGET := $(BUILT_VBMETAIMAGE_TARGET)
|
||||
$(INSTALLED_VBMETAIMAGE_TARGET): PRIVATE_AVB_VBMETA_SIGNING_ARGS := \
|
||||
--algorithm $(BOARD_AVB_ALGORITHM) --key $(BOARD_AVB_KEY_PATH)
|
||||
|
@ -3421,6 +3422,7 @@ $(INSTALLED_VBMETAIMAGE_TARGET): \
|
|||
.PHONY: vbmetaimage-nodeps
|
||||
vbmetaimage-nodeps:
|
||||
$(build-vbmetaimage-target)
|
||||
endif # BUILDING_VBMETA_IMAGE
|
||||
|
||||
endif # BOARD_AVB_ENABLE
|
||||
|
||||
|
|
|
@ -358,6 +358,13 @@ else ifeq ($(PRODUCT_BUILD_USERDATA_IMAGE),true)
|
|||
endif
|
||||
.KATI_READONLY := BUILDING_USERDATA_IMAGE
|
||||
|
||||
# Are we building a vbmeta image
|
||||
BUILDING_VBMETA_IMAGE := true
|
||||
ifeq ($(PRODUCT_BUILD_VBMETA_IMAGE),false)
|
||||
BUILDING_VBMETA_IMAGE :=
|
||||
endif
|
||||
.KATI_READONLY := BUILDING_VBMETA_IMAGE
|
||||
|
||||
###########################################
|
||||
# Now we can substitute with the real value of TARGET_COPY_OUT_VENDOR
|
||||
ifeq ($(TARGET_COPY_OUT_VENDOR),$(_vendor_path_placeholder))
|
||||
|
|
|
@ -362,6 +362,7 @@ _product_single_value_vars += PRODUCT_BUILD_RAMDISK_IMAGE
|
|||
_product_single_value_vars += PRODUCT_BUILD_USERDATA_IMAGE
|
||||
_product_single_value_vars += PRODUCT_BUILD_RECOVERY_IMAGE
|
||||
_product_single_value_vars += PRODUCT_BUILD_BOOT_IMAGE
|
||||
_product_single_value_vars += PRODUCT_BUILD_VBMETA_IMAGE
|
||||
|
||||
_product_list_vars += PRODUCT_UPDATABLE_BOOT_MODULES
|
||||
_product_list_vars += PRODUCT_UPDATABLE_BOOT_LOCATIONS
|
||||
|
|
Loading…
Reference in a new issue