Skip to content

Commit

Permalink
Put _toolchainpath in PATH in nspire-* scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
coolreader18 authored and Vogtinator committed Sep 30, 2020
1 parent ff7d23f commit 7d83169
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ndless-sdk/bin/arm-none-eabi-ld.gold
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ MAKEFLAGS='' make -C "$NDLESS/system" -s all
home="${USERPROFILE:-$HOME}"
mkdir -p "$home/.ndless/lib"

LD="$(nspire-tools _toolchainpath)/arm-none-eabi-ld"
export PATH="$(nspire-tools _toolchainpath):$PATH"

exec "$LD" --pic-veneer --emit-relocs -T "${NDLESS}/system/ldscript" -static "${NDLESS}/system/crt0.o" "${NDLESS}/system/crti.o" "${args[@]}" "${stdlib[@]}" "${NDLESS}/system/crtn.o" -L "${NDLESS}/lib" -L "${home}/.ndless/lib"
exec arm-none-eabi-ld --pic-veneer --emit-relocs -T "${NDLESS}/system/ldscript" -static "${NDLESS}/system/crt0.o" "${NDLESS}/system/crti.o" "${args[@]}" "${stdlib[@]}" "${NDLESS}/system/crtn.o" -L "${NDLESS}/lib" -L "${home}/.ndless/lib"
4 changes: 2 additions & 2 deletions ndless-sdk/bin/nspire-as
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
NDLESS="$(nspire-tools path)"

# gcc instead of as, to call the C preprocessor
GCC="$(nspire-tools _toolchainpath)/arm-none-eabi-gcc"
exec "$GCC" -mcpu=arm926ej-s -D GNU_AS "$@" -I "$NDLESS/include"
export PATH="$(nspire-tools _toolchainpath):$PATH"
exec arm-none-eabi-gcc -mcpu=arm926ej-s -D GNU_AS "$@" -I "$NDLESS/include"
4 changes: 2 additions & 2 deletions ndless-sdk/bin/nspire-g++
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Caution, must be kept compatible with dash used by some Linux distros.

NDLESS="$(nspire-tools path)"
export PATH="$(nspire-tools _toolchainpath):$PATH"

home="${USERPROFILE:-$HOME}"
mkdir -p "$home/.ndless/include"
GXX="$(nspire-tools _toolchainpath)/arm-none-eabi-g++"
exec "$GXX" -mcpu=arm926ej-s -fno-use-cxa-atexit -D _TINSPIRE -fuse-ld=gold "$@" -I "$home/.ndless/include" -I "${NDLESS}/include" -I "${NDLESS}/include/freetype2"
exec arm-none-eabi-g++ -mcpu=arm926ej-s -fno-use-cxa-atexit -D _TINSPIRE -fuse-ld=gold "$@" -I "$home/.ndless/include" -I "${NDLESS}/include" -I "${NDLESS}/include/freetype2"
4 changes: 2 additions & 2 deletions ndless-sdk/bin/nspire-gcc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Caution, must be kept compatible with dash used by some Linux distros.

NDLESS="$(nspire-tools path)"
export PATH="$(nspire-tools _toolchainpath):$PATH"

home="${USERPROFILE:-$HOME}"
mkdir -p "$home/.ndless/include"
GCC="$(nspire-tools _toolchainpath)/arm-none-eabi-gcc"
exec "$GCC" -mcpu=arm926ej-s -D _TINSPIRE -fuse-ld=gold "$@" -I "$home/.ndless/include" -I "${NDLESS}/include" -I "${NDLESS}/include/freetype2"
exec arm-none-eabi-gcc -mcpu=arm926ej-s -D _TINSPIRE -fuse-ld=gold "$@" -I "$home/.ndless/include" -I "${NDLESS}/include" -I "${NDLESS}/include/freetype2"

0 comments on commit 7d83169

Please sign in to comment.