Skip to content
Snippets Groups Projects
Commit ca1d80c0 authored by Thomas Chou's avatar Thomas Chou
Browse files

nios2: move command line configuration to Kconfig


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: default avatarThomas Chou <thomas@wytron.com.tw>
parent 9f13b6d1
No related branches found
No related tags found
No related merge requests found
CONFIG_NIOS2=y CONFIG_NIOS2=y
CONFIG_TARGET_NIOS2_GENERIC=y CONFIG_TARGET_NIOS2_GENERIC=y
CONFIG_HUSH_PARSER=y
# CONFIG_CMD_BOOTD is not set # CONFIG_CMD_BOOTD is not set
# CONFIG_CMD_IMLS is not set # CONFIG_CMD_IMLS is not set
# CONFIG_CMD_XIMG is not set # CONFIG_CMD_XIMG is not set
# CONFIG_CMD_FPGA is not set # CONFIG_CMD_FPGA is not set
# CONFIG_CMD_ITEST is not set # CONFIG_CMD_ITEST is not set
# CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_DHCP=y
# CONFIG_CMD_NFS is not set # CONFIG_CMD_NFS is not set
CONFIG_CMD_PING=y
...@@ -73,13 +73,8 @@ ...@@ -73,13 +73,8 @@
#define CONFIG_BOOTP_HOSTNAME #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_LIBFDT
#define CONFIG_OF_BOARD_SETUP #define CONFIG_OF_BOARD_SETUP
#define CONFIG_LMB #define CONFIG_LMB
...@@ -130,6 +125,4 @@ ...@@ -130,6 +125,4 @@
#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_INIT_SP - 0x20000) #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_INIT_SP - 0x20000)
#define CONFIG_CMDLINE_EDITING #define CONFIG_CMDLINE_EDITING
#define CONFIG_SYS_HUSH_PARSER
#endif /* __CONFIG_H */ #endif /* __CONFIG_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment