u-boot/test/image
Sean Anderson 5271e359a4 spl: Only support bl_len when we have to
Aligning addresses and sizes causes overhead which is unnecessary when we
are not loading from block devices. Remove bl_len when it is not needed.

For example, on iot2050 we save 144 bytes with this patch (once the rest of
this series is applied):

add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-144 (-144)
Function                                     old     new   delta
spl_load_simple_fit                          920     904     -16
load_simple_fit                              496     444     -52
spl_spi_load_image                           384     308     -76
Total: Before=87431, After=87287, chg -0.16%

We use panic() instead of BUILD_BUG_ON in spl_set_bl_len because we still
need to be able to compile it for things like mmc_load_image_raw_sector,
even if that function will not be used.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-11-16 13:49:14 -05:00
..
Kconfig spl: Only support bl_len when we have to 2023-11-16 13:49:14 -05:00
Makefile test: spl: Add a test for NAND 2023-11-16 12:43:49 -05:00
spl_load.c spl: Only support bl_len when we have to 2023-11-16 13:49:14 -05:00
spl_load_fs.c test: spl: Add a test for the MMC load method 2023-10-17 20:50:52 -04:00
spl_load_nand.c test: spl: Add a test for NAND 2023-11-16 12:43:49 -05:00
spl_load_net.c test: spl: Add a test for the NET load method 2023-10-17 20:50:52 -04:00
spl_load_nor.c test: spl: Add a test for the NOR load method 2023-10-17 20:50:52 -04:00
spl_load_os.c spl: Only support bl_len when we have to 2023-11-16 13:49:14 -05:00
spl_load_spi.c test: spl: Add a test for the SPI load method 2023-10-17 20:50:52 -04:00
test-imagetools.sh test: Update test-imagetools.sh to match new syntax 2019-03-08 11:31:44 -05:00