Skip to content

Commit

Permalink
Fix platform firmware and UEFI capsule builds when cross compiling
Browse files Browse the repository at this point in the history
We must ensure we are using `flash-tools` for the build platform when we
are using it during a build (i.e. not on a machine performing the
flashing at "runtime").
  • Loading branch information
jmbaur authored and danielfullmer committed Jan 16, 2025
1 parent af37730 commit 4d0ae65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions overlay-with-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ final: prev: (
}
(''
${cfg.firmware.uefi.capsuleAuthentication.preSignCommands final.buildPackages}
bash ${finalJetpack.flash-tools}/generate_capsule/l4t_generate_soc_capsule.sh \
bash ${final.pkgsBuildBuild.nvidia-jetpack.flash-tools}/generate_capsule/l4t_generate_soc_capsule.sh \
'' + (lib.optionalString cfg.firmware.uefi.capsuleAuthentication.enable ''
--trusted-public-cert ${cfg.firmware.uefi.capsuleAuthentication.trustedPublicCertPemFile} \
--other-public-cert ${cfg.firmware.uefi.capsuleAuthentication.otherPublicCertPemFile} \
Expand All @@ -161,7 +161,7 @@ final: prev: (

signedFirmware = final.runCommand "signed-${hostName}-${finalJetpack.l4tVersion}"
{ inherit (cfg.firmware.secureBoot) requiredSystemFeatures; }
(finalJetpack.mkFlashScript finalJetpack.flash-tools {
(finalJetpack.mkFlashScript final.pkgsBuildBuild.nvidia-jetpack.flash-tools {
flashCommands = ''
${cfg.firmware.secureBoot.preSignCommands final}
'' + lib.concatMapStringsSep "\n"
Expand Down

0 comments on commit 4d0ae65

Please sign in to comment.