File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -e
4
+
3
5
pushd RadioLib/examples/NonArduino/Tock/
4
6
5
- rm -rf build-*
7
+ rm -rf build-arm build-riscv
6
8
7
9
# Change the source to point to the current libtock-c directory
8
10
# Note, x-platform `sed -i` has odd, but particular syntax
@@ -21,7 +23,8 @@ cmake -G "CodeBlocks - Unix Makefiles" ..
21
23
# This will fail to link, as it can't find the libtock-c libraries
22
24
# That's fine for us though, as we just need to build the RadioLib
23
25
# library, not the entire example application
24
- make -j4 2> /dev/null
26
+ make -j4 2> /dev/null || true
27
+ test -f RadioLib/libRadioLib.a || make
25
28
cd ../
26
29
27
30
mkdir -p build-riscv
@@ -33,7 +36,8 @@ cmake -G "CodeBlocks - Unix Makefiles" -DRISCV_BUILD=1 ..
33
36
# This will fail to link, as it can't find the libtock-c libraries
34
37
# That's fine for us though, as we just need to build the RadioLib
35
38
# library, not the entire example application
36
- make -j4 2> /dev/null
39
+ make -j4 2> /dev/null || true
40
+ test -f RadioLib/libRadioLib.a || make
37
41
cd ../
38
42
39
43
popd
Original file line number Diff line number Diff line change @@ -29,8 +29,5 @@ LIBS_rv32imac += ../RadioLib/examples/NonArduino/Tock/build-riscv/RadioLib/libRa
29
29
# building the application.
30
30
include $(TOCK_USERLAND_BASE_DIR ) /AppMakefile.mk
31
31
32
- ../RadioLib/examples/NonArduino/Tock/build-arm/RadioLib/libRadioLib.a :
33
- cd ../ && ./build-RadioLib.sh
34
-
35
- ../RadioLib/examples/NonArduino/Tock/build-riscv/RadioLib/libRadioLib.a :
32
+ ../RadioLib/examples/NonArduino/Tock/build-arm/RadioLib/libRadioLib.a ../RadioLib/examples/NonArduino/Tock/build-riscv/RadioLib/libRadioLib.a :
36
33
cd ../ && ./build-RadioLib.sh
You can’t perform that action at this time.
0 commit comments