1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/flashdb/Makefile.dep
2023-08-09 15:47:49 +02:00

33 lines
736 B
Makefile

# FlashDB is only supported by 32 bit architectures
FEATURES_REQUIRED += arch_32bit
CFLAGS += -DFDB_USING_NATIVE_ASSERT
ifneq (,$(filter flashdb_tsdb,$(USEMODULE)))
CFLAGS += -DFDB_USING_TSDB
endif
ifneq (,$(filter flashdb_kvdb_auto_update,$(USEMODULE)))
CFLAGS += -DFDB_KV_AUTO_UPDATE
USEMODULE += flashdb_kvdb
endif
ifneq (,$(filter flashdb_kvdb,$(USEMODULE)))
CFLAGS += -DFDB_USING_KVDB
endif
ifneq (,$(filter flashdb_vfs,$(USEMODULE)))
USEMODULE += vfs
endif
ifneq (,$(filter flashdb_mtd,$(USEMODULE)))
CFLAGS += -DFDB_USING_FAL_MODE
USEMODULE += flashdb_fal
USEMODULE += mtd
else
ifeq (native, $(BOARD))
CFLAGS += -DFDB_USING_FILE_POSIX_MODE
else
CFLAGS += -DFDB_USING_FILE_LIBC_MODE
endif
endif