From fc20a0fe3ecc559bd9f8e66c74a6de34debdaa0d Mon Sep 17 00:00:00 2001 From: Buke Po Date: Tue, 27 Sep 2016 12:54:36 +0800 Subject: [PATCH] add checks into cc2538 makefile to support enabling cli-logging, commissioner and joiner (#693) --- examples/Makefile-cc2538 | 12 ++++++++++++ examples/Makefile-posix | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/examples/Makefile-cc2538 b/examples/Makefile-cc2538 index 20bf53dc6..17c66c69d 100644 --- a/examples/Makefile-cc2538 +++ b/examples/Makefile-cc2538 @@ -49,6 +49,18 @@ configure_OPTIONS = \ --with-platform-info=CC2538 \ $(NULL) +ifeq ($(CLI_LOGGING),1) +configure_OPTIONS += --enable-cli-logging +endif + +ifeq ($(COMMISSIONER),1) +configure_OPTIONS += --enable-commissioner +endif + +ifeq ($(JOINER),1) +configure_OPTIONS += --enable-joiner +endif + COMMONCFLAGS := \ -fdata-sections \ -ffunction-sections \ diff --git a/examples/Makefile-posix b/examples/Makefile-posix index b12c5b764..743b9b4e2 100644 --- a/examples/Makefile-posix +++ b/examples/Makefile-posix @@ -103,7 +103,7 @@ endif ifeq ($(DEBUG),1) configure_OPTIONS += --enable-debug --enable-optimization=no else -configure_OPTIONS += +configure_OPTIONS += endif ifndef BuildJobs