[U-Boot] [PATCH] distro: Disable iso partition format for SPL

Alexander Graf agraf at suse.de
Mon Apr 25 14:55:30 CEST 2016


When building an SPL binary, chances are quite slim that we need an
iso partition label. However, there were reports of us exceeding our
SPL memory limit with iso enabled.

So for now, let's disable the ISO partition format code when in the
SPL build.

Reported-by: Heiko Schocher <hs at denx.de>
Signed-off-by: Alexander Graf <agraf at suse.de>
---
 include/config_distro_defaults.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/config_distro_defaults.h b/include/config_distro_defaults.h
index 5cc2af8..6a72f02 100644
--- a/include/config_distro_defaults.h
+++ b/include/config_distro_defaults.h
@@ -62,9 +62,12 @@
 #define CONFIG_MENU
 #define CONFIG_DOS_PARTITION
 #define CONFIG_EFI_PARTITION
-#define CONFIG_ISO_PARTITION
 #define CONFIG_SUPPORT_RAW_INITRD
 #define CONFIG_SYS_HUSH_PARSER
 #define CONFIG_ENV_VARS_UBOOT_CONFIG
 
+#ifndef CONFIG_SPL_BUILD
+#define CONFIG_ISO_PARTITION
+#endif
+
 #endif	/* _CONFIG_CMD_DISTRO_DEFAULTS_H */
-- 
1.8.5.6



More information about the U-Boot mailing list