summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2018-07-31 16:53:01 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-07-31 16:37:12 -0700
commit908fa8b0b5c0b853d80e1a8036c692d53d8a53f0 (patch)
treedd4c4831657df449b89b5ace84a314b4a705096e
parent12ec907a195a9fc59f00a4fba8ffd791bed4742f (diff)
downloadvboot-908fa8b0b5c0b853d80e1a8036c692d53d8a53f0.tar.gz
vbutil_what_keys: support 16 MB firmware images
Previously, vbutil_what_keys assumed any input files of size 8 MB or lower are firmware images. Push that size up to 16 MB to support larger firmware images, such as that of eve's. BUG=None TEST=vbutil_what_keys on eve image.bin Change-Id: Iaf07ad3f419f5e79584391a2b846100e3fae61dc Reviewed-on: https://chromium-review.googlesource.com/1156326 Commit-Ready: Joel Kitching <kitching@chromium.org> Tested-by: Joel Kitching <kitching@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
-rwxr-xr-xutility/vbutil_what_keys2
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/vbutil_what_keys b/utility/vbutil_what_keys
index 2e6d0b0a..b4427a30 100755
--- a/utility/vbutil_what_keys
+++ b/utility/vbutil_what_keys
@@ -98,7 +98,7 @@ dofile() {
file="$1"
size=$(stat -c %s "$file")
- if [ -f "$file" ] && [ "$size" -le 8388608 ]; then
+ if [ -f "$file" ] && [ "$size" -le 16777216 ]; then
echo -e "\nBIOS: $file"
showbios "$file" ""