mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-27 01:48:17 +00:00
67852dcaba
Add scripts to download, verify and use GNU Arm Embedded 5 2016q2. 2016q2 (SVN revision 237715) generates identical output to Debian Stretch used by Docker build (SVN revision 241155).
19 lines
482 B
Bash
Executable File
19 lines
482 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# script/toolchain-run: Run command with downloaded GNU Arm Embedded toolchain.
|
|
#
|
|
|
|
set -e
|
|
|
|
readonly TOOLCHAIN_RELATIVE_DIR="vendor/toolchain"
|
|
readonly TOOLCHAIN_DIR="$(readlink -f "$(dirname "$0")/../$TOOLCHAIN_RELATIVE_DIR")"
|
|
|
|
if [ ! -d "$TOOLCHAIN_DIR" ]; then
|
|
printf "Could not find toolchain in %s.\n" "$TOOLCHAIN_RELATIVE_DIR" >&2
|
|
printf "Run script/toolchain-download to download it.\n" >&2
|
|
exit 1
|
|
fi
|
|
|
|
export PATH="$TOOLCHAIN_DIR/bin:$PATH"
|
|
exec "$@"
|