blob: d5b0f0c478ac75a3f720159894bc65287886b7c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{ nixpkgs ? <nixpkgs>, nixlib ? nixpkgs.lib }:
let
pkgs = nixpkgs // turrispkgs;
callPackage = nixlib.callPackageWith pkgs;
disableCheck = pkg: pkg.overrideAttrs (oldAttrs: {
doCheck = false;
doInstallCheck = false;
});
armv7lDisableCheck = pkg: if nixpkgs.system != "armv7l-linux" then pkg else disableCheck pkg;
aarch64DisableCheck = pkg: if nixpkgs.system != "aarch64-linux" then pkg else disableCheck pkg;
turrispkgs = with pkgs; {
# Crypto and certificates
libatsha204 = callPackage ./libatsha204 { };
mox-otp = python3Packages.callPackage ./mox-otp { };
crypto-wrapper = callPackage ./crypto-wrapper { };
# NOR Firmwares
armTrustedFirmwareTurrisMox = buildArmTrustedFirmware rec {
platform = "a3700";
extraMeta.platforms = ["aarch64-linux"];
extraMakeFlags = ["USE_COHERENT_MEM=0" "CM3_SYSTEM_RESET=1" "FIP_ALIGN=0x100"];
filesToInstall = ["build/${platform}/release/bl31.bin"];
};
ubootTurrisMox = buildUBoot {
defconfig = "turris_mox_defconfig";
extraMeta.platforms = ["aarch64-linux"];
filesToInstall = ["u-boot.bin"];
extraPatches = [ ./patches/include-configs-turris_mox-increase-space-for-the-ke.patch ];
BL31 = "${armTrustedFirmwareTurrisMox}/bl31.bin";
};
ubootTurrisOmnia = buildUBoot {
defconfig = "turris_omnia_defconfig";
extraMeta.platforms = ["armv7l-linux"];
filesToInstall = ["u-boot-spl.kwb"];
};
};
in turrispkgs
|