From: Baruch Siach Date: Thu, 16 May 2019 10:03:53 +0000 (+0300) Subject: spl: sata: add default partition and image name X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a4c61ffde3ae4f1b7228d2ecd40fbb8f3703d76c;p=u-boot.git spl: sata: add default partition and image name Add sensible defaults for the FAT partition selection and the main U-Boot image file name. This allows spl_sata to build when the board headers does not select them explicitly. Signed-off-by: Baruch Siach Signed-off-by: Stefan Roese --- diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c index adfce1d527..b08efc8419 100644 --- a/common/spl/spl_sata.c +++ b/common/spl/spl_sata.c @@ -17,6 +17,14 @@ #include #include +#ifndef CONFIG_SYS_SATA_FAT_BOOT_PARTITION +#define CONFIG_SYS_SATA_FAT_BOOT_PARTITION 1 +#endif + +#ifndef CONFIG_SPL_FS_LOAD_PAYLOAD_NAME +#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img" +#endif + static int spl_sata_load_image(struct spl_image_info *spl_image, struct spl_boot_device *bootdev) {