···1-{ lib, stdenv, fetchFromGitHub, openssl, pkgsCross, buildPackages }:
0000023let
4 buildArmTrustedFirmware = { filesToInstall
···20 sha256 = "sha256-qT9DdTvMcUrvRzgmVf2qmKB+Rb1WOB4p1rM+fsewGcg=";
21 };
220000023 depsBuildBuild = [ buildPackages.stdenv.cc ];
2425 # For Cortex-M0 firmware in RK3399
···50 meta = with lib; {
51 homepage = "https://github.com/ARM-software/arm-trusted-firmware";
52 description = "A reference implementation of secure world software for ARMv8-A";
53- license = licenses.bsd3;
54 maintainers = with maintainers; [ lopsided98 ];
55 } // extraMeta;
56 } // builtins.removeAttrs args [ "extraMeta" ]);
···1+{ lib, stdenv, fetchFromGitHub, openssl, pkgsCross, buildPackages
2+3+# Warning: this blob runs on the main CPU (not the GPU) at privilege
4+# level EL3, which is above both the kernel and the hypervisor.
5+, unfreeIncludeHDCPBlob ? true
6+}:
78let
9 buildArmTrustedFirmware = { filesToInstall
···25 sha256 = "sha256-qT9DdTvMcUrvRzgmVf2qmKB+Rb1WOB4p1rM+fsewGcg=";
26 };
2728+ patches = lib.optionals (!unfreeIncludeHDCPBlob) [
29+ # this is a rebased version of https://gitlab.com/vicencb/kevinboot/-/blob/master/atf.patch
30+ ./remove-hdcp-blob.patch
31+ ];
32+33 depsBuildBuild = [ buildPackages.stdenv.cc ];
3435 # For Cortex-M0 firmware in RK3399
···60 meta = with lib; {
61 homepage = "https://github.com/ARM-software/arm-trusted-firmware";
62 description = "A reference implementation of secure world software for ARMv8-A";
63+ license = (if unfreeIncludeHDCPBlob then [ licenses.unfreeRedistributable ] else []) ++ [ licenses.bsd3 ];
64 maintainers = with maintainers; [ lopsided98 ];
65 } // extraMeta;
66 } // builtins.removeAttrs args [ "extraMeta" ]);