@@ -1,8 +1,7 @@
11{ stdenv, fetchFromGitHub, buildPackages }:
22
33let
4− buildArmTrustedFirmware = { targetPlatforms
5− , filesToInstall
4+ buildArmTrustedFirmware = { filesToInstall
65 , installDir ? "$out"
76 , platform
87 , extraMakeFlags ? []
@@ -46,8 +45,6 @@ let
4645 description = "A reference implementation of secure world software for ARMv8-A";
4746 license = licenses.bsd3;
4847 maintainers = [ maintainers.lopsided98 ];
49− # TODO: Fix when #34444 is merged
50− # platforms = targetPlatforms;
5148 } // extraMeta;
5249 } // builtins.removeAttrs args [ "extraMeta" ]);
5350
@@ -64,13 +61,13 @@ in rec {
6461 sha256 = "0lbipkxb01w97r6ah8wdbwxir3013rp249fcqhlzh2gjwhp5l1ys";
6562 };
6663 platform = "sun50iw1p1";
67− targetPlatforms = ["aarch64-linux"];
64+ extraMeta.platforms = ["aarch64-linux"];
6865 filesToInstall = ["build/${platform}/release/bl31.bin"];
6966 };
7067
7168 armTrustedFirmwareQemu = buildArmTrustedFirmware rec {
7269 platform = "qemu";
73− targetPlatforms = ["aarch64-linux"];
70+ extraMeta.platforms = ["aarch64-linux"];
7471 filesToInstall = [
7572 "build/${platform}/release/bl1.bin"
7673 "build/${platform}/release/bl2.bin"
@@ -81,7 +78,7 @@ in rec {
8178 armTrustedFirmwareRK3328 = buildArmTrustedFirmware rec {
8279 extraMakeFlags = [ "bl31" ];
8380 platform = "rk3328";
84− targetPlatforms = ["aarch64-linux"];
81+ extraMeta.platforms = ["aarch64-linux"];
8582 filesToInstall = [ "build/${platform}/release/bl31/bl31.elf"];
8683 };
8784}