summaryrefslogtreecommitdiff
path: root/samples/net/coap_server/Makefile
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-02-23 13:41:18 +0200
committerJukka Rissanen <jukka.rissanen@linux.intel.com>2016-02-29 13:01:34 +0000
commit59fa70e8ff09127beb976d55affce63ea052e43b (patch)
tree061deaaef09b0d45e89b7796a1a357d752ac25cb /samples/net/coap_server/Makefile
parentc21de2eeb5e5675a813dbbbc7ab881f8673a55a5 (diff)
net: coap_server: Add support for Bluetooth
This enables using coap_server with Bluetooth by passing CONF_FILE=prj_bt.conf, it is also enabled for testing so changes to coap_server are actually tested with NETWORKING_WITH_BT. Change-Id: I58b286520da0e0e4cba77dd52ea3f64f0268582a Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'samples/net/coap_server/Makefile')
-rw-r--r--samples/net/coap_server/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/samples/net/coap_server/Makefile b/samples/net/coap_server/Makefile
index f6ba9bc25..f8cd0cdae 100644
--- a/samples/net/coap_server/Makefile
+++ b/samples/net/coap_server/Makefile
@@ -20,8 +20,12 @@ NET_IFACE ?= slip
MDEF_FILE = prj.mdef
KERNEL_TYPE ?= nano
BOARD ?= qemu_x86
-CONF_FILE = prj_$(NET_IFACE).conf
-
-QEMU_EXTRA_FLAGS = -serial none -serial unix:/tmp/slip.sock
+CONF_FILE ?= prj_$(NET_IFACE).conf
include $(ZEPHYR_BASE)/Makefile.inc
+
+ifeq ($(CONFIG_NETWORKING_WITH_BT), n)
+ QEMU_EXTRA_FLAGS = -serial none -serial unix:/tmp/slip.sock
+else
+ QEMU_EXTRA_FLAGS = -serial unix:/tmp/bt-server-bredr
+endif