diff options
author | Ruben Rodriguez Buchillon <coconutruben@chromium.org> | 2017-12-15 14:48:08 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-12-21 22:50:32 -0800 |
commit | 1c6897da76e9f642fa5505df7cc8b91400fd617d (patch) | |
tree | 841cb6e6e9c47f5971714b44934c8b24dc68fef9 /Makefile | |
parent | e109b1e8d139ba3a9b7aeac2f09157c3b9a70824 (diff) | |
download | vboot-1c6897da76e9f642fa5505df7cc8b91400fd617d.tar.gz |
vboot: introduce get_gbb_flags.sh
introduce get_gbb_flags.sh command to make automatic annotation
of power measurements easier.
Also, fix issue where declaring local variables on same line
as executing a command would obfuscate error code, thus not
triggering set -c and continuing execution.
https://github.com/koalaman/shellcheck/wiki/SC2155
Usage:
$ /usr/share/vboot/bin/get_gbb_flags.sh
[...]
ChromeOS GBB set flags: 0x00000329.
$ /usr/share/vboot/bin/get_gbb_flags.sh -e
[...]
ChromeOS GBB set flags: 0x00000329.
ChromeOS GBB set flags listed:
GBB_FLAG_DEV_SCREEN_SHORT_DELAY
GBB_FLAG_FORCE_DEV_SWITCH_ON
GBB_FLAG_DISABLE_FW_ROLLBACK_CHECK
GBB_FLAG_FAFT_KEY_OVERIDE
GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC
BUG=chromium:760267
BRANCH=none
TEST=manual
emerge-soraka vboot_reference
cros deploy <IP> vboot_reference
(on DUT)
/usr/share/vboot/bin/get_gbb_flags.sh -e
<same output as above>
Change-Id: Idb3b993706c03e7f2831eed2cef12a04b9469fea
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -644,7 +644,9 @@ SIGNING_SCRIPTS_DEV = \ scripts/image_signing/resign_firmwarefd.sh \ scripts/image_signing/make_dev_firmware.sh \ scripts/image_signing/make_dev_ssd.sh \ - scripts/image_signing/set_gbb_flags.sh + scripts/image_signing/gbb_flags_common.sh \ + scripts/image_signing/set_gbb_flags.sh \ + scripts/image_signing/get_gbb_flags.sh # Installed, but not made executable. SIGNING_COMMON = scripts/image_signing/common_minimal.sh |