diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2022-04-26 20:55:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 20:55:16 -0700 |
commit | d6b996030dd21c6509803267584b9aca3e133a07 (patch) | |
tree | 989c6765772a899a8085f84c111ce311f67778c6 /pkgs/misc | |
parent | d9e593ed5889f3906dc72811c45bf684be8865cf (diff) | |
parent | 80d4480778f581d5b73e4464eeb08ae0974e72c2 (diff) | |
download | nixpkgs-d6b996030dd21c6509803267584b9aca3e133a07.tar nixpkgs-d6b996030dd21c6509803267584b9aca3e133a07.tar.gz nixpkgs-d6b996030dd21c6509803267584b9aca3e133a07.tar.bz2 nixpkgs-d6b996030dd21c6509803267584b9aca3e133a07.tar.lz nixpkgs-d6b996030dd21c6509803267584b9aca3e133a07.tar.xz nixpkgs-d6b996030dd21c6509803267584b9aca3e133a07.tar.zst nixpkgs-d6b996030dd21c6509803267584b9aca3e133a07.zip |
Merge pull request #170528 from lovesegfault/rpi-full-tree
feat: add support for the RaspberryPi CM4
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/uboot/default.nix | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index 986494e599d..d6e5e8a7bcb 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -10,6 +10,7 @@ , openssl , swig , meson-tools +, which , armTrustedFirmwareAllwinner , armTrustedFirmwareAllwinnerH616 , armTrustedFirmwareRK3328 @@ -19,10 +20,10 @@ }: let - defaultVersion = "2021.10"; + defaultVersion = "2022.01"; defaultSrc = fetchurl { url = "ftp://ftp.denx.de/pub/u-boot/u-boot-${defaultVersion}.tar.bz2"; - sha256 = "1m0bvwv8r62s4wk4w3cmvs888dhv9gnfa98dczr4drk2jbhj7ryd"; + hash = "sha256-gbRUMifbIowD+KG/XdvIE7C7j2VVzkYGTvchpvxoBBM="; }; buildUBoot = { version ? null @@ -66,11 +67,14 @@ let p.setuptools # for pkg_resources ])) swig + which # for scripts/dtc-version.sh ]; depsBuildBuild = [ buildPackages.stdenv.cc ]; hardeningDisable = [ "all" ]; + enableParallelBuilding = true; + makeFlags = [ "DTC=dtc" "CROSS_COMPILE=${stdenv.cc.targetPrefix}" @@ -102,9 +106,6 @@ let runHook postInstall ''; - # make[2]: *** No rule to make target 'lib/efi_loader/helloworld.efi', needed by '__build'. Stop. - enableParallelBuilding = false; - dontStrip = true; meta = with lib; { @@ -373,14 +374,6 @@ in { 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" ]; }; @@ -401,28 +394,12 @@ in { defconfig = "rpi_3_32b_defconfig"; extraMeta.platforms = ["armv7l-linux"]; filesToInstall = ["u-boot.bin"]; - extraPatches = [ - # Remove when updating to 2022.01 - # https://patchwork.ozlabs.org/project/uboot/list/?series=273129&archive=both&state=* - (fetchpatch { - url = "https://patchwork.ozlabs.org/series/273129/mbox/"; - sha256 = "sha256-/Gu7RNvBNYCGqdFRzQ11qPDDxgGVpwKYYw1CpumIGfU="; - }) - ]; }; ubootRaspberryPi3_64bit = buildUBoot { defconfig = "rpi_3_defconfig"; extraMeta.platforms = ["aarch64-linux"]; filesToInstall = ["u-boot.bin"]; - extraPatches = [ - # Remove when updating to 2022.01 - # https://patchwork.ozlabs.org/project/uboot/list/?series=273129&archive=both&state=* - (fetchpatch { - url = "https://patchwork.ozlabs.org/series/273129/mbox/"; - sha256 = "sha256-/Gu7RNvBNYCGqdFRzQ11qPDDxgGVpwKYYw1CpumIGfU="; - }) - ]; }; ubootRaspberryPi4_32bit = buildUBoot { |