diff options
author | Bill Richardson <wfrichar@chromium.org> | 2012-02-03 15:00:03 -0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-02-06 16:31:48 -0800 |
commit | 14d982a2beb1678ddf36e888275c665f8108480f (patch) | |
tree | 1ab7b4234288847c9e6f96235400f55862bc6659 | |
parent | 1e063b09021164b07498a56fc10e69adbb7536d4 (diff) | |
download | vboot-14d982a2beb1678ddf36e888275c665f8108480f.tar.gz |
vbutil_what_keys - any file 8M or less is a BIOS image
BUG=chrome-os-partner:7878
TEST=none
Well, you could test it like so:
flashrom -r /dev/null -i GBB:/tmp/GBB.bin
vbutil_what_keys GBB.bin
except that the current ChromeOS image doesn't include vbutil_what_keys. It
probably should, but that's a different CL.
Change-Id: I1e5b6cf30a81a46cb5c8c5d9b10f351dafa9ca87
Reviewed-on: https://gerrit.chromium.org/gerrit/15359
Commit-Ready: Bill Richardson <wfrichar@chromium.org>
Tested-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rwxr-xr-x | utility/vbutil_what_keys | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/vbutil_what_keys b/utility/vbutil_what_keys index dc595c7e..abc33d03 100755 --- a/utility/vbutil_what_keys +++ b/utility/vbutil_what_keys @@ -85,7 +85,7 @@ dofile() { file="$1" size=$(stat -c %s "$file") - if [ "$size" -eq 4194304 ] || [ "$size" -eq 8388608 ]; then + if [ "$size" -le 8388608 ]; then echo "BIOS: $file" hwid=$(gbb_utility --hwid "$file" | sed -e 's/^.*: *//') || continue; |