summaryrefslogtreecommitdiffstats
path: root/include/configs/socfpga_common.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-12-05 20:08:21 +0100
committerMarek Vasut <marex@denx.de>2015-12-20 03:36:51 +0100
commitea0823465157decd81bc06c3b6dfe8f604ee4471 (patch)
treee3107d43141d87df8334c5c37c0a9b4f1ef0cab2 /include/configs/socfpga_common.h
parenta5cad67735a1f098c22ec30941f1bd0422459069 (diff)
downloadblackbird-obmc-uboot-ea0823465157decd81bc06c3b6dfe8f604ee4471.tar.gz
blackbird-obmc-uboot-ea0823465157decd81bc06c3b6dfe8f604ee4471.zip
arm: socfpga: Switch CONFIG_HOSTNAME to CONFIG_SYS_BOARD
We already have the CONFIG_SYS_BOARD variable, which defines the name of the board. The value in CONFIG_HOSTNAME is exactly the same and is thus just a duplicity, so switch it to reuse CONFIG_SYS_BOARD . Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <clsee@altera.com> Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Diffstat (limited to 'include/configs/socfpga_common.h')
-rw-r--r--include/configs/socfpga_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index 4b2d246db4..f74c758f5a 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -69,6 +69,10 @@
#define CONFIG_CMDLINE_EDITING /* Command history etc */
#define CONFIG_SYS_HUSH_PARSER
+#ifndef CONFIG_SYS_HOSTNAME
+#define CONFIG_SYS_HOSTNAME CONFIG_SYS_BOARD
+#endif
+
/*
* Cache
*/
OpenPOWER on IntegriCloud