1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/filesystem/Makefile
2020-05-26 16:22:31 +02:00

52 lines
1.3 KiB
Makefile

# name of your application
APPLICATION = filesystem
# If no BOARD is found in the environment, use this default:
BOARD ?= native
# Blacklisting msp430-based boards, as file syscalls are not supported
FEATURES_BLACKLIST += arch_msp430
# This has to be the absolute path to the RIOT base directory:
RIOTBASE ?= $(CURDIR)/../..
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
DEVELHELP ?= 1
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1
# Modules to include:
USEMODULE += shell
USEMODULE += shell_commands
USEMODULE += ps
# Use MTD (flash layer)
USEMODULE += mtd
# USEMODULE += mtd_sdcard
# Use VFS
USEMODULE += vfs
# Use a file system
USEMODULE += littlefs
# USEMODULE += spiffs
# USEMODULE += fatfs_vfs
USEMODULE += constfs
# USEMODULE += devfs
# Set file systems specific variables
ifneq (,$(filter littlefs, $(USEMODULE)))
CFLAGS += -DVFS_FILE_BUFFER_SIZE=56 -DVFS_DIR_BUFFER_SIZE=44
else ifneq (,$(filter spiffs, $(USEMODULE)))
SPIFFS_NB_FD ?= 8
CFLAGS += '-DSPIFFS_FS_FD_SPACE_SIZE=(32 * $(SPIFFS_NB_FD))'
else ifneq (,$(filter fatfs_vfs, $(USEMODULE)))
CFLAGS += -DVFS_FILE_BUFFER_SIZE=72 -DVFS_DIR_BUFFER_SIZE=44
endif
include $(RIOTBASE)/Makefile.include