Skip to content
Snippets Groups Projects
Unverified Commit d3e9eec8 authored by Juan I Carrano's avatar Juan I Carrano Committed by GitHub
Browse files

Merge pull request #10060 from cladmi/pr/tests/build_system_checks

static_tests: add build system checks
parents 0294a384 bcf0342c
No related branches found
No related tags found
No related merge requests found
...@@ -93,6 +93,7 @@ then ...@@ -93,6 +93,7 @@ then
run ./dist/tools/coccinelle/check.sh run ./dist/tools/coccinelle/check.sh
run ./dist/tools/flake8/check.sh run ./dist/tools/flake8/check.sh
run ./dist/tools/headerguards/check.sh run ./dist/tools/headerguards/check.sh
run ./dist/tools/buildsystem_sanity_check/check.sh
exit $RESULT exit $RESULT
fi fi
......
...@@ -2,11 +2,5 @@ USEMODULE += fatfs_diskio_mtd ...@@ -2,11 +2,5 @@ USEMODULE += fatfs_diskio_mtd
USEMODULE += auto_init_storage USEMODULE += auto_init_storage
USEMODULE += mtd USEMODULE += mtd
include $(RIOTBASE)/boards/$(BOARD)/Makefile.features # Use RTC for timestamps if available
FEATURES_OPTIONAL += periph_rtc
#if periph_rtc is available use it. Otherwise use static timestamps
ifneq (, $(filter periph_rtc, $(FEATURES_PROVIDED)))
CFLAGS += -DFATFS_FFCONF_OPT_FS_NORTC=0
else
CFLAGS += -DFATFS_FFCONF_OPT_FS_NORTC=1
endif
...@@ -9,6 +9,13 @@ ifneq (,$(filter fatfs_vfs,$(USEMODULE))) ...@@ -9,6 +9,13 @@ ifneq (,$(filter fatfs_vfs,$(USEMODULE)))
DIRS += $(RIOTBASE)/pkg/fatfs/fatfs_vfs DIRS += $(RIOTBASE)/pkg/fatfs/fatfs_vfs
endif endif
#if periph_rtc is available use it. Otherwise use static timestamps
ifneq (,$(filter periph_rtc,$(USEMODULE)))
CFLAGS += -DFATFS_FFCONF_OPT_FS_NORTC=0
else
CFLAGS += -DFATFS_FFCONF_OPT_FS_NORTC=1
endif
ifeq ($(shell uname -s),Darwin) ifeq ($(shell uname -s),Darwin)
CFLAGS += -Wno-empty-body CFLAGS += -Wno-empty-body
endif endif
...@@ -70,7 +70,7 @@ ifneq (,$(filter cord_ep,$(USEMODULE))) ...@@ -70,7 +70,7 @@ ifneq (,$(filter cord_ep,$(USEMODULE)))
SRC += sc_cord_ep.c SRC += sc_cord_ep.c
endif endif
ifneq (,$(filter periph_rtc,$(FEATURES_PROVIDED))) ifneq (,$(filter periph_rtc,$(USEMODULE)))
SRC += sc_rtc.c SRC += sc_rtc.c
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment