2015-04-17 20:10:46 +08:00
|
|
|
UIP_MODULES = net/ip/contiki/ip \
|
2015-04-22 14:43:18 +08:00
|
|
|
net/ip/contiki/ipv6 \
|
|
|
|
net/ip/contiki/mac \
|
|
|
|
net/ip/contiki/mac/sicslowmac \
|
|
|
|
net/ip/contiki/llsec \
|
|
|
|
net/ip/contiki/os/dev \
|
|
|
|
net/ip/contiki/os/sys \
|
|
|
|
net/ip/contiki/os/lib
|
2015-04-17 20:10:46 +08:00
|
|
|
|
|
|
|
EXTRA_CFLAGS += ${PROJECTINCLUDE}
|
|
|
|
EXTRA_CFLAGS += -I${srctree}/net/ip/contiki
|
2015-06-08 21:23:20 +08:00
|
|
|
EXTRA_CFLAGS += -I${srctree}/net/ip/contiki/os/lib
|
|
|
|
EXTRA_CFLAGS += -I${srctree}/net/ip/contiki/os
|
2015-04-17 20:10:46 +08:00
|
|
|
EXTRA_CFLAGS += -I${srctree}/net/ip
|
|
|
|
EXTRA_CFLAGS += -DNETSTACK_CONF_WITH_IPV6=1
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NETWORKING_WITH_RPL),y)
|
|
|
|
EXTRA_CFLAGS += -DUIP_CONF_IPV6_RPL=1
|
|
|
|
UIP_MODULES += ${srctree}/net/ip/contiki/rpl
|
|
|
|
else
|
|
|
|
EXTRA_CFLAGS += -DUIP_CONF_IPV6_RPL=0
|
|
|
|
endif
|
|
|
|
|
2015-06-16 21:31:39 +08:00
|
|
|
MODULES_SOURCES = ${foreach d, $(UIP_MODULES), ${wildcard $(ZEPHYR_BASE)/$(d)/*.c}}
|
|
|
|
MODULES_FILES = ${foreach f, $(MODULES_SOURCES), ${subst $(ZEPHYR_BASE)/net/ip/,,${f}}}
|
2015-04-17 20:10:46 +08:00
|
|
|
obj-y = ${foreach f, $(MODULES_FILES), ${subst .c,.o,${f}}}
|
|
|
|
|
2015-04-22 14:43:18 +08:00
|
|
|
obj-y += net_init.o \
|
|
|
|
net_buf.o \
|
2015-04-23 16:20:42 +08:00
|
|
|
net_context.o \
|
2015-04-22 14:43:18 +08:00
|
|
|
contiki/netstack.o \
|
|
|
|
contiki/packetbuf.o \
|
|
|
|
contiki/uip-driver.o \
|
|
|
|
contiki/nbr-table.o \
|
|
|
|
contiki/linkaddr.o \
|
|
|
|
contiki/queuebuf.o
|
|
|
|
|
2015-04-28 21:23:43 +08:00
|
|
|
ifeq ($(CONFIG_NETWORKING_WITH_LOGGING),y)
|
|
|
|
EXTRA_CFLAGS += -DUIP_CONF_LOGGING=1
|
|
|
|
obj-y += contiki/uip-log.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2015-04-17 20:10:46 +08:00
|
|
|
# workaround for include file location
|
2015-06-16 21:31:39 +08:00
|
|
|
CREATE_INCLUDE_LINK_net := $(shell ln -s ${ZEPHYR_BASE}/net/ip/contiki ${ZEPHYR_BASE}/net/ip/contiki/net > /dev/null 2>&1)
|