Skip to content

Commit

Permalink
orin: remove cross-compilation flash scripts
Browse files Browse the repository at this point in the history
The jetpack now follows the nvidia guidelines and the flashing scripts
are not longer supported for creation on arm targets.

They require an x86 host to generate the flashing scripts on. This
applies to bot the overall script and the qspi.

Signed-off-by: Brian McGillion <[email protected]>
  • Loading branch information
brianmcgillion committed Feb 12, 2025
1 parent e8d1a7f commit cff7caf
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions targets/nvidia-jetson-orin/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -196,29 +196,18 @@ in
);

packages = {
aarch64-linux =
builtins.listToAttrs (map (t: lib.nameValuePair t.name t.package) targets)
# EXPERIMENTAL: The aarch64-linux hosted flashing support is experimental
# and it simply might not work. Providing the script anyway
// builtins.listToAttrs (
map (
t: lib.nameValuePair "${t.name}-flash-script" (generate-flash-script t "aarch64-linux")
) targets
)
// builtins.listToAttrs (
map (t: lib.nameValuePair "${t.name}-flash-qspi" (generate-flash-qspi t "aarch64-linux")) targets
);
aarch64-linux = builtins.listToAttrs (map (t: lib.nameValuePair t.name t.package) targets);
x86_64-linux =
builtins.listToAttrs (map (t: lib.nameValuePair t.name t.package) crossTargets)
// builtins.listToAttrs (
map (t: lib.nameValuePair "${t.name}-flash-script" (generate-flash-script t "x86_64-linux")) (
targets ++ crossTargets
)
map (
t: lib.nameValuePair "${t.name}-flash-script" (generate-flash-script t "x86_64-linux")
) crossTargets
)
// builtins.listToAttrs (
map (t: lib.nameValuePair "${t.name}-flash-qspi" (generate-flash-qspi t "x86_64-linux")) (
targets ++ crossTargets
)
map (
t: lib.nameValuePair "${t.name}-flash-qspi" (generate-flash-qspi t "x86_64-linux")
) crossTargets
);
};
};
Expand Down

0 comments on commit cff7caf

Please sign in to comment.