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/friendlyarm-tiny210/tiny210.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/arm/boards/friendlyarm-tiny210') diff --git a/arch/arm/boards/friendlyarm-tiny210/tiny210.c b/arch/arm/boards/friendlyarm-tiny210/tiny210.c index fb144f554f..890e390f8f 100644 --- a/arch/arm/boards/friendlyarm-tiny210/tiny210.c +++ b/arch/arm/boards/friendlyarm-tiny210/tiny210.c @@ -86,6 +86,9 @@ static int tiny210_console_init(void) s3c_gpio_mode(GPA02_NCTS0 | ENABLE_PU); s3c_gpio_mode(GPA03_NRTS0); + barebox_set_model("Friendlyarm tiny210"); + barebox_set_hostname("tiny210"); + add_generic_device("s3c_serial", DEVICE_ID_DYNAMIC, NULL, S3C_UART1_BASE, S3C_UART1_SIZE, IORESOURCE_MEM, NULL); -- cgit v1.2.3