net: zoap_server: Unify Makefile and add prj file
Modify the Makefile to unify with other sample apps and add the arduino 101 configuration file. Signed-off-by: Wu Jiequan <jiequanx.wu@intel.com>
This commit is contained in:
parent
c6fcda19a3
commit
350d5d4d60
5 changed files with 46 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
BOARD ?= qemu_x86
|
BOARD ?= qemu_x86
|
||||||
CONF_FILE ?= prj.conf
|
CONF_FILE ?= prj_$(BOARD).conf
|
||||||
|
|
||||||
include $(ZEPHYR_BASE)/Makefile.inc
|
include $(ZEPHYR_BASE)/Makefile.inc
|
||||||
|
|
||||||
|
|
42
samples/net/zoap_server/prj_arduino_101.conf
Normal file
42
samples/net/zoap_server/prj_arduino_101.conf
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
CONFIG_SYS_LOG=y
|
||||||
|
CONFIG_NET_LOG=y
|
||||||
|
CONFIG_INIT_STACKS=y
|
||||||
|
CONFIG_MAIN_STACK_SIZE=4096
|
||||||
|
#CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
|
# IP Stack Configuration
|
||||||
|
CONFIG_NETWORKING=y
|
||||||
|
CONFIG_NET_ARP=y
|
||||||
|
CONFIG_NET_L2_ETHERNET=y
|
||||||
|
CONFIG_NET_IPV4=y
|
||||||
|
CONFIG_NET_IPV6=y
|
||||||
|
CONFIG_NET_LOG=y
|
||||||
|
CONFIG_NET_UDP=y
|
||||||
|
CONFIG_RANDOM_GENERATOR=y
|
||||||
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
|
|
||||||
|
CONFIG_NET_BUF=y
|
||||||
|
CONFIG_NET_IFACE_UNICAST_IPV4_ADDR_COUNT=3
|
||||||
|
|
||||||
|
# ENC28J60 Ethernet Device
|
||||||
|
CONFIG_ETH_ENC28J60=y
|
||||||
|
CONFIG_ETH_ENC28J60_0=y
|
||||||
|
CONFIG_ETH_ENC28J60_0_SPI_PORT_NAME="SPI_1"
|
||||||
|
CONFIG_ETH_ENC28J60_0_MAC3=0x2D
|
||||||
|
CONFIG_ETH_ENC28J60_0_MAC4=0x30
|
||||||
|
CONFIG_ETH_ENC28J60_0_MAC5=0x36
|
||||||
|
|
||||||
|
# Arduino 101
|
||||||
|
CONFIG_SPI=y
|
||||||
|
|
||||||
|
CONFIG_SYS_LOG_SHOW_COLOR=y
|
||||||
|
CONFIG_INIT_STACKS=y
|
||||||
|
CONFIG_PRINTK=y
|
||||||
|
CONFIG_NET_STATISTICS=y
|
||||||
|
CONFIG_NET_NBUF_RX_COUNT=14
|
||||||
|
CONFIG_NET_NBUF_TX_COUNT=14
|
||||||
|
CONFIG_NET_NBUF_DATA_COUNT=30
|
||||||
|
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3
|
||||||
|
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=2
|
||||||
|
CONFIG_NET_MAX_CONTEXTS=10
|
||||||
|
|
||||||
|
CONFIG_ZOAP=y
|
|
@ -2,7 +2,7 @@
|
||||||
tags = net
|
tags = net
|
||||||
build_only = true
|
build_only = true
|
||||||
arch_whitelist = x86
|
arch_whitelist = x86
|
||||||
platform_exclude = quark_d2000_crb # not enough RAM
|
platform_exclude = quark_d2000_crb qemu_x86_iamcu # not enough RAM
|
||||||
|
|
||||||
[test_bt]
|
[test_bt]
|
||||||
tags = net bluetooth
|
tags = net bluetooth
|
||||||
|
@ -13,5 +13,5 @@ platform_whitelist = qemu_x86
|
||||||
[test_net]
|
[test_net]
|
||||||
tags = net
|
tags = net
|
||||||
build_only = true
|
build_only = true
|
||||||
extra_args = CONF_FILE="prj_cc2520.conf"
|
extra_args = CONF_FILE="prj_quark_se_c1000_devboard.conf"
|
||||||
platform_whitelist = quark_se_c1000_devboard
|
platform_whitelist = quark_se_c1000_devboard
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue