From 068bed22a6154aec1fe689603b8a8eaa27c0f350 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 15 Aug 2013 09:02:17 +0200 Subject: 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 --- arch/arm/boards/ccxmx51/ccxmx51.c | 3 +++ arch/arm/boards/ccxmx51/env/config-board | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'arch/arm/boards/ccxmx51') diff --git a/arch/arm/boards/ccxmx51/ccxmx51.c b/arch/arm/boards/ccxmx51/ccxmx51.c index 2485e12ac7..15c185a9c6 100644 --- a/arch/arm/boards/ccxmx51/ccxmx51.c +++ b/arch/arm/boards/ccxmx51/ccxmx51.c @@ -475,6 +475,9 @@ static int ccxmx51_console_init(void) { mxc_iomux_v3_setup_multiple_pads(ccxmx51_pads, ARRAY_SIZE(ccxmx51_pads)); + barebox_set_model("Digi ConnectCore i.MX51"); + barebox_set_hostname("ccmx51"); + imx51_add_uart0(); return 0; diff --git a/arch/arm/boards/ccxmx51/env/config-board b/arch/arm/boards/ccxmx51/env/config-board index 26acb4b927..1405344903 100644 --- a/arch/arm/boards/ccxmx51/env/config-board +++ b/arch/arm/boards/ccxmx51/env/config-board @@ -1,7 +1,5 @@ #!/bin/sh -global.hostname=ccmx51 - # Timeout in seconds before the default boot entry is started global.autoboot_timeout=2 -- cgit v1.2.3