2016-11-07 21:34:08 +01:00
|
|
|
INCLUDES += -I$(PKGDIRBASE)
|
2017-07-05 14:54:42 +02:00
|
|
|
INCLUDES += -I$(RIOTPKG)/fatfs/fatfs_diskio/mtd/include
|
2020-11-10 17:59:03 +01:00
|
|
|
INCLUDES += -I$(RIOTPKG)/fatfs/vendor/include
|
2022-02-14 12:44:07 +01:00
|
|
|
# native overwrites all INCLUDES
|
|
|
|
NATIVEINCLUDES += -I$(RIOTPKG)/fatfs/vendor/include
|
2016-11-07 21:34:08 +01:00
|
|
|
|
2017-07-05 14:54:42 +02:00
|
|
|
DIRS += $(RIOTBASE)/pkg/fatfs/fatfs_diskio/mtd
|
2017-05-15 15:21:29 +02:00
|
|
|
|
2017-05-12 17:46:09 +02:00
|
|
|
ifneq (,$(filter fatfs_vfs,$(USEMODULE)))
|
2017-07-05 14:54:42 +02:00
|
|
|
DIRS += $(RIOTBASE)/pkg/fatfs/fatfs_vfs
|
2017-05-12 17:46:09 +02:00
|
|
|
endif
|
|
|
|
|
2018-06-05 10:12:03 +02:00
|
|
|
#if periph_rtc is available use it. Otherwise use static timestamps
|
2022-04-11 14:24:27 +02:00
|
|
|
ifeq (,$(filter rtt_rtc periph_rtc,$(USEMODULE)))
|
2018-06-05 10:12:03 +02:00
|
|
|
CFLAGS += -DFATFS_FFCONF_OPT_FS_NORTC=1
|
2022-04-11 14:24:27 +02:00
|
|
|
else
|
|
|
|
CFLAGS += -DFATFS_FFCONF_OPT_FS_NORTC=0
|
2018-06-05 10:12:03 +02:00
|
|
|
endif
|
|
|
|
|
2019-10-18 08:23:02 +02:00
|
|
|
ifeq ($(OS),Darwin)
|
2017-09-22 14:52:51 +02:00
|
|
|
CFLAGS += -Wno-empty-body
|
2016-11-07 21:34:08 +01:00
|
|
|
endif
|