1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-02 09:12:08 +02:00

cmd: Drop use of HAVE_BLOCK_DEVICE

This condition is not needed for these commands, since BLK is enabled for
all boards which use block devices and commands are not available in SPL,
so even if SPL_BLK is not enabled, it doesn't affect commands.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2022-08-11 19:34:46 -06:00
committed by Tom Rini
parent a51eb8de31
commit 003357cc48
2 changed files with 1 additions and 6 deletions

View File

@@ -1092,7 +1092,6 @@ config CMD_PWM
config CMD_GPT config CMD_GPT
bool "GPT (GUID Partition Table) command" bool "GPT (GUID Partition Table) command"
select EFI_PARTITION select EFI_PARTITION
select HAVE_BLOCK_DEVICE
select PARTITION_UUIDS select PARTITION_UUIDS
imply RANDOM_UUID imply RANDOM_UUID
help help
@@ -1211,7 +1210,6 @@ config CMD_LSBLK
config CMD_MBR config CMD_MBR
bool "MBR (Master Boot Record) command" bool "MBR (Master Boot Record) command"
select DOS_PARTITION select DOS_PARTITION
select HAVE_BLOCK_DEVICE
help help
Enable the 'mbr' command to ready and write MBR (Master Boot Record) Enable the 'mbr' command to ready and write MBR (Master Boot Record)
style partition tables. style partition tables.
@@ -1343,7 +1341,6 @@ config CMD_OSD
config CMD_PART config CMD_PART
bool "part" bool "part"
depends on PARTITIONS depends on PARTITIONS
select HAVE_BLOCK_DEVICE
select PARTITION_UUIDS select PARTITION_UUIDS
help help
Read and display information about the partition table on Read and display information about the partition table on
@@ -1474,7 +1471,6 @@ config CMD_UNIVERSE
config CMD_USB config CMD_USB
bool "usb" bool "usb"
depends on USB_HOST depends on USB_HOST
select HAVE_BLOCK_DEVICE
help help
USB support. USB support.
@@ -1514,7 +1510,6 @@ config CMD_PVBLOCK
config CMD_VIRTIO config CMD_VIRTIO
bool "virtio" bool "virtio"
depends on VIRTIO depends on VIRTIO
depends on HAVE_BLOCK_DEVICE
default y if VIRTIO default y if VIRTIO
help help
VirtIO block device support VirtIO block device support

View File

@@ -18,7 +18,7 @@ obj-$(CONFIG_CMD_AES) += aes.o
obj-$(CONFIG_CMD_AB_SELECT) += ab_select.o obj-$(CONFIG_CMD_AB_SELECT) += ab_select.o
obj-$(CONFIG_CMD_ADC) += adc.o obj-$(CONFIG_CMD_ADC) += adc.o
obj-$(CONFIG_CMD_ARMFLASH) += armflash.o obj-$(CONFIG_CMD_ARMFLASH) += armflash.o
obj-$(CONFIG_HAVE_BLOCK_DEVICE) += blk_common.o obj-$(CONFIG_BLK) += blk_common.o
obj-$(CONFIG_CMD_BOOTDEV) += bootdev.o obj-$(CONFIG_CMD_BOOTDEV) += bootdev.o
obj-$(CONFIG_CMD_BOOTFLOW) += bootflow.o obj-$(CONFIG_CMD_BOOTFLOW) += bootflow.o
obj-$(CONFIG_CMD_BOOTMETH) += bootmeth.o obj-$(CONFIG_CMD_BOOTMETH) += bootmeth.o