1 { pkgs, version, configTxt }:
4 isAarch64 = pkgs.stdenv.hostPlatform.isAarch64;
8 pkgs.ubootRaspberryPiZero
9 else if version == 1 then
11 else if version == 2 then
12 pkgs.ubootRaspberryPi2
13 else if version == 3 then
15 pkgs.ubootRaspberryPi3_64bit
17 pkgs.ubootRaspberryPi3_32bit
19 throw "U-Boot is not yet supported on the raspberry pi 4.";
22 import ../generic-extlinux-compatible/extlinux-conf-builder.nix {
23 pkgs = pkgs.buildPackages;
27 src = ./uboot-builder.sh;
30 path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
31 firmware = pkgs.raspberrypifw;
34 inherit extlinuxConfBuilder;