aboutsummaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/default.nix6
-rw-r--r--pkgs/tos-firmware/default.nix19
2 files changed, 24 insertions, 1 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 082cca1..19a1f28 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -22,7 +22,11 @@ let
readDir ./patches-linux-5.15)));
};
- # NOR Firmwares
+ # NOR Firmware as considered stable by Turris and shipped in Turris OS
+ tosFirmwareOmnia = callPackage ./tos-firmware { board = "omnia"; };
+ tosFirmwareMox = callPackage ./tos-firmware { board = "mox"; };
+
+ # NOR Firmwares build in Nix
armTrustedFirmwareTurrisMox = buildArmTrustedFirmware rec {
platform = "a3700";
extraMeta.platforms = ["aarch64-linux"];
diff --git a/pkgs/tos-firmware/default.nix b/pkgs/tos-firmware/default.nix
new file mode 100644
index 0000000..89e7ebf
--- /dev/null
+++ b/pkgs/tos-firmware/default.nix
@@ -0,0 +1,19 @@
+{ stdenvNoCC, fetchgit
+, board
+}:
+
+stdenvNoCC.mkDerivation rec {
+ pname = "tos-firmware-" + board;
+ version = "6.0";
+ src = fetchgit {
+ url = "https://gitlab.nic.cz/turris/os/packages.git";
+ rev = "v" + version;
+ sha256 = "087gxdvkrykm2ghn23zscq5nw86am4jqf4nj5hzf6bmc6zxgdnhg";
+ };
+
+ installPhase = ''
+ mkdir -p $out
+ cp hardware/${board}/${board}-firmware/files/* $out/
+ rm $out/config.sh
+ '';
+}