1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/wakaama: Move client mode flag to package

As the only implementation available in RIOT of LwM2M is the client, it
makes no sense to set this flag in every application.
This commit is contained in:
Leandro Lanzieri 2019-12-17 14:06:58 +01:00
parent e2325ddba4
commit d6b4cde03e
No known key found for this signature in database
GPG Key ID: 39607DE6080007A3
2 changed files with 3 additions and 3 deletions

View File

@ -39,9 +39,6 @@ USEPKG += wakaama
# Uncomment to indicate that the server is a LwM2M bootstrap server
# CFLAGS += -DCONFIG_LWM2M_BOOTSTRAP=1
# NOTE: Use wakaama in client mode
CFLAGS += -DLWM2M_CLIENT_MODE
include $(RIOTBASE)/Makefile.include
# Configure server via CFLAGS only if not done via Kconfig

View File

@ -3,6 +3,9 @@ DIRS += $(RIOTBASE)/pkg/wakaama/contrib
INCLUDES += -I$(RIOTBASE)/pkg/wakaama/include
INCLUDES += -I$(PKGDIRBASE)/wakaama
# NOTE: Use wakaama in client mode
CFLAGS += -DLWM2M_CLIENT_MODE
# Translate 'CONFIG_' options to package specific flags. This checks if the
# option is set via CFLAGS
ifneq (,$(filter -DCONFIG_LWM2M_BOOTSTRAP=1,$(CFLAGS)))