summary refs log tree commit diff
path: root/nixos/modules/system/boot/loader/raspberrypi/uboot-builder.nix
diff options
context:
space:
mode:
authorThomas Kerber <tk@drwx.org>2019-08-17 17:42:22 +0100
committerThomas Kerber <tk@drwx.org>2019-09-17 04:05:16 +0100
commitcc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0 (patch)
treebf311377d69ed13987867bdc75ba1be92a3f9e71 /nixos/modules/system/boot/loader/raspberrypi/uboot-builder.nix
parent7f523f4d7e1f6eea06094e59ab6f55730ec0eb2e (diff)
downloadnixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.tar
nixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.tar.gz
nixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.tar.bz2
nixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.tar.lz
nixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.tar.xz
nixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.tar.zst
nixpkgs-cc5baf2d8671d2f2dd9e00fc8bbc96d769ec27e0.zip
Various: Add support for raspberry pi 4.
Diffstat (limited to 'nixos/modules/system/boot/loader/raspberrypi/uboot-builder.nix')
-rw-r--r--nixos/modules/system/boot/loader/raspberrypi/uboot-builder.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/loader/raspberrypi/uboot-builder.nix b/nixos/modules/system/boot/loader/raspberrypi/uboot-builder.nix
index 9d4f8a93d28..1dc397e521b 100644
--- a/nixos/modules/system/boot/loader/raspberrypi/uboot-builder.nix
+++ b/nixos/modules/system/boot/loader/raspberrypi/uboot-builder.nix
@@ -10,11 +10,13 @@ let
       pkgs.ubootRaspberryPi
     else if version == 2 then
       pkgs.ubootRaspberryPi2
-    else
+    else if version == 3 then
       if isAarch64 then
         pkgs.ubootRaspberryPi3_64bit
       else
-        pkgs.ubootRaspberryPi3_32bit;
+        pkgs.ubootRaspberryPi3_32bit
+    else
+      throw "U-Boot is not yet supported on the raspberry pi 4.";
 
   extlinuxConfBuilder =
     import ../generic-extlinux-compatible/extlinux-conf-builder.nix {