Commit 5e69947f51d72a2f75f2132c2cc8bae3f0ebcdef
Committed by
Luka Perkov
1 parent
82a19de3d2
Exists in
v2017.01-smarct4x
and in
30 other branches
arm: kirkwood: Move configuration of some commands to _defconfig files
For Marvell plugs, move the configuration of DHCP, NAND/SF, PING and USB commands, and HUSH_PARSER into the _defconfig file, rather than the include/configs/*plug.h files. This avoids compiler warnings of duplicate definitions if the option is selected in the .config, but also defined in the include/configs/*plug.h file. Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Showing 6 changed files with 15 additions and 22 deletions Side-by-side Diff
configs/dreamplug_defconfig
configs/guruplug_defconfig
configs/sheevaplug_defconfig
include/configs/dreamplug.h
... | ... | @@ -46,16 +46,12 @@ |
46 | 46 | */ |
47 | 47 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ |
48 | 48 | #define CONFIG_CMD_DATE |
49 | -#define CONFIG_CMD_DHCP | |
50 | 49 | #define CONFIG_CMD_ENV |
51 | 50 | #define CONFIG_CMD_EXT2 |
52 | 51 | #define CONFIG_CMD_EXT4 |
53 | 52 | #define CONFIG_CMD_FAT |
54 | 53 | #define CONFIG_CMD_IDE |
55 | 54 | #define CONFIG_CMD_MII |
56 | -#define CONFIG_CMD_SF | |
57 | -#define CONFIG_CMD_PING | |
58 | -#define CONFIG_CMD_USB | |
59 | 55 | |
60 | 56 | /* |
61 | 57 | * mv-common.h should be defined after CMD configs since it used them |
include/configs/guruplug.h
... | ... | @@ -40,23 +40,14 @@ |
40 | 40 | #define CONFIG_OF_LIBFDT |
41 | 41 | |
42 | 42 | /* |
43 | - * Miscellaneous configurable options | |
44 | - */ | |
45 | -#define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ | |
46 | - | |
47 | -/* | |
48 | 43 | * Commands configuration |
49 | 44 | */ |
50 | 45 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ |
51 | 46 | #define CONFIG_CMD_BOOTZ |
52 | 47 | #define CONFIG_CMD_DATE |
53 | -#define CONFIG_CMD_DHCP | |
54 | 48 | #define CONFIG_CMD_ENV |
55 | 49 | #define CONFIG_CMD_IDE |
56 | 50 | #define CONFIG_CMD_MII |
57 | -#define CONFIG_CMD_NAND | |
58 | -#define CONFIG_CMD_PING | |
59 | -#define CONFIG_CMD_USB | |
60 | 51 | |
61 | 52 | /* |
62 | 53 | * mv-common.h should be defined after CMD configs since it used them |
include/configs/sheevaplug.h
... | ... | @@ -40,24 +40,15 @@ |
40 | 40 | #define CONFIG_OF_LIBFDT |
41 | 41 | |
42 | 42 | /* |
43 | - * Miscellaneous configurable options | |
44 | - */ | |
45 | -#define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ | |
46 | - | |
47 | -/* | |
48 | 43 | * Commands configuration |
49 | 44 | */ |
50 | 45 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ |
51 | 46 | #define CONFIG_CMD_BOOTZ |
52 | 47 | #define CONFIG_CMD_DATE |
53 | -#define CONFIG_CMD_DHCP | |
54 | 48 | #define CONFIG_CMD_ENV |
55 | 49 | #define CONFIG_CMD_IDE |
56 | 50 | #define CONFIG_CMD_MII |
57 | 51 | #define CONFIG_CMD_MMC |
58 | -#define CONFIG_CMD_NAND | |
59 | -#define CONFIG_CMD_PING | |
60 | -#define CONFIG_CMD_USB | |
61 | 52 | |
62 | 53 | /* |
63 | 54 | * mv-common.h should be defined after CMD configs since it used them |