summaryrefslogtreecommitdiffstats
path: root/common/command.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-08-01 11:47:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-08-01 11:47:10 +0200
commitaca52174a9c43aabdf5b5874c7902181a047f61a (patch)
tree9d17e41af46cddcaeff59e42dbe3f22b1248cccc /common/command.c
parentc10e20846ddbd0f6f062fb5faa66a9570fbcedc7 (diff)
downloadbarebox-aca52174a9c43aabdf5b5874c7902181a047f61a.tar.gz
barebox-aca52174a9c43aabdf5b5874c7902181a047f61a.tar.xz
console: add a simple console for saving space
Add a simple console layer which is not able to handle multiple consoles for those who don't need it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/command.c b/common/command.c
index d1b19c076f..c86b0058f5 100644
--- a/common/command.c
+++ b/common/command.c
@@ -33,13 +33,16 @@
#include <list.h>
#include <init.h>
#include <complete.h>
+#include <linux/utsrelease.h>
+
+const char version_string[] =
+ "U-Boot " UTS_RELEASE " (" __DATE__ " - " __TIME__ ")";
LIST_HEAD(command_list);
EXPORT_SYMBOL(command_list);
static int do_version (cmd_tbl_t *cmdtp, int argc, char *argv[])
{
- extern char version_string[];
printf ("\n%s\n", version_string);
return 0;
}