mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: cm-fx6: set proper hostname
@ 2016-01-21 11:22 Philipp Zabel
  2016-01-22  7:40 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Zabel @ 2016-01-21 11:22 UTC (permalink / raw)
  To: barebox

Set the hostname to "utilite" or "cm-fx6".

Signed-off-by: Philipp Zabel <p.zabel@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: cm-fx6: set proper hostname
  2016-01-21 11:22 [PATCH] ARM: cm-fx6: set proper hostname Philipp Zabel
@ 2016-01-22  7:40 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2016-01-22  7:40 UTC (permalink / raw)
  To: Philipp Zabel; +Cc: barebox

On Thu, Jan 21, 2016 at 12:22:39PM +0100, Philipp Zabel wrote:
> Set the hostname to "utilite" or "cm-fx6".
> 
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
>  arch/arm/boards/cm-fx6/board.c | 8 ++++++++
>  1 file changed, 8 insertions(+)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-22  7:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-21 11:22 [PATCH] ARM: cm-fx6: set proper hostname Philipp Zabel
2016-01-22  7:40 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox