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.
Thanks.
-----Original Message-----
From: Tom Rini <[email protected]>
Sent: Tuesday, May 21, 2024 7:46 PM
To: Brunham, Kalen <[email protected]>
Cc: [email protected]; Heinrich Schuchardt <[email protected]>
Subject: Re: [PATCH 1/1] Added arm64 assembly for examples/api crt0
On Tue, May 21, 2024 at 11:28:10PM +0000, Brunham, Kalen wrote:
> Hi Tom,
>
> Thanks for the feedback. I've been able to build the EFI "hello world"
> application, but did notice the logic for CONFIG BLK prevents it from
> being directly enabled even when the dependencies are met, which is
> why it didn't immediately work for me. Do you know the maintainer of
> drivers/block/Kconfig that I could review a patch with?
Can you please elaborate on what problem you see? Thanks.
--
Tom