2019-11-29 17:54:08 +01:00
|
|
|
DIRS += $(RIOTBASE)/pkg/wakaama/contrib
|
|
|
|
|
|
|
|
INCLUDES += -I$(RIOTBASE)/pkg/wakaama/include
|
2020-06-10 14:17:34 +02:00
|
|
|
INCLUDES += -I$(PKGDIRBASE)/wakaama/core
|
|
|
|
INCLUDES += -I$(PKGDIRBASE)/wakaama/core/er-coap-13
|
2019-12-17 13:57:01 +01:00
|
|
|
|
2019-12-17 14:06:58 +01:00
|
|
|
# NOTE: Use wakaama in client mode
|
|
|
|
CFLAGS += -DLWM2M_CLIENT_MODE
|
|
|
|
|
2019-12-17 13:57:01 +01:00
|
|
|
# Translate 'CONFIG_' options to package specific flags. This checks if the
|
2019-12-17 14:01:52 +01:00
|
|
|
# option is being set via Kconfig or CFLAGS
|
|
|
|
ifneq (,$(or $(CONFIG_LWM2M_BOOTSTRAP),$(filter -DCONFIG_LWM2M_BOOTSTRAP=1,$(CFLAGS))))
|
2020-06-10 14:18:21 +02:00
|
|
|
CFLAGS += -DLWM2M_BOOTSTRAP=1
|
2019-12-17 13:57:01 +01:00
|
|
|
endif
|
|
|
|
|
2019-12-17 14:01:52 +01:00
|
|
|
ifneq (,$(or $(CONFIG_LWM2M_WITH_LOGS),$(filter -DCONFIG_LWM2M_WITH_LOGS=1,$(CFLAGS))))
|
2020-06-10 14:18:21 +02:00
|
|
|
CFLAGS += -DLWM2M_WITH_LOGS=1
|
2019-12-17 13:57:01 +01:00
|
|
|
endif
|
2020-06-10 14:17:34 +02:00
|
|
|
|
|
|
|
PSEUDOMODULES += wakaama
|
2021-11-03 17:21:45 +01:00
|
|
|
PSEUDOMODULES += wakaama_client_dtls
|