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
Frederik Haxel 0c2cfe99e6 native64: Add Linux/x86_64 board
Adds a separate board for native64 instead of the `NATIVE_64BIT` workaround.
The files in `boards/native64` are more or less dummy files and just include
the `boards/native` logic (similar to `openlabs-kw41z-mini-256kib`).
The main logic for native is in `makefiles/arch/native.inc.mk`, `cpu/native`
and `boards/native`.

The remaining changes concern the build system, and change native board checks
to native CPU checks to cover both boards.
2024-02-05 22:01:40 +01:00

33 lines
748 B
Makefile

# FlashDB is only supported by 32 bit architectures
FEATURES_REQUIRED_ANY += arch_32bit|arch_64bit
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 ($(CPU),native)
CFLAGS += -DFDB_USING_FILE_POSIX_MODE
else
CFLAGS += -DFDB_USING_FILE_LIBC_MODE
endif
endif