From 97064c53ff24d458b7de7f654605b7a4c5bd6ee8 Mon Sep 17 00:00:00 2001 From: SzuWei Lin Date: Wed, 20 Apr 2022 07:13:28 +0000 Subject: [PATCH] Add boot AVB key setting to GSI Signing tool assumes GSI targets has boot.img and get error without these settings. Bug: 229814765 Change-Id: I1e8e7f6375e396e1c2feb858b97e7d27dc5a2dec --- target/board/BoardConfigGsiCommon.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/board/BoardConfigGsiCommon.mk b/target/board/BoardConfigGsiCommon.mk index 45cd5157f8..53714a8594 100644 --- a/target/board/BoardConfigGsiCommon.mk +++ b/target/board/BoardConfigGsiCommon.mk @@ -38,6 +38,12 @@ BOARD_USES_METADATA_PARTITION := true # updating the last seen rollback index in the tamper-evident storage. BOARD_AVB_ROLLBACK_INDEX := 0 +# The chained vbmeta settings for boot images. +BOARD_AVB_BOOT_KEY_PATH := external/avb/test/data/testkey_rsa4096.pem +BOARD_AVB_BOOT_ALGORITHM := SHA256_RSA4096 +BOARD_AVB_BOOT_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) +BOARD_AVB_BOOT_ROLLBACK_INDEX_LOCATION := 2 + # Enable AVB chained partition for system. # https://android.googlesource.com/platform/external/avb/+/master/README.md BOARD_AVB_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem