]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
blk: Make block subsystems select BLK
authorTom Rini <trini@konsulko.com>
Wed, 15 Jan 2025 01:22:11 +0000 (19:22 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 21 Jan 2025 01:26:54 +0000 (19:26 -0600)
The BLK symbol has a few meanings, one of which is that it controls the
driver model portion of a "block device". Rather than having this hidden
symbol be "default y if ..." it should be select'd by the various block
subsystems. Symbols such as PVBLOCK which already select'd BLK are
unchanged".

Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/ata/Kconfig
drivers/block/Kconfig
drivers/mmc/Kconfig
drivers/nvme/Kconfig
drivers/scsi/Kconfig
drivers/usb/Kconfig
drivers/virtio/Kconfig

index 4fbb63a148acc6d2cee636cf45100792872cd5c7..29ceab849c02e13f30cce0d67ec6e5fe897c0afb 100644 (file)
@@ -1,6 +1,7 @@
 config AHCI
        bool "Support SATA controllers with driver model"
        depends on DM
+       select BLK
        help
          This enables a uclass for disk controllers in U-Boot. Various driver
          types can use this, such as AHCI/SATA. It does not provide any standard
@@ -9,6 +10,7 @@ config AHCI
 
 config SATA
        bool "Support SATA controllers"
+       select BLK
        help
          This enables support for SATA (Serial Advanced Technology
          Attachment), a serial bus standard for connecting to hard drives and
index 5283d8981e09700d9f963eb24c7f2373732b8a8f..cc75bad02b8ceef0f67ff6bad2c54d8f03c61b32 100644 (file)
@@ -1,8 +1,5 @@
 config BLK
-       bool # "Support block devices"
-       depends on DM
-       def_bool y if MMC || USB || SCSI || NVME || IDE || AHCI || SATA
-       def_bool y if EFI_MEDIA || VIRTIO_BLK || PVBLOCK
+       bool
        help
          Enable support for block devices, such as SCSI, MMC and USB
          flash sticks. These provide a block-level interface which permits
@@ -100,6 +97,7 @@ config TPL_BLOCK_CACHE
 config EFI_MEDIA
        bool "Support EFI media drivers"
        default y if EFI || SANDBOX
+       select BLK
        help
          Enable this to support media devices on top of UEFI. This enables
          just the uclass so you also need a specific driver to make this do
@@ -139,6 +137,7 @@ endif  # EFI_MEDIA
 
 config IDE
        bool "Support IDE controllers"
+       select BLK
        help
          Enables support for IDE (Integrated Drive Electronics) hard drives.
          This allows access to raw blocks and filesystems on an IDE drive
index 46513db0d6e36287a7b8c417ca76b920de15fee5..4827834b4aab369f8de79cf3fa309ff0d802bbda 100644 (file)
@@ -3,6 +3,7 @@ menu "MMC Host controller Support"
 config MMC
        bool "MMC/SD/SDIO card support"
        default ARM || PPC || SANDBOX
+       select BLK
        select DM_MMC
        help
          This selects MultiMediaCard, Secure Digital and Secure
index 73edb35516067b2b4461849364982d24d5b8c765..d138867666bdea7654aa02346e4712364ef1398b 100644 (file)
@@ -4,6 +4,7 @@
 
 config NVME
        bool "NVM Express device support"
+       select BLK
        help
          This option enables support for NVM Express devices.
          It supports basic functions of NVMe (read/write).
index 7e21c4ae2bb8bbe76de07a9a4b5897d13845755a..fc87d34cca391baa9a0c1279874210e94c865814 100644 (file)
@@ -1,5 +1,6 @@
 config SCSI
        bool "Support SCSI controllers with driver model"
+       select BLK
        help
          This enables support for SCSI (Small Computer System Interface),
          a parallel interface widely used with storage peripherals such as
index 960b6a906ac4f84dce0e742702dd35683f22d20c..99c6649e4178a51a3a4ef5248dda1ab5d9aa398b 100644 (file)
@@ -1,5 +1,6 @@
 menuconfig USB
        bool "USB support"
+       select BLK
        ---help---
          Universal Serial Bus (USB) is a specification for a serial bus
          subsystem which offers higher speeds and more features than the
index 1de68867d52e65ba679af5e8f0aee2827c603672..512ac376f18588817ba5249db584845c8f73677c 100644 (file)
@@ -64,6 +64,7 @@ config VIRTIO_NET
 config VIRTIO_BLK
        bool "virtio block driver"
        depends on VIRTIO
+       select BLK
        help
          This is the virtual block driver for virtio. It can be used with
          QEMU based targets.