mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
cmd: make MTD commands depend on MTD
Defconfigs have been fixed, now we can add proper dependencies in Kconfig. SPI FLASH is still not dependent on MTD (deeper rework needed). Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
eb446ef625
commit
ff102c54b0
10
cmd/Kconfig
10
cmd/Kconfig
@ -850,6 +850,7 @@ config CMD_FDC
|
|||||||
config CMD_FLASH
|
config CMD_FLASH
|
||||||
bool "flinfo, erase, protect"
|
bool "flinfo, erase, protect"
|
||||||
default y
|
default y
|
||||||
|
depends on MTD || FLASH_CFI_DRIVER || MTD_NOR_FLASH
|
||||||
help
|
help
|
||||||
NOR flash support.
|
NOR flash support.
|
||||||
flinfo - print FLASH memory information
|
flinfo - print FLASH memory information
|
||||||
@ -1039,6 +1040,7 @@ config CMD_MMC_SWRITE
|
|||||||
|
|
||||||
config CMD_MTD
|
config CMD_MTD
|
||||||
bool "mtd"
|
bool "mtd"
|
||||||
|
depends on MTD
|
||||||
select MTD_PARTITIONS
|
select MTD_PARTITIONS
|
||||||
help
|
help
|
||||||
MTD commands support.
|
MTD commands support.
|
||||||
@ -1046,6 +1048,7 @@ config CMD_MTD
|
|||||||
config CMD_NAND
|
config CMD_NAND
|
||||||
bool "nand"
|
bool "nand"
|
||||||
default y if NAND_SUNXI
|
default y if NAND_SUNXI
|
||||||
|
depends on MTD_RAW_NAND
|
||||||
help
|
help
|
||||||
NAND support.
|
NAND support.
|
||||||
|
|
||||||
@ -1077,6 +1080,7 @@ config CMD_NVME
|
|||||||
|
|
||||||
config CMD_ONENAND
|
config CMD_ONENAND
|
||||||
bool "onenand - access to onenand device"
|
bool "onenand - access to onenand device"
|
||||||
|
depends on MTD
|
||||||
help
|
help
|
||||||
OneNAND is a brand of NAND ('Not AND' gate) flash which provides
|
OneNAND is a brand of NAND ('Not AND' gate) flash which provides
|
||||||
various useful features. This command allows reading, writing,
|
various useful features. This command allows reading, writing,
|
||||||
@ -1954,7 +1958,7 @@ config CMD_JFFS2
|
|||||||
|
|
||||||
config CMD_MTDPARTS
|
config CMD_MTDPARTS
|
||||||
bool "MTD partition support"
|
bool "MTD partition support"
|
||||||
select MTD if (CMD_NAND || MTD_RAW_NAND)
|
depends on MTD
|
||||||
help
|
help
|
||||||
MTD partitioning tool support.
|
MTD partitioning tool support.
|
||||||
It is strongly encouraged to avoid using this command
|
It is strongly encouraged to avoid using this command
|
||||||
@ -1982,14 +1986,14 @@ config CMD_MTDPARTS_SHOW_NET_SIZES
|
|||||||
|
|
||||||
config MTDIDS_DEFAULT
|
config MTDIDS_DEFAULT
|
||||||
string "Default MTD IDs"
|
string "Default MTD IDs"
|
||||||
depends on MTD_PARTITIONS || CMD_MTDPARTS || CMD_NAND || CMD_FLASH
|
depends on MTD || SPI_FLASH
|
||||||
help
|
help
|
||||||
Defines a default MTD IDs list for use with MTD partitions in the
|
Defines a default MTD IDs list for use with MTD partitions in the
|
||||||
Linux MTD command line partitions format.
|
Linux MTD command line partitions format.
|
||||||
|
|
||||||
config MTDPARTS_DEFAULT
|
config MTDPARTS_DEFAULT
|
||||||
string "Default MTD partition scheme"
|
string "Default MTD partition scheme"
|
||||||
depends on MTD_PARTITIONS || CMD_MTDPARTS || CMD_NAND || CMD_FLASH
|
depends on MTD || SPI_FLASH
|
||||||
help
|
help
|
||||||
Defines a default MTD partitioning scheme in the Linux MTD command
|
Defines a default MTD partitioning scheme in the Linux MTD command
|
||||||
line partitions format
|
line partitions format
|
||||||
|
Loading…
Reference in New Issue
Block a user