Merge pull request #10060 from cladmi/pr/tests/build_system_checks
static_tests: add build system checks
This commit is contained in:
commit
d3e9eec8fe
1
dist/tools/ci/build_and_test.sh
vendored
1
dist/tools/ci/build_and_test.sh
vendored
@ -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
|
|||||||
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)))
|
|||||||
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)))
|
|||||||
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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user