[PATCH v4 13/14] ARM: at91: skov-arm9cpu: configure more appropriate hostname
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Feb 20 01:30:59 PST 2024
The default logic would set the hostname to arm9-cpu, which isn't very
descriptive. Set our own hostname that contains the vendor name.
Reviewed-by: Sam Ravnborg <sam at ravnborg.org>
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
arch/arm/boards/skov-arm9cpu/board.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boards/skov-arm9cpu/board.c b/arch/arm/boards/skov-arm9cpu/board.c
index 1d0ecb247d8e..db6813c0e726 100644
--- a/arch/arm/boards/skov-arm9cpu/board.c
+++ b/arch/arm/boards/skov-arm9cpu/board.c
@@ -56,6 +56,8 @@ static int mem;
*/
static int skov_arm9_probe(struct device *dev)
{
+ barebox_set_hostname("skov-arm9cpu");
+
add_generic_device("at91sam9-smc", 0, NULL, AT91SAM9263_BASE_SMC0, 0x200,
IORESOURCE_MEM, NULL);
add_generic_device("at91sam9-smc", 1, NULL, AT91SAM9263_BASE_SMC1, 0x200,
--
2.39.2
More information about the barebox
mailing list