[PATCH] ARM: cm-fx6: set proper hostname
Philipp Zabel
p.zabel at pengutronix.de
Thu Jan 21 03:22:39 PST 2016
Set the hostname to "utilite" or "cm-fx6".
Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
---
arch/arm/boards/cm-fx6/board.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boards/cm-fx6/board.c b/arch/arm/boards/cm-fx6/board.c
index edef18f..f438062 100644
--- a/arch/arm/boards/cm-fx6/board.c
+++ b/arch/arm/boards/cm-fx6/board.c
@@ -84,9 +84,17 @@ late_initcall(cm_fx6_eeprom_init);
static int cm_fx6_devices_init(void)
{
+ const char *hostname;
+
if (!of_machine_is_compatible("compulab,cm-fx6"))
return 0;
+ if (of_machine_is_compatible("compulab,utilite"))
+ hostname = "utilite";
+ else
+ hostname = "cm-fx6";
+ barebox_set_hostname(hostname);
+
if (IS_ENABLED(CONFIG_PHYLIB))
phy_register_fixup_for_uid(PHY_ID_AR8031, 0xffffffff, phy_fixup);
--
2.7.0.rc3
More information about the barebox
mailing list