diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-15 09:02:17 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-16 08:40:55 +0200 |
commit | 068bed22a6154aec1fe689603b8a8eaa27c0f350 (patch) | |
tree | 5cebcbbbcd486ee49552253d27d079b7f6703fd4 /arch/arm/boards/clep7212 | |
parent | 774580c2bde4c8b126eed0a80d00cb22cbfb3193 (diff) | |
download | barebox-068bed22a6154aec1fe689603b8a8eaa27c0f350.tar.gz barebox-068bed22a6154aec1fe689603b8a8eaa27c0f350.tar.xz |
Set model and hostname at boardlevel
With multiboard support the compiletime generated BOARDINFO string
gets more and more meaningless. This removes it from Kconfig and
replaces it with a variable that can be set at boardlevel.
Also many boards have a standard setting for the hostname in the
environment. This patch also moves the standard to C code by calling
barebox_set_hostname().
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/clep7212')
-rw-r--r-- | arch/arm/boards/clep7212/clep7212.c | 3 | ||||
-rw-r--r-- | arch/arm/boards/clep7212/env/config-board | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/boards/clep7212/clep7212.c b/arch/arm/boards/clep7212/clep7212.c index ec9a9cbdc7..0ed059501e 100644 --- a/arch/arm/boards/clep7212/clep7212.c +++ b/arch/arm/boards/clep7212/clep7212.c @@ -51,6 +51,9 @@ device_initcall(clps711x_devices_init); static int clps711x_console_init(void) { + barebox_set_model("Cirrus Logic CLEP7212"); + barebox_set_hostname("clep7212"); + clps711x_add_uart(0); return 0; diff --git a/arch/arm/boards/clep7212/env/config-board b/arch/arm/boards/clep7212/env/config-board index 3cf699aab8..f7a8f60e25 100644 --- a/arch/arm/boards/clep7212/env/config-board +++ b/arch/arm/boards/clep7212/env/config-board @@ -1,7 +1,5 @@ #!/bin/sh -global.hostname=clps711x - # Timeout in seconds before the default boot entry is started global.autoboot_timeout=2 |