git.iko.soy/typeable/nixpkgs
on master help sign in
ubootQemuX86: init
commit28b9bb54087371e558e97e3beeccac1f6f5362cd authorZhaofeng Li <hello@zhaofeng.li> dateSat 16 Oct 2021, 08:58 (5 years ago) parent823acb2
2 files changed+21
pkgs/misc/uboot/default.nix+20 pkgs/top-level/all-packages.nix+1
pkgs/misc/uboot/default.nix+20
@@ -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"];
pkgs/top-level/all-packages.nix+1
@@ -23047,6 +23047,7 @@ with pkgs;
2304723047 ubootQemuAarch64
2304823048 ubootQemuArm
2304923049 ubootQemuRiscv64Smode
23050+ ubootQemuX86
2305023051 ubootRaspberryPi
2305123052 ubootRaspberryPi2
2305223053 ubootRaspberryPi3_32bit