Skip to content

Commit

Permalink
Return error if tool check fails
Browse files Browse the repository at this point in the history
Note we leave 68000 out because we'd otherwise break the CI which
lazily uses (the broken) m68k-linux-gcc for compile check.

Signed-off-by: Tormod Volden <[email protected]>
  • Loading branch information
tormodvolden committed Jan 17, 2024
1 parent c830c1d commit 3b2c6d5
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions Tools/build-6303
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ fi
X=`which cc68`
if [ "$X" = "" ]; then
echo "CC68 is required: see https://github.com/EtchedPixels/CC6303/"
exit 1
fi
1 change: 1 addition & 0 deletions Tools/build-6502
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
X=`which cc65`
if [ "$X" = "" ]; then
echo "CC65 is required"
exit 1
else
echo -n "cc65: "
cc65 -V
Expand Down
1 change: 1 addition & 0 deletions Tools/build-65c816
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
X=`which cc65`
if [ "$X" = "" ]; then
echo "CC65 is required"
exit 1
else
echo -n "cc65: "
cc65 -V
Expand Down
1 change: 1 addition & 0 deletions Tools/build-6800
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ fi
X=`which cc68`
if [ "$X" = "" ]; then
echo "CC68 is required: see https://github.com/EtchedPixels/CC6303/"
exit 1
fi
1 change: 1 addition & 0 deletions Tools/build-6803
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ fi
X=`which cc68`
if [ "$X" = "" ]; then
echo "CC68 is required: see https://github.com/EtchedPixels/CC6303/"
exit 1
fi
2 changes: 2 additions & 0 deletions Tools/build-6809
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
X=`which m6809-unknown-gcc`
if [ "$X" = "" ]; then
echo "GCC is required: see http://www.lwtools.ca/"
exit 1
fi
X=`which lwasm`
if [ "$X" = "" ]; then
echo "LWTools is required: http://www.lwtools.ca/"
exit 1
fi
1 change: 1 addition & 0 deletions Tools/build-68hc11
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
X=`which m6811-elf-gcc`
if [ "$X" = "" ]; then
echo "gcc: m6811-elf-gcc is required"
exit 1
fi
3 changes: 2 additions & 1 deletion Tools/build-armm0
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

X=`which /opt/gcc-arm-eabi/bin/arm-none-eabi-gcc`
if [ "$X" = "" ]; then
echo "gcc: /opt/gcc-arm-eabi/bin/arm-none-eabi-gcc"
echo "gcc: /opt/gcc-arm-eabi/bin/arm-none-eabi-gcc is required"
exit 1
fi
3 changes: 2 additions & 1 deletion Tools/build-armm4
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

X=`which /opt/gcc-arm-eabi/bin/arm-none-eabi-gcc`
if [ "$X" = "" ]; then
echo "gcc: /opt/gcc-arm-eabi/bin/arm-none-eabi-gcc"
echo "gcc: /opt/gcc-arm-eabi/bin/arm-none-eabi-gcc is required"
exit 1
fi
1 change: 1 addition & 0 deletions Tools/build-esp32
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
X=`which xtensa-esp32-elf-gcc`
if [ "$X" = "" ]; then
echo "gcc: xtensa-esp32-elf-gcc is required"
exit 1
fi
3 changes: 2 additions & 1 deletion Tools/build-esp8266
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh

X=`xtensa-lx106-elf-gcc`
X=`which xtensa-lx106-elf-gcc`
if [ "$X" = "" ]; then
echo "gcc: xtensa-lx106-elf-gcc is required"
exit 1
fi
3 changes: 2 additions & 1 deletion Tools/build-ns32k
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

X=`which ns32k-pc532-netbsd-gcc`
if [ "$X" = "" ]; then
echo "gcc: ns32k-pc532-netbsd-gcc"
echo "gcc: ns32k-pc532-netbsd-gcc is required"
exit 1
fi
3 changes: 2 additions & 1 deletion Tools/build-riscv32
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

X=`which riscv-unknown-elf-gcc`
if [ "$X" = "" ]; then
echo "gcc: riscv-unknown-elf-gcc"
echo "gcc: riscv-unknown-elf-gcc is required"
exit 1
fi

0 comments on commit 3b2c6d5

Please sign in to comment.