mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/fatfs: fix declaration of periph_rtc optional dependency
* Declare optional dependency to periph_rtc * Move CFLAGS definition to Makefile.include
This commit is contained in:
parent
58500f92c5
commit
c7de150ec3
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user