u-boot/drivers/fastboot
Gary Bisson 293a6dfeb9 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>
2020-09-01 14:47:43 +02:00
..
fb_bcb_impl.c fastboot: Add default fastboot_set_reboot_flag implementation 2020-09-01 14:47:43 +02:00
fb_command.c fastboot: Add support for 'reboot fastboot' command 2020-09-01 14:47:43 +02:00
fb_common.c fastboot: Extend fastboot_set_reboot_flag with reboot reason 2020-09-01 14:47:43 +02:00
fb_getvar.c fastboot: getvar: fix partition-size return value 2020-09-01 14:47:43 +02:00
fb_mmc.c fastboot: Support defining raw partitions without a partition table 2020-09-01 14:47:43 +02:00
fb_nand.c common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
Kconfig fastboot: Add default fastboot_set_reboot_flag implementation 2020-09-01 14:47:43 +02:00
Makefile fastboot: Add default fastboot_set_reboot_flag implementation 2020-09-01 14:47:43 +02:00