From cff7caf80ab94597a80e26651392ec9ed6e63db0 Mon Sep 17 00:00:00 2001 From: Brian McGillion Date: Mon, 10 Feb 2025 09:40:13 +0400 Subject: [PATCH] orin: remove cross-compilation flash scripts 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 --- targets/nvidia-jetson-orin/flake-module.nix | 25 ++++++--------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/targets/nvidia-jetson-orin/flake-module.nix b/targets/nvidia-jetson-orin/flake-module.nix index 84de000b6..20bb2ca89 100644 --- a/targets/nvidia-jetson-orin/flake-module.nix +++ b/targets/nvidia-jetson-orin/flake-module.nix @@ -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 ); }; };