@@ -352,6 +352,26 @@ in {
352352 filesToInstall = ["u-boot.bin"];
353353 };
354354
355+ ubootQemuX86 = buildUBoot {
356+ defconfig = "qemu-x86_defconfig";
357+ extraConfig = ''
358+ CONFIG_USB_UHCI_HCD=y
359+ CONFIG_USB_EHCI_HCD=y
360+ CONFIG_USB_EHCI_GENERIC=y
361+ CONFIG_USB_XHCI_HCD=y
362+ '';
363+ extraPatches = [
364+ # https://patchwork.ozlabs.org/project/uboot/list/?series=268007&state=%2A&archive=both
365+ # Remove when upgrading to 2022.01
366+ (fetchpatch {
367+ url = "https://patchwork.ozlabs.org/series/268007/mbox/";
368+ sha256 = "sha256-xn4Q959dgoB63zlmJepI41AXAf1kCycIGcmu4IIVjmE=";
369+ })
370+ ];
371+ extraMeta.platforms = [ "i686-linux" "x86_64-linux" ];
372+ filesToInstall = [ "u-boot.rom" ];
373+ };
374+
355375 ubootRaspberryPi = buildUBoot {
356376 defconfig = "rpi_defconfig";
357377 extraMeta.platforms = ["armv6l-linux"];