mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 01:48:50 +08:00
Add NXP i.MX8 SOC family support.
Currently there are two devices supported: * imx8qm-mek * imx8qxp-mek Signed-off-by: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
This commit is contained in:
22
nxp/common/bsp/imx-atf.nix
Normal file
22
nxp/common/bsp/imx-atf.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
buildArmTrustedFirmware ,
|
||||
targetBoard ,
|
||||
fetchgit ,
|
||||
}:
|
||||
|
||||
{
|
||||
armTrustedFirmwareiMX8 = buildArmTrustedFirmware rec {
|
||||
src = fetchgit {
|
||||
url = "https://source.codeaurora.org/external/imx/imx-atf";
|
||||
# tag: "lf_v2.6"
|
||||
rev = "c6a19b1a351308cc73443283f6aa56b2eff791b8";
|
||||
sha256 = "sha256-C046MrZBDFuzBdnjuPC2fAGtXzZjTWRrO8nYTf1rjeg=";
|
||||
};
|
||||
platform = targetBoard;
|
||||
enableParallelBuilding = true;
|
||||
# To build with tee.bin use extraMakeFlags = [ "bl31 SPD=opteed" ];
|
||||
extraMakeFlags = [ "PIE_LDFLAGS=--no-warn-rwx-segments LDFLAGS=--no-warn-rwx-segments" "bl31" ];
|
||||
extraMeta.platforms = ["aarch64-linux"];
|
||||
filesToInstall = ["build/${targetBoard}/release/bl31.bin"];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user