net: apps: Refactor echo-client compilation
Separate setup for different low level bearer. By default the Makefile will create version suitable for qemu testing using slip. If one writes "make NET_IFACE=802154" then IEEE 802.15.4 radio specific settings are activated. Because echo-client does not contain any processor specific settings, remove the ARM config files and rename the x86 specific ones. Change-Id: I0608b6172bdd044dd49dedf86477ef8a31391a23 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
396766531e
commit
de767512d7
8 changed files with 25 additions and 15 deletions
|
@ -16,10 +16,11 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
NET_IFACE ?= slip
|
||||
MDEF_FILE = prj.mdef
|
||||
KERNEL_TYPE = micro
|
||||
BOARD ?= qemu_x86
|
||||
CONF_FILE = prj_$(ARCH).conf
|
||||
CONF_FILE = prj_$(NET_IFACE).conf
|
||||
SOURCE_DIR = $(ZEPHYR_BASE)/samples/net/echo_client/src/
|
||||
|
||||
include $(ZEPHYR_BASE)/Makefile.inc
|
||||
|
|
10
samples/microkernel/apps/net/echo_client/prj_802154.conf
Normal file
10
samples/microkernel/apps/net/echo_client/prj_802154.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
CONFIG_NETWORKING=y
|
||||
CONFIG_NETWORKING_WITH_LOGGING=y
|
||||
CONFIG_IP_BUF_RX_SIZE=2
|
||||
CONFIG_IP_BUF_TX_SIZE=3
|
||||
CONFIG_NETWORKING_WITH_15_4=y
|
||||
CONFIG_NETWORKING_WITH_15_4_TI_CC2520=y
|
||||
CONFIG_TI_CC2520_DEBUG=y
|
||||
CONFIG_NETWORKING_WITH_6LOWPAN=y
|
||||
CONFIG_6LOWPAN_COMPRESSION_IPHC=y
|
|
@ -16,10 +16,10 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
MDEF_FILE = prj.mdef
|
||||
NET_IFACE ?= slip
|
||||
KERNEL_TYPE = nano
|
||||
BOARD ?= qemu_x86
|
||||
CONF_FILE = prj_$(ARCH).conf
|
||||
CONF_FILE = prj_$(NET_IFACE).conf
|
||||
|
||||
include $(ZEPHYR_BASE)/Makefile.inc
|
||||
include $(ZEPHYR_BASE)/samples/net/echo_server/Makefile.ipstack
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
% Application : Network listener
|
||||
|
||||
% TASK NAME PRIO ENTRY STACK GROUPS
|
||||
% ===================================================
|
||||
TASK MAIN 7 mainloop 2048 [EXE]
|
11
samples/net/echo_client/prj_802154.conf
Normal file
11
samples/net/echo_client/prj_802154.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
CONFIG_NETWORKING=y
|
||||
CONFIG_NETWORKING_WITH_LOGGING=y
|
||||
CONFIG_IP_BUF_RX_SIZE=2
|
||||
CONFIG_IP_BUF_TX_SIZE=3
|
||||
CONFIG_NANO_TIMEOUTS=y
|
||||
CONFIG_NETWORKING_WITH_15_4=y
|
||||
CONFIG_NETWORKING_WITH_15_4_TI_CC2520=y
|
||||
CONFIG_TI_CC2520_DEBUG=y
|
||||
CONFIG_NETWORKING_WITH_6LOWPAN=y
|
||||
CONFIG_6LOWPAN_COMPRESSION_IPHC=y
|
|
@ -1,7 +0,0 @@
|
|||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
CONFIG_NETWORKING=y
|
||||
CONFIG_NETWORKING_WITH_LOGGING=y
|
||||
CONFIG_NETWORKING_UART=y
|
||||
CONFIG_IP_BUF_RX_SIZE=3
|
||||
CONFIG_IP_BUF_TX_SIZE=2
|
||||
CONFIG_NANO_TIMEOUTS=y
|
Loading…
Add table
Add a link
Reference in a new issue