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/sandbox/board | |
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/sandbox/board')
-rw-r--r-- | arch/sandbox/board/devices.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sandbox/board/devices.c b/arch/sandbox/board/devices.c index 62091ee142..10d6b67cc4 100644 --- a/arch/sandbox/board/devices.c +++ b/arch/sandbox/board/devices.c @@ -21,6 +21,9 @@ static int sandbox_device_init(void) { struct device_d *dev, *tmp; + barebox_set_model("barebox sandbox"); + barebox_set_hostname("barebox"); + list_for_each_entry_safe(dev, tmp, &sandbox_device_list, list) { /* reset the list_head before registering for real */ dev->list.prev = NULL; |