2019-11-29 17:54:08 +01:00
|
|
|
DIRS += $(RIOTBASE)/pkg/wakaama/contrib
|
|
|
|
|
|
|
|
INCLUDES += -I$(RIOTBASE)/pkg/wakaama/include
|
2024-07-04 21:20:00 +02:00
|
|
|
INCLUDES += -I$(PKGDIRBASE)/wakaama/include
|
2020-06-10 14:17:34 +02:00
|
|
|
INCLUDES += -I$(PKGDIRBASE)/wakaama/core
|
2024-07-04 21:20:00 +02:00
|
|
|
INCLUDES += -I$(PKGDIRBASE)/wakaama/data
|
|
|
|
INCLUDES += -I$(PKGDIRBASE)/wakaama/coap/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
|
|
|
|
2024-08-22 18:50:58 +02:00
|
|
|
# NOTE: "Default CoAP block size; Used if not set on a per-target basis"
|
|
|
|
ifeq (,$(CONFIG_LWM2M_COAP_DEFAULT_BLOCK_SIZE))
|
|
|
|
CFLAGS += -DLWM2M_COAP_DEFAULT_BLOCK_SIZE=1024
|
|
|
|
else
|
|
|
|
CFLAGS += -DLWM2M_COAP_DEFAULT_BLOCK_SIZE='1<<$(CONFIG_LWM2M_COAP_DEFAULT_BLOCK_SIZE)'
|
|
|
|
endif
|
|
|
|
|
2020-06-10 14:17:34 +02:00
|
|
|
PSEUDOMODULES += wakaama
|
2021-11-03 17:21:45 +01:00
|
|
|
PSEUDOMODULES += wakaama_client_dtls
|