cmd: Kconfig: Make CMD_NAND select NAND
PATCH 1/1 cmd: Kconfig: Make CMD_NAND select NAND
Many boards check for CONFIG_CMD_NAND instead of CONFIG_NAND, so let's make CMD_NAND select NAND to make some Kconfig migration easier
cmd/Kconfig +1 -0
@@ -764,6 +764,7 @@ config CMD_MMC config CMD_NAND bool "nand" default y if NAND_SUNXI + select NAND help NAND support.
Signature · 1 line
2.7.4
PATCH 1/1 cmd: Kconfig: Make CMD_NAND select NAND
Quoted 11 lines · Adam Ford
Many boards check for
CONFIG_CMD_NANDinstead ofCONFIG_NAND, so let's makeCMD_NANDselect NAND to make someKconfigmigration easierSigned-off-by Adam Ford <[email protected]>cmd/Kconfig +0
-0
cmd/Kconfig config CMD_MMC · line 767
Quoted 4 lines
cmd/Kconfig +1
-0@@ -764,6 +764,7 @@ config CMD_MMC config CMD_NAND bool "nand" default y if NAND_SUNXI + select NAND
Should be depends on
Quoted 4 lines
cmd/Kconfig +0
-0help NAND support.
PATCH 1/1 cmd: Kconfig: Make CMD_NAND select NAND
Quoted 7 lines · Andrew F. Davis
Quoted 6 lines · Adam Ford
Many boards check for
CONFIG_CMD_NANDinstead ofCONFIG_NAND, so let's makeCMD_NANDselect NAND to make someKconfigmigration easierSigned-off-by Adam Ford <[email protected]>
Quoted 11 lines
cmd/Kconfig config CMD_MMC · line 767
Quoted 9 lines
cmd/Kconfig +1
-0@@ -764,6 +764,7 @@ config CMD_MMC config CMD_NAND bool "nand" default y if NAND_SUNXI + select NANDShould be depends on
On the surface, I would agree with you, but many boards are looking for CONFIG_CMD_NAND and not looking for (or dependant on) CONFIG_NAND to set their NAND parameters. I was hoping to do some NAND parameter migration and I was going to make those parameters dependent on CONFIG_NAND by setting CONFIG_NAND from CMD_NAND, it makes this migration a lot smoother. Otherwise, I have to go through a bunch of configs and enable CONFIG_NAND in each one.
adam
Quoted 5 lines
Quoted 5 lines
cmd/Kconfig +0
-0help NAND support.
PATCH 1/1 cmd: Kconfig: Make CMD_NAND select NAND
Quoted 20 lines · Adam Ford
Quoted 7 lines · Andrew F. Davis
Quoted 6 lines · Adam Ford
Many boards check for
CONFIG_CMD_NANDinstead ofCONFIG_NAND, so let's makeCMD_NANDselect NAND to make someKconfigmigration easierSigned-off-by Adam Ford <[email protected]>Quoted 11 lines
cmd/Kconfig config CMD_MMC · line 767
Quoted 9 lines
cmd/Kconfig +1
-0@@ -764,6 +764,7 @@ config CMD_MMC config CMD_NAND bool "nand" default y if NAND_SUNXI + select NANDShould be depends on
Quoted 8 lines
On the surface, I would agree with you, but many boards are looking for
CONFIG_CMD_NANDand not looking for (or dependant on)CONFIG_NANDto set their NAND parameters. I was hoping to do some NAND parameter migration and I was going to make those parameters dependent onCONFIG_NANDby settingCONFIG_NANDfromCMD_NAND, it makes this migration a lot smoother. Otherwise, I have to go through a bunch of configs and enableCONFIG_NANDin each one.
Well as long as it helps the migration and can/will be fixed up after, I don't object.
Quoted 6 lines
adam
Quoted 5 lines
Quoted 5 lines
cmd/Kconfig +0
-0help NAND support.
PATCH 1/1 cmd: Kconfig: Make CMD_NAND select NAND
Quoted 31 lines · Andrew F. Davis
Quoted 20 lines · Adam Ford
Quoted 7 lines · Andrew F. Davis
Quoted 6 lines · Adam Ford
Many boards check for
CONFIG_CMD_NANDinstead ofCONFIG_NAND, so let's makeCMD_NANDselect NAND to make someKconfigmigration easierSigned-off-by Adam Ford <[email protected]>Quoted 11 lines
cmd/Kconfig config CMD_MMC · line 767
Quoted 9 lines
cmd/Kconfig +1
-0@@ -764,6 +764,7 @@ config CMD_MMC config CMD_NAND bool "nand" default y if NAND_SUNXI + select NANDShould be depends on
Quoted 8 lines
On the surface, I would agree with you, but many boards are looking for
CONFIG_CMD_NANDand not looking for (or dependant on)CONFIG_NANDto set their NAND parameters. I was hoping to do some NAND parameter migration and I was going to make those parameters dependent onCONFIG_NANDby settingCONFIG_NANDfromCMD_NAND, it makes this migration a lot smoother. Otherwise, I have to go through a bunch of configs and enableCONFIG_NANDin each one.
Quoted 2 lines
Well as long as it helps the migration and can/will be fixed up after, I don't object.
I think I am going to re-spin this. There are some issues with SUNXI dependency issues. I'll fix those and re-submit the CONFIG_NAND stuff by itself which should then allow for a subsequent set of CONFIG_NAND_xx changes and other items dependent on NAND_X drivers.
adam
Quoted 8 lines
Quoted 8 lines
adam
Quoted 5 lines
Quoted 5 lines
cmd/Kconfig +0
-0help NAND support.