Skip to content

Commit

Permalink
blk: Hide the BLK and SPL_LEGACY_BLOCK options
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Sep 16, 2022
1 parent a21eb38 commit 0417b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/block/Kconfig
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0417b85

Please sign in to comment.