mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-14 00:26:30 +00:00
flashrom --get-size seems to return a size of 0 in some failure cases. add specific handling of this case so we don't proceed and end up failing with a somewhat misleading message like: Error: Image size doesn't match: stat 524288 bytes, wanted 1048576! BUG=none BRANCH=none TEST=flashrom now fails with "chip size is 0" instead of complaining about wanting a 1048576 byte image. Change-Id: Iab4d0843d86ceec9f0ca482d9e060a33c7a58c7a Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1011823 Commit-Ready: Caveh Jalali <caveh@google.com> Tested-by: Caveh Jalali <caveh@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>