u-boot/drivers/dfu
Ravi Gunasekaran de06083c88 common: dfu: Remove leading space characters
As per [1], dfu_alt_info is mentioned to be as semicolon separated
string of information on each alternate and the parsing logic in
the dfu.c is based on this.

Typically, the dfu_alt_info_* is defined in .h files as preprocessor
macros with 'alt' info separated by semicolon.

But when dfu_alt_info_* is added in the environment files(.env)
the script at "scripts/env2string.awk" converts a newline to space.
Thus adding a space character after semicolon. This results in
incorrect parsing in dfu.c which is based on the information that
'alt' info are only semicolon separated.

One option is to add dfu_alt_info_* variable in .env in single line.
But there is possiblity for it to exceed the line length limit.
So update the parsing logic to remove leading space characters
before adding to the dfu list.

[1]: https://u-boot.readthedocs.io/en/latest/usage/dfu.html

Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-05-31 17:23:01 -04:00
..
dfu.c common: dfu: Remove leading space characters 2023-05-31 17:23:01 -04:00
dfu_alt.c dfu: add dfu_write_by_alt() 2020-10-30 14:20:27 +01:00
dfu_mmc.c blk: Switch over to using uclass IDs 2022-09-16 11:05:16 -04:00
dfu_mtd.c DFU: Check the number of arguments and argument string strictly 2022-02-11 11:29:23 -05:00
dfu_nand.c DFU: Check the number of arguments and argument string strictly 2022-02-11 11:29:23 -05:00
dfu_ram.c DFU: Check the number of arguments and argument string strictly 2022-02-11 11:29:23 -05:00
dfu_sf.c Audit <flash.h> inclusion 2022-08-04 16:18:47 -04:00
dfu_virt.c DFU: Check the number of arguments and argument string strictly 2022-02-11 11:29:23 -05:00
Kconfig dfu: Sort Kconfig entries alphabetically 2021-10-26 15:26:45 -04:00
Makefile dfu: rename dfu_tftp_write() to dfu_write_by_name() 2020-10-30 14:20:27 +01:00