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/eukrea_cpuimx27/eukrea_cpuimx27.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/arm/boards/eukrea_cpuimx27/eukrea_cpuimx27.c') diff --git a/arch/arm/boards/eukrea_cpuimx27/eukrea_cpuimx27.c b/arch/arm/boards/eukrea_cpuimx27/eukrea_cpuimx27.c index 75f32395ea..7f56c67643 100644 --- a/arch/arm/boards/eukrea_cpuimx27/eukrea_cpuimx27.c +++ b/arch/arm/boards/eukrea_cpuimx27/eukrea_cpuimx27.c @@ -210,6 +210,9 @@ static int eukrea_cpuimx27_console_init(void) { uint32_t val; + barebox_set_model("Eukrea CPUIMX27"); + barebox_set_hostname("eukrea-cpuimx27"); + #ifdef CONFIG_DRIVER_SERIAL_IMX imx27_add_uart0(); #endif -- cgit v1.2.3