diff options
| author | 2016-09-30 17:39:22 +0000 | |
|---|---|---|
| committer | 2016-09-30 17:39:22 +0000 | |
| commit | 0a5b59e78b66d9afb28c491ffa50746b31ec749c (patch) | |
| tree | 97ca78a630e05d06c3144386572544413573e17c | |
| parent | 1c0b5eaf8393bc08156e04a6372cf577498c9dd4 (diff) | |
| parent | b31b94e159ee6074b359c334166d6fc6084ea69c (diff) | |
Merge "releasetools: Fix the reference to OPTIONS.info_dict."
| -rw-r--r-- | tools/releasetools/common.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index 564cd1788f..fad6a5ec28 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -514,13 +514,13 @@ def _BuildBootableImage(sourcedir, fs_config_file, info_dict=None, img_keyblock.close() # AVB: if enabled, calculate and add hash to boot.img. - if OPTIONS.info_dict.get("board_avb_enable", None) == "true": + if info_dict.get("board_avb_enable", None) == "true": avbtool = os.getenv('AVBTOOL') or "avbtool" - part_size = OPTIONS.info_dict.get("boot_size", None) + part_size = info_dict.get("boot_size", None) cmd = [avbtool, "add_hash_footer", "--image", img.name, "--partition_size", str(part_size), "--partition_name", "boot"] AppendAVBSigningArgs(cmd) - args = OPTIONS.info_dict.get("board_avb_boot_add_hash_footer_args", None) + args = info_dict.get("board_avb_boot_add_hash_footer_args", None) if args and args.strip(): cmd.extend(shlex.split(args)) p = Run(cmd, stdout=subprocess.PIPE) |