Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static_tests: add build system checks #10060

Merged
merged 3 commits into from
Nov 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dist/tools/ci/build_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ then
run ./dist/tools/coccinelle/check.sh
run ./dist/tools/flake8/check.sh
run ./dist/tools/headerguards/check.sh
run ./dist/tools/buildsystem_sanity_check/check.sh
exit $RESULT
fi

Expand Down
10 changes: 2 additions & 8 deletions pkg/fatfs/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,5 @@ USEMODULE += fatfs_diskio_mtd
USEMODULE += auto_init_storage
USEMODULE += mtd

include $(RIOTBASE)/boards/$(BOARD)/Makefile.features

#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
# Use RTC for timestamps if available
FEATURES_OPTIONAL += periph_rtc
7 changes: 7 additions & 0 deletions pkg/fatfs/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ ifneq (,$(filter fatfs_vfs,$(USEMODULE)))
DIRS += $(RIOTBASE)/pkg/fatfs/fatfs_vfs
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)
CFLAGS += -Wno-empty-body
endif
2 changes: 1 addition & 1 deletion sys/shell/commands/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ ifneq (,$(filter cord_ep,$(USEMODULE)))
SRC += sc_cord_ep.c
endif

ifneq (,$(filter periph_rtc,$(FEATURES_PROVIDED)))
ifneq (,$(filter periph_rtc,$(USEMODULE)))
SRC += sc_rtc.c
endif

Expand Down