2015-10-08 15:58:42 +08:00
|
|
|
ccflags-y += -I${srctree}/net/ip/contiki
|
|
|
|
ccflags-y += -I${srctree}/net/ip/contiki/os/lib
|
|
|
|
ccflags-y += -I${srctree}/net/ip/contiki/os
|
|
|
|
ccflags-y += -I${srctree}/net/ip
|
|
|
|
ccflags-y += -I${srctree}/include/drivers
|
2015-04-17 20:10:46 +08:00
|
|
|
|
2016-05-12 04:15:16 +08:00
|
|
|
# Zephyr specific files
|
2015-11-11 20:02:10 +08:00
|
|
|
obj-y = net_core.o \
|
2015-10-30 23:42:03 +08:00
|
|
|
ip_buf.o \
|
|
|
|
net_context.o
|
2015-06-12 21:18:06 +08:00
|
|
|
|
2015-11-06 18:48:03 +08:00
|
|
|
obj-$(CONFIG_L2_BUFFERS) += l2_buf.o
|
|
|
|
|
2015-06-12 21:18:06 +08:00
|
|
|
# Contiki IP stack files
|
|
|
|
obj-y += contiki/netstack.o \
|
|
|
|
contiki/nbr-table.o \
|
|
|
|
contiki/linkaddr.o \
|
|
|
|
contiki/ip/uip-debug.o \
|
|
|
|
contiki/ip/uip-packetqueue.o \
|
|
|
|
contiki/ip/uip-udp-packet.o \
|
|
|
|
contiki/ip/udp-socket.o \
|
|
|
|
contiki/ip/simple-udp.o \
|
|
|
|
contiki/ip/uiplib.o \
|
|
|
|
contiki/ip/uip-nameserver.o \
|
|
|
|
contiki/ip/tcpip.o \
|
|
|
|
contiki/os/sys/process.o \
|
|
|
|
contiki/os/sys/stimer.o \
|
|
|
|
contiki/os/sys/etimer.o \
|
|
|
|
contiki/os/sys/timer.o \
|
|
|
|
contiki/os/sys/arg.o \
|
|
|
|
contiki/os/sys/ctimer.o \
|
|
|
|
contiki/os/sys/rtimer.o \
|
|
|
|
contiki/os/sys/clock.o \
|
|
|
|
contiki/os/dev/nullradio.o \
|
|
|
|
contiki/os/lib/mmem.o \
|
|
|
|
contiki/os/lib/memb.o \
|
|
|
|
contiki/os/lib/list.o \
|
|
|
|
contiki/os/lib/random.o \
|
|
|
|
contiki/os/lib/aes-128.o \
|
|
|
|
contiki/llsec/nullsec.o
|
|
|
|
|
2015-07-01 21:14:58 +08:00
|
|
|
obj-$(CONFIG_NETWORKING_WITH_IPV6) += \
|
|
|
|
contiki/ipv6/uip6.o \
|
|
|
|
contiki/ipv6/uip-icmp6.o \
|
|
|
|
contiki/ipv6/uip-ds6.o \
|
|
|
|
contiki/ipv6/uip-nd6.o \
|
|
|
|
contiki/ipv6/uip-ds6-route.o \
|
|
|
|
contiki/ipv6/uip-ds6-nbr.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_NETWORKING_WITH_IPV4) += \
|
|
|
|
contiki/ipv4/uip_arp.o \
|
|
|
|
contiki/ipv4/uip.o \
|
|
|
|
contiki/ipv4/uip-neighbor.o
|
|
|
|
|
2015-07-08 13:51:57 +08:00
|
|
|
obj-$(CONFIG_NETWORKING_WITH_TCP) += contiki/ip/psock.o
|
|
|
|
|
2015-06-12 21:18:06 +08:00
|
|
|
# RPL (RFC 6550) support
|
2015-04-17 20:10:46 +08:00
|
|
|
ifeq ($(CONFIG_NETWORKING_WITH_RPL),y)
|
2015-10-08 15:58:42 +08:00
|
|
|
ccflags-y += -DUIP_CONF_IPV6_RPL=1
|
2015-09-22 18:48:08 +08:00
|
|
|
obj-y += contiki/rpl/rpl-dag.o \
|
2015-06-12 21:18:06 +08:00
|
|
|
contiki/rpl/rpl-timers.o \
|
|
|
|
contiki/rpl/rpl.o \
|
|
|
|
contiki/rpl/rpl-ext-header.o \
|
|
|
|
contiki/rpl/rpl-icmp6.o \
|
|
|
|
contiki/ipv6/multicast/uip-mcast6-route.o \
|
|
|
|
contiki/ipv6/multicast/smrf.o \
|
|
|
|
contiki/ipv6/multicast/uip-mcast6-stats.o
|
2015-09-22 18:48:08 +08:00
|
|
|
|
|
|
|
obj-$(CONFIG_RPL_WITH_OF0) += contiki/rpl/rpl-of0.o
|
|
|
|
obj-$(CONFIG_RPL_WITH_MRHOF) += contiki/rpl/rpl-mrhof.o
|
2015-04-17 20:10:46 +08:00
|
|
|
else
|
2015-10-08 15:58:42 +08:00
|
|
|
ccflags-y += -DUIP_CONF_IPV6_RPL=0
|
2015-04-17 20:10:46 +08:00
|
|
|
endif
|
|
|
|
|
2015-06-12 21:18:06 +08:00
|
|
|
# 6LoWPAN support
|
2015-05-05 20:16:38 +08:00
|
|
|
ifeq ($(CONFIG_NETWORKING_WITH_6LOWPAN),y)
|
2015-10-08 15:58:42 +08:00
|
|
|
ccflags-y += -DSICSLOWPAN_CONF_ENABLE
|
2015-05-25 20:07:21 +08:00
|
|
|
obj-y += contiki/sicslowpan/sicslowpan_compression.o
|
2015-11-10 15:52:32 +08:00
|
|
|
obj-$(CONFIG_NETWORKING_WITH_15_4) += contiki/sicslowpan/sicslowpan_fragmentation.o
|
2015-05-05 20:16:38 +08:00
|
|
|
else
|
2016-03-10 18:08:50 +08:00
|
|
|
obj-$(CONFIG_NETWORKING_WITH_15_4) += contiki/mac/framer-nullmac.o \
|
2016-04-15 20:47:09 +08:00
|
|
|
contiki/mac/simplerdc.o \
|
2015-11-06 18:48:03 +08:00
|
|
|
contiki/sicslowpan/null_compression.o \
|
|
|
|
contiki/sicslowpan/null_fragmentation.o
|
2015-05-05 20:16:38 +08:00
|
|
|
endif
|
|
|
|
|
2016-03-16 19:23:32 +08:00
|
|
|
# RDC driver
|
|
|
|
ifeq ($(CONFIG_NETWORKING_WITH_15_4_RDC_SICSLOWMAC),y)
|
|
|
|
obj-$(CONFIG_NETWORKING_WITH_15_4) += contiki/mac/sicslowmac/sicslowmac.o
|
|
|
|
else
|
2016-04-15 20:00:50 +08:00
|
|
|
ifeq ($(CONFIG_NETWORKING_WITH_15_4_RDC_SIMPLE),y)
|
|
|
|
obj-$(CONFIG_NETWORKING_WITH_15_4) += contiki/mac/simplerdc.o
|
2016-03-16 19:23:32 +08:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-10-08 15:58:42 +08:00
|
|
|
ccflags-$(CONFIG_NETWORKING_WITH_LOGGING) += -DUIP_CONF_LOGGING=1
|
|
|
|
|
2015-06-12 21:18:06 +08:00
|
|
|
obj-$(CONFIG_NETWORKING_WITH_LOGGING) += contiki/uip-log.o
|
2015-04-28 21:23:43 +08:00
|
|
|
|
2015-05-22 15:46:24 +08:00
|
|
|
obj-$(CONFIG_NETWORKING_WITH_LOOPBACK) += net_driver_loopback.o
|
2015-06-12 21:18:06 +08:00
|
|
|
obj-$(CONFIG_NETWORKING_WITH_15_4_LOOPBACK) += dummy_15_4_radio.o
|
2015-07-10 19:04:35 +08:00
|
|
|
obj-$(CONFIG_NETWORKING_WITH_15_4_LOOPBACK_UART) += dummy_15_4_radio.o
|
2015-06-12 21:18:06 +08:00
|
|
|
obj-$(CONFIG_NETWORKING_WITH_15_4) += net_driver_15_4.o \
|
2015-11-06 18:48:03 +08:00
|
|
|
contiki/packetbuf.o \
|
|
|
|
contiki/queuebuf.o \
|
|
|
|
contiki/mac/mac.o \
|
|
|
|
contiki/mac/framer.o \
|
2015-06-12 21:18:06 +08:00
|
|
|
contiki/mac/frame802154.o \
|
|
|
|
contiki/mac/framer-802154.o \
|
2015-09-25 21:56:33 +08:00
|
|
|
contiki/mac/mac-sequence.o
|
2015-04-28 21:23:43 +08:00
|
|
|
|
2016-03-10 18:08:50 +08:00
|
|
|
obj-$(CONFIG_NETWORKING_WITH_15_4_MAC_NULL) += contiki/mac/nullmac.o
|
|
|
|
obj-$(CONFIG_NETWORKING_WITH_15_4_MAC_CSMA) += contiki/mac/csma.o
|
|
|
|
|
2015-11-04 18:08:08 +08:00
|
|
|
obj-$(CONFIG_15_4_BEACON_SUPPORT) += contiki/mac/handler-802154.o
|
|
|
|
|
2015-11-10 15:52:32 +08:00
|
|
|
obj-$(CONFIG_NETWORKING_WITH_BT) += net_driver_bt.o \
|
|
|
|
contiki/packetbuf.o \
|
|
|
|
contiki/queuebuf.o \
|
|
|
|
contiki/mac/mac.o \
|
|
|
|
contiki/mac/framer.o \
|
|
|
|
contiki/mac/framer-nullmac.o \
|
|
|
|
contiki/sicslowpan/null_fragmentation.o
|
|
|
|
|
2015-06-12 21:18:06 +08:00
|
|
|
# At the moment we only need nullsec driver for 802.15.4
|
|
|
|
#obj-$(CONFIG_NETWORKING_WITH_15_4) += contiki/llsec/ccm-star.o \
|
|
|
|
# contiki/llsec/ccm-star.o \
|
|
|
|
# contiki/llsec/anti-replay.o
|
2015-06-11 13:51:53 +08:00
|
|
|
|
2016-09-03 07:51:16 +08:00
|
|
|
ifeq ($(CONFIG_NETWORKING_WITH_15_4),y)
|
2015-06-12 21:18:06 +08:00
|
|
|
obj-y += contiki/mac/nullmac.o \
|
2015-09-17 18:38:32 +08:00
|
|
|
contiki/mac/framer-nullmac.o \
|
2016-04-15 20:47:09 +08:00
|
|
|
contiki/mac/simplerdc.o
|
2015-06-11 15:17:54 +08:00
|
|
|
endif
|
|
|
|
|
2015-06-12 21:18:06 +08:00
|
|
|
obj-$(CONFIG_NETWORKING_UART) += contiki/os/dev/slip.o \
|
2015-06-25 18:33:08 +08:00
|
|
|
contiki/os/dev/slip-arch.o \
|
|
|
|
net_driver_slip.o
|
2015-06-11 13:51:53 +08:00
|
|
|
|
2015-10-15 12:52:49 +08:00
|
|
|
obj-$(CONFIG_ETHERNET) += net_driver_ethernet.o
|
|
|
|
|
2015-10-08 15:58:42 +08:00
|
|
|
ccflags-$(CONFIG_TINYDTLS) += -DCONTIKI_TARGET_ZEPHYR=1
|
|
|
|
ccflags-$(CONFIG_TINYDTLS) += -DWITH_SHA256=1
|
|
|
|
ccflags-$(CONFIG_TINYDTLS) += -DDTLS_TICKS_PER_SECOND=sys_clock_ticks_per_sec
|
|
|
|
ccflags-$(CONFIG_TINYDTLS) += -I${srctree}/net/ip/contiki/os/sys
|
|
|
|
ccflags-$(CONFIG_TINYDTLS) += -I${srctree}/net/ip/tinydtls
|
|
|
|
|
2015-08-03 22:16:14 +08:00
|
|
|
obj-$(CONFIG_TINYDTLS) += tinydtls/dtls.o \
|
|
|
|
tinydtls/crypto.o \
|
|
|
|
tinydtls/hmac.o \
|
|
|
|
tinydtls/aes/rijndael.o \
|
|
|
|
tinydtls/sha2/sha2.o \
|
|
|
|
tinydtls/ccm.o \
|
|
|
|
tinydtls/netq.o \
|
|
|
|
tinydtls/dtls_time.o \
|
|
|
|
tinydtls/peer.o \
|
|
|
|
tinydtls/session.o \
|
|
|
|
tinydtls/ecc/ecc.o
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_TINYDTLS_DEBUG),)
|
2015-10-08 15:58:42 +08:00
|
|
|
ccflags-y += -DNDEBUG
|
2015-08-03 22:16:14 +08:00
|
|
|
endif
|
|
|
|
obj-$(CONFIG_TINYDTLS_DEBUG) += tinydtls/debug.o
|
|
|
|
|
2015-10-08 15:58:42 +08:00
|
|
|
ccflags-$(CONFIG_ER_COAP) += -I${srctree}/net/ip/rest-engine
|
|
|
|
ccflags-$(CONFIG_ER_COAP) += -I${srctree}/net/ip/er-coap
|
|
|
|
|
2015-08-26 22:31:54 +08:00
|
|
|
obj-$(CONFIG_ER_COAP) += er-coap/er-coap.o \
|
|
|
|
er-coap/er-coap-engine.o \
|
|
|
|
er-coap/er-coap-transactions.o \
|
|
|
|
er-coap/er-coap-observe.o \
|
|
|
|
er-coap/er-coap-separate.o \
|
|
|
|
er-coap/er-coap-res-well-known-core.o \
|
|
|
|
er-coap/er-coap-block1.o \
|
|
|
|
er-coap/er-coap-context.o \
|
|
|
|
rest-engine/rest-engine.o
|
|
|
|
|
2015-08-26 22:33:05 +08:00
|
|
|
obj-$(CONFIG_ER_COAP_CLIENT) += er-coap/er-coap-observe-client.o
|
2016-05-24 18:22:10 +08:00
|
|
|
|
|
|
|
obj-$(CONFIG_DHCP) += contiki/ip/dhcpc.o
|
2016-08-10 21:33:41 +08:00
|
|
|
|
|
|
|
obj-$(CONFIG_NETWORKING_WITH_TRICKLE) += \
|
|
|
|
contiki/trickle/trickle-timer.o
|