td2026 904 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. td_root="${PRODU2_TD_ROOT:-/data/anlogic/TD_Release_2026.1_SP2_NL}"
  4. if [[ ! -x "$td_root/bin/td" ]]; then
  5. candidate=/data/prod2u/toolchain/TD_Release_2026.1_SP2_NL/TD_Release_2026.1_SP2_NL
  6. if [[ -x "$candidate/bin/td" ]]; then td_root="$candidate"; fi
  7. fi
  8. td_runtime="${PRODU2_TD_RUNTIME_LIB:-/data/prod2u/td-runtime/lib}"
  9. td_runtime_root="${PRODU2_TD_RUNTIME_ROOT:-/data/prod2u/td-runtime/root}"
  10. export LD_LIBRARY_PATH="${td_root}/lib:${td_root}/lib/Qt/lib:${td_runtime}:${td_runtime_root}/usr/lib/x86_64-linux-gnu:${td_runtime_root}/lib/x86_64-linux-gnu"
  11. export QT_PLUGIN_PATH="${td_root}/lib/Qt/plugins"
  12. export QT_QPA_PLATFORM=offscreen
  13. # The vendor td.sh overwrites LD_LIBRARY_PATH and drops the persistent
  14. # libusb runtime above. Execute the same vendor binary directly so the
  15. # subprocess-scoped dependency set remains intact.
  16. exec "${td_root}/bin/td" "$@"