summaryrefslogtreecommitdiff
path: root/tools/releasetools/validate_target_files.py
diff options
context:
space:
mode:
author Yi-Yo Chiang <yochiang@google.com> 2022-10-12 18:29:14 +0800
committer Yi-Yo Chiang <yochiang@google.com> 2023-12-01 09:03:08 +0000
commit18650c7be0e36f898aaee3d664d21b7489a46ab3 (patch)
treeb0e40e3833b99db9ae6e1e7d1ad995daf292d842 /tools/releasetools/validate_target_files.py
parente5bfa38457302bbdea30e45d68e0043b6d512281 (diff)
releasetools: Remove deprecated BOARD_BUILD_SYSTEM_ROOT_IMAGE
This variable is always false or empty now, so clean up remaining references to the variable. Bug: 241346584 Test: Presubmit Change-Id: I5dd3d356729d0bd2639633580bbb85f8b03582cf
Diffstat (limited to 'tools/releasetools/validate_target_files.py')
-rwxr-xr-xtools/releasetools/validate_target_files.py21
1 files changed, 9 insertions, 12 deletions
diff --git a/tools/releasetools/validate_target_files.py b/tools/releasetools/validate_target_files.py
index 82b31076f7..8da4fa2e8a 100755
--- a/tools/releasetools/validate_target_files.py
+++ b/tools/releasetools/validate_target_files.py
@@ -361,18 +361,15 @@ def ValidateVerifiedBootImages(input_tmp, info_dict, options):
"Mismatching mincrypt verity key files"
logging.info('Verified the content of /verity_key')
- # For devices with a separate ramdisk (i.e. non-system-as-root), there must
- # be a copy in ramdisk.
- if info_dict.get("system_root_image") != "true":
- verity_key_ramdisk = os.path.join(
- input_tmp, 'BOOT', 'RAMDISK', 'verity_key')
- assert os.path.exists(
- verity_key_ramdisk), 'Missing verity_key in ramdisk'
-
- assert filecmp.cmp(
- verity_key_mincrypt, verity_key_ramdisk, shallow=False), \
- 'Mismatching verity_key files in root and ramdisk'
- logging.info('Verified the content of /verity_key in ramdisk')
+ verity_key_ramdisk = os.path.join(
+ input_tmp, 'BOOT', 'RAMDISK', 'verity_key')
+ assert os.path.exists(
+ verity_key_ramdisk), 'Missing verity_key in ramdisk'
+
+ assert filecmp.cmp(
+ verity_key_mincrypt, verity_key_ramdisk, shallow=False), \
+ 'Mismatching verity_key files in root and ramdisk'
+ logging.info('Verified the content of /verity_key in ramdisk')
# Then verify the verity signed system/vendor/product images, against the
# verity pubkey in mincrypt format.