b31adcfd28bc ("test: x86: add test for uefi usb io") added a usb1 entry to
the devices list in test/x86/pc@efi_defconfig.yaml and enabled the driver
needed for it in the kconfig_add of that same file.

As described in 266482336cda ("ci: pytest: enable console and libc
allocator for allyesconfig"), we build and run tests in two separate
stages, so the options in kconfig_add are never applied. MAKEALL reads
them only when it is passed the YAML file, which would have it run the
tests as well, and that doesn't play nicely with our structure, because
we build e.g. multi_v7_defconfig once and then run multiple tests on it.

CONFIG_USB_HOST is thus not set in the image under test and
test_devices_present fails with:

        devinfo usb1
        devinfo: No such device

266482336cda worked the options around in the build stage. Here the
driver is useful for everyone booting barebox as an EFI payload, so
enable it in efi_defconfig instead.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Sascha Hauer <[email protected]>
---
 arch/x86/configs/efi_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/configs/efi_defconfig b/arch/x86/configs/efi_defconfig
index e21ac4fda3..62d83afac4 100644
--- a/arch/x86/configs/efi_defconfig
+++ b/arch/x86/configs/efi_defconfig
@@ -78,6 +78,8 @@ CONFIG_DRIVER_NET_EFI_SNP=y
 # CONFIG_SPI is not set
 CONFIG_DISK=y
 CONFIG_DISK_WRITE=y
+CONFIG_USB_HOST=y
+CONFIG_USB_EFI_IO_PROTOCOL=y
 CONFIG_VIDEO=y
 CONFIG_FRAMEBUFFER_CONSOLE=y
 CONFIG_DRIVER_VIDEO_EFI_GOP=y
-- 
2.47.3


Reply via email to