Start work on armTrustedFirmware

This commit is contained in:
Artemis Tosini 2024-08-09 03:13:34 +00:00
parent c4a85fe74d
commit ed447b0463
Signed by: artemist
GPG key ID: EE5227935FE3FF18
2 changed files with 28 additions and 0 deletions

View file

@ -38,6 +38,7 @@
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style); formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
devShells = forAllSystems (pkgs: { devShells = forAllSystems (pkgs: {
armTrustedFirmware = pkgs.callPackage ./shells/armTrustedFirmware { };
plotter = pkgs.callPackage ./shells/plotter { }; plotter = pkgs.callPackage ./shells/plotter { };
ryujinx = pkgs.callPackage ./shells/ryujinx { }; ryujinx = pkgs.callPackage ./shells/ryujinx { };
zephyr = pkgs.callPackage ./shells/zephyr { }; zephyr = pkgs.callPackage ./shells/zephyr { };

View file

@ -0,0 +1,27 @@
{
mkShellNoCC,
stdenv,
pkgsCross,
dtc,
openssl,
}:
let
aarch64 = pkgsCross.aarch64-multiplatform;
m0 = pkgsCross.arm-embedded;
in
mkShellNoCC {
depsBuildBuild = [
stdenv.cc
aarch64.stdenv.cc
m0.stdenv.cc
];
packages = [
dtc
openssl
];
CROSS_COMPILE = "${aarch64.stdenv.cc.targetPrefix}";
M0_CROSS_COMPILE = "${m0.stdenv.cc.targetPrefix}";
hardeningDisable = [ "all" ];
}