[U-Boot] [PATCH 1/9] spl: sata: add default partition and image name

Baruch Siach baruch at tkos.co.il
Thu May 16 10:03:53 UTC 2019


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 <baruch at tkos.co.il>
---
 common/spl/spl_sata.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c
index adfce1d527f6..b08efc841903 100644
--- a/common/spl/spl_sata.c
+++ b/common/spl/spl_sata.c
@@ -17,6 +17,14 @@
 #include <fat.h>
 #include <image.h>
 
+#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)
 {
-- 
2.20.1



More information about the U-Boot mailing list