uefi stuff

This commit is contained in:
mjallen18
2026-01-07 21:28:20 -06:00
parent e76f74e63a
commit ca17f0fe18
35 changed files with 28449 additions and 18 deletions

View File

@@ -1,11 +1,12 @@
{ stdenv
, fetchFromGitHub
, MODEL ? "3"
, lib
, MODEL ? "5"
, DEBUG ? "0"
, TFA_FLAGS ? ""
, lib
}:
stdenv.mkDerivation (_finalAttrs: rec {
stdenv.mkDerivation rec {
pname = "arm-trusted-firmware";
version = "2.14";
@@ -16,11 +17,14 @@ stdenv.mkDerivation (_finalAttrs: rec {
hash = "sha256-7imeQocGMSyGXTEhNs4s0bcDxZpbLSSkOyI7c5UxqVs=";
};
# buildInputs = [
# dtc # dtmerge depends on libfdt
# ];
# Add required host tools if needed:
nativeBuildInputs = [ /* dtc python3 openssl etc. */ ];
buildPhase = ''
make \
CROSS_COMPILE=${stdenv.cc.targetPrefix} \
CC=${stdenv.cc.targetPrefix}cc \
AS=${stdenv.cc.targetPrefix}cc \
PLAT=rpi${MODEL} \
PRELOADED_BL33_BASE=0x20000 \
RPI3_PRELOADED_DTB_BASE=0x3E0000 \
@@ -34,20 +38,13 @@ stdenv.mkDerivation (_finalAttrs: rec {
installPhase = ''
mkdir -p $out
ls -alh
# # Adjust paths as needed. Example:
# cp -r build/rpi${MODEL}/* $out/
cp -r build/* $out/
'';
meta = with lib; {
description = "A collection of scripts and simple applications for Raspberry Pi hardware";
homepage = "https://github.com/raspberrypi/utils";
description = "ARM Trusted Firmware-A for Raspberry Pi";
license = licenses.bsd3;
platforms = [
"armv6l-linux"
"armv7l-linux"
"aarch64-linux"
];
platforms = [ "aarch64-linux" ];
maintainers = with maintainers; [ kazenyuk ];
};
})
}