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

33 lines
748 B
Makefile
Raw Normal View History

2022-02-01 22:33:35 +01:00
# FlashDB is only supported by 32 bit architectures
FEATURES_REQUIRED_ANY += arch_32bit|arch_64bit
2023-08-07 17:29:07 +02:00
CFLAGS += -DFDB_USING_NATIVE_ASSERT
2022-02-01 22:33:35 +01:00
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 ($(CPU),native)
2022-02-01 22:33:35 +01:00
CFLAGS += -DFDB_USING_FILE_POSIX_MODE
else
CFLAGS += -DFDB_USING_FILE_LIBC_MODE
endif
endif