commit | f86742837dccbb59d484cbb486c7bd263fb69f24 | [log] [tgz] |
---|---|---|
author | Gary Bisson <gary.bisson@boundarydevices.com> | Thu Aug 27 10:51:14 2020 +0200 |
committer | Marek Vasut <marex@denx.de> | Tue Sep 01 14:47:43 2020 +0200 |
tree | e3ff28a24447b39d509a142ce126f2da6a39d153 | |
parent | 5953ffac989999a65eb0df354c57a18e1e43f54b [diff] |
fastboot: getvar: fix partition-size return value The size returned by 'getvar partition-size' should be in bytes, not in blocks as fastboot uses that value to generate empty partition when running format [1]. Note that the function was already returning the proper size in bytes for NAND devices (see struct part_info details). [1] https://android.googlesource.com/platform/system/core/+/refs/heads/android10-release/fastboot/fastboot.cpp#1500 Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>