diff options
author | Zhaofeng Li <hello@zhaofeng.li> | 2021-10-16 08:58:04 -0700 |
---|---|---|
committer | Zhaofeng Li <hello@zhaofeng.li> | 2022-01-06 17:31:17 -0800 |
commit | 28b9bb54087371e558e97e3beeccac1f6f5362cd (patch) | |
tree | 1ec9f7cd4592f456f1246d6f6f04eba21df14285 /pkgs/misc/uboot | |
parent | 823acb25dd40392c1fc9f4bc5b7f5a369a6dd6eb (diff) |
ubootQemuX86: init
Diffstat (limited to 'pkgs/misc/uboot')
-rw-r--r-- | pkgs/misc/uboot/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index 2d234aa9e003..dec567f1ccde 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -352,6 +352,26 @@ in { filesToInstall = ["u-boot.bin"]; }; + ubootQemuX86 = buildUBoot { + defconfig = "qemu-x86_defconfig"; + extraConfig = '' + CONFIG_USB_UHCI_HCD=y + CONFIG_USB_EHCI_HCD=y + CONFIG_USB_EHCI_GENERIC=y + CONFIG_USB_XHCI_HCD=y + ''; + extraPatches = [ + # https://patchwork.ozlabs.org/project/uboot/list/?series=268007&state=%2A&archive=both + # Remove when upgrading to 2022.01 + (fetchpatch { + url = "https://patchwork.ozlabs.org/series/268007/mbox/"; + sha256 = "sha256-xn4Q959dgoB63zlmJepI41AXAf1kCycIGcmu4IIVjmE="; + }) + ]; + extraMeta.platforms = [ "i686-linux" "x86_64-linux" ]; + filesToInstall = [ "u-boot.rom" ]; + }; + ubootRaspberryPi = buildUBoot { defconfig = "rpi_defconfig"; extraMeta.platforms = ["armv6l-linux"]; |