Files
nixos-hardware/nxp/imx8mp-evk/bsp/imx8mp-atf.nix
Ganga Ram 2dbfb943a0 bsp update for imx8mp-evk
Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
2025-09-03 17:17:14 +04:00

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