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/pm9g45/init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/arm/boards/pm9g45') diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c index 9bb1f1f5a3..d80abd2a8d 100644 --- a/arch/arm/boards/pm9g45/init.c +++ b/arch/arm/boards/pm9g45/init.c @@ -169,6 +169,9 @@ device_initcall(pm9g45_devices_init); static int pm9g45_console_init(void) { + barebox_set_model("Ronetix PM9G45"); + barebox_set_hostname("pm9g45"); + at91_register_uart(0, 0); return 0; } -- cgit v1.2.3