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/nios2/Kconfig | 3 --- arch/nios2/boards/generic/generic.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'arch/nios2') diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index c49f6e9376..116daa9bb9 100644 --- a/arch/nios2/Kconfig +++ b/arch/nios2/Kconfig @@ -9,9 +9,6 @@ config ARCH_TEXT_BASE hex default 0x00000000 -config BOARDINFO - default "Altera Generic Board" if GENERIC - choice prompt "Select your board" diff --git a/arch/nios2/boards/generic/generic.c b/arch/nios2/boards/generic/generic.c index 499d93bdab..61b60b6fd9 100644 --- a/arch/nios2/boards/generic/generic.c +++ b/arch/nios2/boards/generic/generic.c @@ -60,6 +60,9 @@ device_initcall(generic_devices_init); static int altera_console_init(void) { + barebox_set_model("Altera Generic Board"); + barebox_set_hostname("nios2"); + add_generic_device("altera_serial", DEVICE_ID_DYNAMIC, NULL, NIOS_SOPC_UART_BASE, 0x20, IORESOURCE_MEM, NULL); -- cgit v1.2.3