From 19868313fcc94dc679e002fd72577718692fd0ee Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 10 May 2017 15:59:44 +0300 Subject: [PATCH] net: samples: Fix the BT compilation in sample API The CFLAGS and object path were set incorrectly for Bluetooth. Signed-off-by: Jukka Rissanen --- samples/net/common/Makefile.common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/net/common/Makefile.common b/samples/net/common/Makefile.common index 6d50045b16f..c5c7d7a6665 100644 --- a/samples/net/common/Makefile.common +++ b/samples/net/common/Makefile.common @@ -7,8 +7,8 @@ # Common routines used in net samples ifeq ($(CONFIG_NET_L2_BLUETOOTH), y) -CFLAGS +=-I${ZEPHYR_BASE}/samples/bluetooth/ -obj-y += ../bluetooth/gatt/ipss.o +ccflags-y += -I${ZEPHYR_BASE}/samples/bluetooth/ +obj-y += ../../../bluetooth/gatt/ipss.o endif ifeq ($(CONFIG_NET_L2_IEEE802154), y)