2022-02-01 22:33:35 +01:00
|
|
|
# FlashDB is only supported by 32 bit architectures
|
2024-01-12 17:53:46 +01:00
|
|
|
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
|
2024-02-02 15:41:31 +01:00
|
|
|
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
|