packages/shells/armTrustedFirmware/default.nix

28 lines
421 B
Nix

{
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" ];
}