aboutsummaryrefslogtreecommitdiff
path: root/common/spl
diff options
context:
space:
mode:
authorBaruch Siach2019-05-16 13:03:55 +0300
committerStefan Roese2019-07-11 07:01:18 +0200
commit760ef309cb63a3e22ebeecb9080f1034be1560f5 (patch)
tree0e7da7eb9e8acd8d25bce60faf8668ca674622e2 /common/spl
parentab2d415e9bbab64431e6475fbb5a5c62303f8163 (diff)
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>
Diffstat (limited to 'common/spl')
-rw-r--r--common/spl/spl_sata.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c
index 2fb46108a51..f0af9f38d19 100644
--- a/common/spl/spl_sata.c
+++ b/common/spl/spl_sata.c
@@ -53,9 +53,13 @@ static int spl_sata_load_image(struct spl_image_info *spl_image,
CONFIG_SYS_SATA_FAT_BOOT_PARTITION))
#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_SPL_FS_LOAD_PAYLOAD_NAME);
+ CONFIG_SPL_FS_LOAD_PAYLOAD_NAME);
+ }
}
if (err) {
puts("Error loading sata device\n");