File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
NUM_JOBS=$( nproc 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || 4)
4
4
5
+ export TOCK_BUILDALL=1
6
+
5
7
set -e
6
8
set -u
7
9
set -o pipefail
Original file line number Diff line number Diff line change @@ -10,9 +10,15 @@ CXX_SRCS := $(wildcard *.cc)
10
10
11
11
override CPPFLAGS += -DRADIOLIB_CLOCK_DRIFT_MS=9
12
12
13
- ifneq ($(CI ) ,)
13
+ # If we are building for a testing configuration (e.g. CI) then it's okay to
14
+ # use the example config header. However, if someone is doing local testing,
15
+ # especially of a different thing, we don't want to accidentally overwrite
16
+ # the build obeject here with the example config when a real one exists.
17
+ ifneq ($(TOCK_BUILDALL ) ,)
18
+ ifeq ($(wildcard radioConfig.h) ,)
14
19
override CPPFLAGS += "-DRADIO_CONFIG_CI=radioConfig_example.h"
15
20
endif
21
+ endif
16
22
17
23
# Use the libtock-c Make system
18
24
EXTERN_LIBS += $(TOCK_USERLAND_BASE_DIR ) /RadioLib
You can’t perform that action at this time.
0 commit comments