mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
Use separate options for TPL support
At present TPL uses the same options as SPL support. In a few cases the board config enables or disables the SPL options depending on whether CONFIG_TPL_BUILD is defined. With the move to Kconfig, options are determined for the whole build and (without a hack like an #undef in a header file) cannot be controlled in this way. Create new TPL options for these and update users. This will allow Kconfig conversion to proceed for these boards. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
218d0d5b9b
commit
76f1f38816
9 changed files with 80 additions and 40 deletions
|
@ -866,17 +866,20 @@ 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
|
||||
#if !defined(CONFIG_SPL_BUILD) || \
|
||||
(defined(CONFIG_TPL_BUILD) && defined(CONFIG_TPL_SERIAL_SUPPORT)) || \
|
||||
(defined(CONFIG_SPL_BUILD) && !defined(CONFIG_TPL_BUILD) && \
|
||||
defined(CONFIG_SPL_SERIAL_SUPPORT))
|
||||
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);
|
||||
#else
|
||||
#define putc(...) do { } while (0)
|
||||
#define puts(...) do { } while (0)
|
||||
#define printf(...) do { } while (0)
|
||||
#define vprintf(...) do { } while (0)
|
||||
#endif
|
||||
|
||||
/* stderr */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue