9
0
Fork 0

banner: add config to disable it

this will allow to save 144 bytes

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2012-01-08 14:10:07 +08:00
parent 21d0fac138
commit b7498fdb82
4 changed files with 10 additions and 1 deletions

View File

@ -420,6 +420,7 @@ config CMD_REGINFO
config CMD_VERSION
tristate
default y
depends on BANNER
prompt "version"
config CMD_HELP

View File

@ -74,6 +74,10 @@ config LOCALVERSION_AUTO
config BOARDINFO
string
config BANNER
bool "display banner"
default y
config ENVIRONMENT_VARIABLES
bool "environment variables support"

View File

@ -17,7 +17,7 @@ obj-$(CONFIG_MALLOC_TLSF) += tlsf_malloc.o
obj-$(CONFIG_MALLOC_TLSF) += tlsf.o
obj-$(CONFIG_MALLOC_DUMMY) += dummy_malloc.o
obj-y += clock.o
obj-y += version.o
obj-$(CONFIG_BANNER) += version.o
obj-$(CONFIG_COMMAND_SUPPORT) += command.o
obj-$(CONFIG_CONSOLE_FULL) += console.o
obj-$(CONFIG_CONSOLE_SIMPLE) += console_simple.o

View File

@ -198,7 +198,11 @@ int run_shell(void);
int memory_display(char *addr, ulong offs, ulong nbytes, int size);
extern const char version_string[];
#ifdef CONFIG_BANNER
void barebox_banner(void);
#else
static inline void barebox_banner(void) {}
#endif
#define IOMEM(addr) ((void __force __iomem *)(addr))