]> git.baikalelectronics.ru Git - uboot.git/commit
spl: sata: Rework the loading case it not use IS_ENABLED(...)
authorTom Rini <trini@konsulko.com>
Tue, 10 Jan 2023 16:19:35 +0000 (11:19 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 20 Jan 2023 17:27:06 +0000 (12:27 -0500)
commit4e812b06bfd06ea1a32bf9f51d58d915a9af9bc1
treee31700a17dd428ba398443979ee67dfb3a21df89
parentf25e634822dcfaa13850e0265ad96bb25ab72abb
spl: sata: Rework the loading case it not use IS_ENABLED(...)

In this case, using IS_ENABLED(...) to attempt to load the image results
in harder to read and less useful code, along with having to define a
CONFIG value that would be unused. To maintain the current albeit
slightly odd behavior, maintain that if we have both SPL_FS_FAT and
SPL_SATA_RAW_U_BOOT_USE_SECTOR enabled, we use SPL_FS_FAT for the load.

Signed-off-by: Tom Rini <trini@konsulko.com>
common/spl/spl_sata.c