Skip to content

Commit

Permalink
pkg/wakaama: Move client mode flag to package
Browse files Browse the repository at this point in the history
As the only implementation available in RIOT of LwM2M is the client, it
makes no sense to set this flag in every application.
  • Loading branch information
leandrolanzieri committed Dec 19, 2019
1 parent 2024ed5 commit dee81f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/wakaama/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 is not done via Kconfig
Expand Down
3 changes: 3 additions & 0 deletions pkg/wakaama/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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 being set via Kconfig or CFLAGS
ifneq (,$(or $(CONFIG_LWM2M_BOOTSTRAP),$(filter -DCONFIG_LWM2M_BOOTSTRAP=1,$(CFLAGS))))
Expand Down

0 comments on commit dee81f1

Please sign in to comment.