mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
The dependency resolution phase MUST NOT change CFLAGS. Hence, any modification of `CFLAGS` within a `Makefile.dep` is disallowed. This moves the changes to the `Makefile.include` instead.
37 lines
862 B
Makefile
37 lines
862 B
Makefile
INCLUDES += -I$(PKGDIRBASE)/flashdb/inc
|
|
INCLUDES += -I$(PKGDIRBASE)/flashdb/port/fal/inc
|
|
INCLUDES += -I$(RIOTBASE)/pkg/flashdb/include
|
|
|
|
PSEUDOMODULES += flashdb_tsdb
|
|
PSEUDOMODULES += flashdb_kvdb
|
|
PSEUDOMODULES += flashdb_kvdb_auto_update
|
|
PSEUDOMODULES += flashdb_vfs
|
|
|
|
ifneq (,$(filter flashdb_mtd,$(USEMODULE)))
|
|
DIRS += $(RIOTBASE)/pkg/flashdb/mtd
|
|
endif
|
|
|
|
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
|
|
endif
|
|
|
|
ifneq (,$(filter flashdb_kvdb,$(USEMODULE)))
|
|
CFLAGS += -DFDB_USING_KVDB
|
|
endif
|
|
|
|
ifneq (,$(filter flashdb_mtd,$(USEMODULE)))
|
|
CFLAGS += -DFDB_USING_FAL_MODE
|
|
else
|
|
ifeq ($(CPU),native)
|
|
CFLAGS += -DFDB_USING_FILE_POSIX_MODE
|
|
else
|
|
CFLAGS += -DFDB_USING_FILE_LIBC_MODE
|
|
endif
|
|
endif
|