mirror of
https://git.planet-casio.com/Lephenixnoir/sh-elf-gcc.git
synced 2024-12-28 04:23:39 +01:00
23 lines
616 B
Bash
23 lines
616 B
Bash
TAG="<sh-elf-gcc>"
|
|
|
|
run_quietly() {
|
|
out="$1"
|
|
shift 1
|
|
"$@" >$out 2>&1
|
|
if [[ "$?" != 0 ]]; then
|
|
echo "$tag error: build failed, please check $(pwd)/$out o(x_x)o"
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
# Names of binutils tools, otherwise GCC assumes sh3eb-elf-*
|
|
export AR_FOR_TARGET=sh-elf-ar
|
|
export AS_FOR_TARGET=sh-elf-as
|
|
export DLLTOOL_FOR_TARGET=sh-elf-dlltool
|
|
export LD_FOR_TARGET=sh-elf-ld
|
|
export NM_FOR_TARGET=sh-elf-nm
|
|
export OBJCOPY_FOR_TARGET=sh-elf-objcopy
|
|
export OBJDUMP_FOR_TARGET=sh-elf-objdump
|
|
export RANLIB_FOR_TARGET=sh-elf-ranlib
|
|
export READELF_FOR_TARGET=sh-elf-readelf
|
|
export STRIP_FOR_TARGET=sh-elf-strip
|