Skip to content

Commit

Permalink
Remove uefi-firmware.nix again
Browse files Browse the repository at this point in the history
Signed-off-by: Mika Tammi <[email protected]>
  • Loading branch information
Mika Tammi authored and brianmcgillion committed Dec 9, 2023
1 parent 8c66188 commit c59f1d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 321 deletions.
27 changes: 0 additions & 27 deletions lib/mk-flash-script/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,37 +27,10 @@

inherit (jetpack-nixos.legacyPackages.${devicePkgsSystem}) l4tVersion;

pkgsAarch64 =
if isCross
then nixpkgs.legacyPackages.x86_64-linux.pkgsCross.aarch64-multiplatform
else nixpkgs.legacyPackages.aarch64-linux;

inherit
(pkgsAarch64.callPackages
(import ./uefi-firmware.nix {
inherit jetpack-nixos;
}) {
inherit l4tVersion;
})
uefi-firmware
;

ghaf-uefi-firmware = uefi-firmware.override ({
bootLogo = cfg.firmware.uefi.logo;
inherit (cfg.firmware.uefi) debugMode;
inherit (cfg.firmware.uefi) errorLevelInfo;
inherit (cfg.firmware.uefi) edk2NvidiaPatches;
inherit (cfg.firmware.uefi) edk2UefiPatches;
}
// nixpkgs.lib.optionalAttrs cfg.firmware.uefi.capsuleAuthentication.enable {
inherit (cfg.firmware.uefi.capsuleAuthentication) trustedPublicCertPemFile;
});

flashScript = devicePkgs.mkFlashScript {
flash-tools = flash-tools.overrideAttrs ({postPatch ? "", ...}: {
postPatch = postPatch + cfg.flashScriptOverrides.postPatch;
});
uefi-firmware = ghaf-uefi-firmware;
inherit (hostConfiguration.config.ghaf.hardware.nvidia.orin.flashScriptOverrides) preFlashCommands;
};

Expand Down
294 changes: 0 additions & 294 deletions lib/mk-flash-script/uefi-firmware.nix

This file was deleted.

0 comments on commit c59f1d9

Please sign in to comment.