diff options
author | Simon Glass <sjg@chromium.org> | 2022-08-11 19:34:51 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-16 11:05:16 -0400 |
commit | 0417b8523c474e142979f99f978f270762502366 (patch) | |
tree | 09d9d35a7c82dc54ac2cd246b78f186028a7c72b | |
parent | a21eb38183eb8a8225fb06c7d831702457f3da75 (diff) | |
download | u-boot-0417b8523c474e142979f99f978f270762502366.tar.gz u-boot-0417b8523c474e142979f99f978f270762502366.tar.bz2 u-boot-0417b8523c474e142979f99f978f270762502366.zip |
blk: Hide the BLK and SPL_LEGACY_BLOCK options
We don't want boards to be able to change these. They can be handled
as dependencies of options that need them, such as SPL_MMC. There is no
point in enabling the block interface without any storage devices to
create a block device.
Hide both options from the 'menuconfig' display and deny their use in
defconfig files.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | drivers/block/Kconfig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index e82a779e6b..707e2bcd23 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -1,5 +1,5 @@ config BLK - bool "Support block devices" + bool # "Support block devices" depends on DM default y if MMC || USB || SCSI || NVME || IDE || AHCI || SATA default y if EFI_MEDIA || VIRTIO_BLK || PVBLOCK @@ -12,7 +12,7 @@ config BLK A filesystem can be placed in each partition. config SPL_LEGACY_BLOCK - bool "Enable Legacy Block Device" + bool # "Enable Legacy Block Device" depends on SPL && !DM_SPL default y if SPL_MMC || SPL_USB_STORAGE || SCSI || NVME || IDE default y if SPL_AHCI_PCI |