
On Wed, May 22, 2024 at 01:25:51PM +0000, Brunham, Kalen wrote:
Hi Tom,
I'm using a defconfig that does not enable any of the configs listed on the default likes for config BLK (MMC, USB, SCSI, etc.), but I do have DM enabled. I cannot however enable BLK as CONFIG_BLK=y is ignored. My current hypothesis is that BLK is being forced to N by the select BLK in other Kconfig files, but I'm not sure.
Here's the Kconfig for drivers/block:
config BLK 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
My current flow is: make mrproper make socfpga_agilex5_defconfig ./scripts/kconfig/merge_config.sh -O ./ ./.config ../../my_uboot_config.txt
Here my_uboot_config.txt hsd:
CONFIG_MMC=n CONFIG_USB=n CONFIG_DM_MMC=n CONFIG_SPL_DM_MMC=n CONFIG_BLK=y CONFIG_EFI_LOADER=y CONFIG_CMD_BOOTEFI=y CONFIG_EFI_LOADER=y CONFIG_CMD_BOOTEFI_HELLO_COMPILE=y CONFIG_CMD_BOOTEFI_HELLO=y
The only way I was able to get BLK set to Y was to add another default like || DM_SPI_FLASH, since I do enable SPI flash in this config.
And why are you trying to enable BLK without any block devices?