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

static_tests: add build system checks
This commit is contained in:
Juan I Carrano 2018-11-27 15:20:45 +01:00 committed by GitHub
commit d3e9eec8fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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