spl: sata: don't force FS_FAT support
Allow the code to build when FS_FAT is not enabled, and thus spl_load_image_fat() is not provided. A subsequent patch should add alternative raw access U-Boot main image load method. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
ab2d415e9b
commit
760ef309cb
@ -53,9 +53,13 @@ static int spl_sata_load_image(struct spl_image_info *spl_image,
|
|||||||
CONFIG_SYS_SATA_FAT_BOOT_PARTITION))
|
CONFIG_SYS_SATA_FAT_BOOT_PARTITION))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
err = spl_load_image_fat(spl_image, stor_dev,
|
err = -ENOSYS;
|
||||||
|
|
||||||
|
if (IS_ENABLED(CONFIG_SPL_FS_FAT)) {
|
||||||
|
err = spl_load_image_fat(spl_image, stor_dev,
|
||||||
CONFIG_SYS_SATA_FAT_BOOT_PARTITION,
|
CONFIG_SYS_SATA_FAT_BOOT_PARTITION,
|
||||||
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
|
CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (err) {
|
if (err) {
|
||||||
puts("Error loading sata device\n");
|
puts("Error loading sata device\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user