mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-04 01:07:14 +08:00
44 lines
976 B
Nix
44 lines
976 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
fetchgit,
|
|
buildArmTrustedFirmware,
|
|
enable-tee ? true,
|
|
}:
|
|
with pkgs;
|
|
let
|
|
target-board = "imx8mp";
|
|
opteedflag = if enable-tee then "SPD=opteed" else "";
|
|
in
|
|
buildArmTrustedFirmware rec {
|
|
pname = "imx8mp-atf";
|
|
platform = target-board;
|
|
enableParallelBuilding = true;
|
|
extraMeta.platforms = [ "aarch64-linux" ];
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/nxp-imx/imx-atf.git";
|
|
rev = "6ddd57019494cabfca5065368349109c37f2cc9f";
|
|
sha256 = "sha256-8+5kV6wHhwMYVA9aqn4fNRhvgOLsU9RlX3UL7edMM+A=";
|
|
};
|
|
|
|
extraMakeFlags = [
|
|
"PLAT=${platform}"
|
|
"bl31"
|
|
"${opteedflag}"
|
|
];
|
|
|
|
filesToInstall = [
|
|
"build/${target-board}/release/bl31.bin"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/nxp-imx/imx-atf";
|
|
description = "Reference implementation of secure world software for ARMv8-A";
|
|
license = [ licenses.bsd3 ];
|
|
maintainers = with maintainers; [ gngram ];
|
|
platforms = [ "aarch64-linux" ];
|
|
};
|
|
|
|
}
|