summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamji Jiyani <ramjiyani@google.com>2023-08-24 06:11:07 +0000
committerRamji Jiyani <ramjiyani@google.com>2024-05-15 20:44:13 +0000
commitfcdf8b5207c22d674639f6d129d9d6e310f5dc1d (patch)
tree735fab3fb8e09438b5d5bc04b0c3af9f478ec9fd
parent8e2cbb1c0cf3d68f851387d36e9f7a41f7e69913 (diff)
downloadbuild-master-kernel-build-2022.tar.gz
build_utils: system_dlkm: AVB hashtree footer with SHA256master-kernel-build-2022
system_dlkm.img is being padded with avb hashtree footer with SHA1 as hashing algorithm by default. Most devices uses SHA256 for the production images in the platform via board specific flag BOARD_AVB_SYSTEM_DLKM_ADD_HASHTREE_FOOTER_ARGS. Add --hash_algorithm sha256 to use SHA256 to make kernel built dev image closer to platform built production image. Bug: 331404372 Bug: 297270321 Test: avbtool info_image --image system_dlkm.img Test: TH Change-Id: I661eb48dc99bdd8ba0c8409793d85a3b52f60558 Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
-rw-r--r--build_utils.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/build_utils.sh b/build_utils.sh
index 9866a34..5d12c54 100644
--- a/build_utils.sh
+++ b/build_utils.sh
@@ -347,6 +347,7 @@ function build_system_dlkm() {
# No need to sign the image as modules are signed
avbtool add_hashtree_footer \
--partition_name system_dlkm \
+ --hash_algorithm sha256 \
--image "${DIST_DIR}/system_dlkm.img"
# Archive system_dlkm_staging_dir