arm-trusted-firmware: add RK3399

This commit is contained in:
Ben Wolsieffer 2018-12-30 17:39:29 -05:00
parent 8a816723ce
commit 7edd0389e1
2 changed files with 12 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, buildPackages }:
{ stdenv, fetchFromGitHub, pkgsCross, buildPackages }:
let
buildArmTrustedFirmware = { filesToInstall
@ -22,6 +22,9 @@ let
depsBuildBuild = [ buildPackages.stdenv.cc ];
# For Cortex-M0 firmware in RK3399
nativeBuildInputs = [ pkgsCross.arm-embedded.stdenv.cc ];
makeFlags = [
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
"PLAT=${platform}"
@ -83,4 +86,11 @@ in rec {
extraMeta.platforms = ["aarch64-linux"];
filesToInstall = [ "build/${platform}/release/bl31/bl31.elf"];
};
armTrustedFirmwareRK3399 = buildArmTrustedFirmware rec {
extraMakeFlags = [ "bl31" ];
platform = "rk3399";
extraMeta.platforms = ["aarch64-linux"];
filesToInstall = [ "build/${platform}/release/bl31/bl31.elf"];
};
}

View file

@ -14254,6 +14254,7 @@ in
armTrustedFirmwareAllwinner
armTrustedFirmwareQemu
armTrustedFirmwareRK3328
armTrustedFirmwareRK3399
;
microcodeAmd = callPackage ../os-specific/linux/microcode/amd.nix { };