]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
nios2: move command line configuration to Kconfig
authorThomas Chou <thomas@wytron.com.tw>
Wed, 26 Aug 2015 13:24:35 +0000 (21:24 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Thu, 22 Oct 2015 23:28:37 +0000 (07:28 +0800)
This patch moves command line configuration from board header
file to board defconfig in the way of Kconfig. The change passed
savedefconfig.

This fixes warnings such as : "CONFIG_SYS_HUSH_PARSER" redefined,
when "Use hush shell" is selected with menuconfig, etc.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
configs/nios2-generic_defconfig
include/configs/nios2-generic.h

index 573a0847b2efd24cff4caeeb906618e26c7d5614..5f93394249755dd235ac051b04f6cd475f756cb3 100644 (file)
@@ -1,9 +1,12 @@
 CONFIG_NIOS2=y
 CONFIG_TARGET_NIOS2_GENERIC=y
+CONFIG_HUSH_PARSER=y
 # CONFIG_CMD_BOOTD is not set
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_XIMG is not set
 # CONFIG_CMD_FPGA is not set
 # CONFIG_CMD_ITEST is not set
 # CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_DHCP=y
 # CONFIG_CMD_NFS is not set
+CONFIG_CMD_PING=y
index 945cbd4ee7b1c2353046fb0befce3f2764232a35..5bb776859d7c83cf1db7d837aacec553b29fa4a5 100644 (file)
 #define CONFIG_BOOTP_HOSTNAME
 
 /*
- * Command line configuration.
+ * FDT options
  */
-#ifdef CONFIG_CMD_NET
-# define CONFIG_CMD_DHCP
-# define CONFIG_CMD_PING
-#endif
-
 #define CONFIG_OF_LIBFDT
 #define CONFIG_OF_BOARD_SETUP
 #define CONFIG_LMB
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_INIT_SP - 0x20000)
 #define CONFIG_CMDLINE_EDITING
 
-#define CONFIG_SYS_HUSH_PARSER
-
 #endif /* __CONFIG_H */