Skip to content

Commit 256bcc6

Browse files
committed
build system: Enable static analysis in the CI
For a select set of boards, enable static analysis. The idea is that the benefit of static analysis for multiple boards with the same MCU family is rather limited and static analysis is costly in terms of CPU time. So we select a small list of boards to covery many MCU family without impacting CI time too much.
1 parent 56abbe5 commit 256bcc6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Makefile.include

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,29 @@ ifeq ($(RIOT_CI_BUILD),1)
520520
endif
521521
# be more quiet when building for CI
522522
QUIETER=1
523+
524+
# enable static analysis only for some boards to not spent to much CPU time
525+
BOARDS_CI_STATIC_ANALYSIS := \
526+
adafruit-itsybitsy-m4 \
527+
esp32-wroom-32 \
528+
esp32s3-devkit \
529+
frdm-k64f \
530+
hifive1b \
531+
msb-430 \
532+
msba2 \
533+
native32 \
534+
native64 \
535+
nrf52840dk \
536+
qn9080dk \
537+
samr21-xpro \
538+
stk3200 \
539+
stm32f429i-disc1 \
540+
#
541+
ifneq (,$(filter $(BOARD),$(BOARDS_CI_STATIC_ANALYSIS)))
542+
export STATIC_ANALYSIS := 1
543+
else
544+
export STATIC_ANALYSIS := 0
545+
endif
523546
endif
524547

525548
ifeq ($(QUIETER),1)

0 commit comments

Comments
 (0)