mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
spl, common, serial: build SPL without serial support
This patch enables building SPL without CONFIG_SPL_SERIAL_SUPPORT support. Signed-off-by: Heiko Schocher <hs@denx.de> [trini: Ensure we build arch/arm/imx-common on mx28] Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -830,11 +830,18 @@ int getc(void);
|
||||
int tstc(void);
|
||||
|
||||
/* stdout */
|
||||
#if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_SPL_SERIAL_SUPPORT)
|
||||
#define putc(...) do { } while (0)
|
||||
#define puts(...) do { } while (0)
|
||||
#define printf(...) do { } while (0)
|
||||
#define vprintf(...) do { } while (0)
|
||||
#else
|
||||
void putc(const char c);
|
||||
void puts(const char *s);
|
||||
int printf(const char *fmt, ...)
|
||||
__attribute__ ((format (__printf__, 1, 2)));
|
||||
int vprintf(const char *fmt, va_list args);
|
||||
#endif
|
||||
|
||||
/* stderr */
|
||||
#define eputc(c) fputc(stderr, c)
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#define CONFIG_SPL_LDSCRIPT "arch/$(ARCH)/cpu/u-boot-spl.lds"
|
||||
#define CONFIG_SPL_MAX_SIZE 2048
|
||||
#define CONFIG_SPL_TEXT_BASE 0xA0000000
|
||||
#define CONFIG_SPL_SERIAL_SUPPORT
|
||||
|
||||
/* NAND boot config */
|
||||
#define CONFIG_SPL_NAND_SUPPORT
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#define CONFIG_SPL_MAX_SIZE 2048
|
||||
#define CONFIG_SPL_NAND_SUPPORT
|
||||
#define CONFIG_SPL_LIBGENERIC_SUPPORT
|
||||
#define CONFIG_SPL_SERIAL_SUPPORT
|
||||
|
||||
#define CONFIG_SPL_TEXT_BASE 0x87dc0000
|
||||
#define CONFIG_SYS_TEXT_BASE 0x87e00000
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
#define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds"
|
||||
#define CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||
#define CONFIG_SPL_LIBGENERIC_SUPPORT
|
||||
#define CONFIG_SPL_SERIAL_SUPPORT
|
||||
#define CONFIG_SPL_GPIO_SUPPORT
|
||||
|
||||
/* Memory sizes */
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#define CONFIG_SPL_MAX_SIZE 2048
|
||||
#define CONFIG_SPL_NAND_SUPPORT
|
||||
#define CONFIG_SPL_LIBGENERIC_SUPPORT
|
||||
#define CONFIG_SPL_SERIAL_SUPPORT
|
||||
|
||||
#define CONFIG_SPL_TEXT_BASE 0x810c0000
|
||||
#define CONFIG_SYS_TEXT_BASE 0x81200000
|
||||
|
||||
Reference in New Issue
Block a user