mirror of
https://github.com/espressif/openthread.git
synced 2026-09-06 17:20:09 +00:00
Add "--enable-ftd" build option (#1384)
* Add a new build target: ncp-mtd. * Platform with "--enable-ftd" build option will build both MTD and FTD. * Platform without "--enable-ftd" build option will only build MTD.
This commit is contained in:
@@ -57,7 +57,7 @@ sudo pip install --user scapy==2.3.2
|
||||
-p <PIPE>, --pipe=<PIPE>
|
||||
Open a piped process connection to the OpenThread NCP device
|
||||
where <PIPE> is the command to start an emulator, such as
|
||||
"ot-ncp". Spinel-cli will communicate with the child process
|
||||
"ot-ncp-ftd". Spinel-cli will communicate with the child process
|
||||
via stdin/stdout.
|
||||
|
||||
-s <SOCKET>, --socket=<SOCKET>
|
||||
@@ -88,7 +88,7 @@ documented in the command reference section.
|
||||
```
|
||||
openthread$ cd tools/spinel-cli/
|
||||
spinel-cli$ ./spinel-cli.py
|
||||
Opening pipe to ../../examples/apps/ncp/ot-ncp 1
|
||||
Opening pipe to ../../examples/apps/ncp/ot-ncp-ftd 1
|
||||
spinel-cli > help
|
||||
|
||||
Available commands (type help <name> for more information):
|
||||
|
||||
@@ -46,7 +46,7 @@ sudo pip install --user ipaddress
|
||||
-p <PIPE>, --pipe=<PIPE>
|
||||
Open a piped process connection to the OpenThread NCP device
|
||||
where <PIPE> is the command to start an emulator, such as
|
||||
"ot-ncp". Spinel-cli will communicate with the child process
|
||||
"ot-ncp-ftd". Spinel-cli will communicate with the child process
|
||||
via stdin/stdout.
|
||||
|
||||
-s <SOCKET>, --socket=<SOCKET>
|
||||
|
||||
@@ -47,7 +47,7 @@ from spinel.stream import StreamOpen
|
||||
from spinel.pcap import PcapCodec
|
||||
|
||||
|
||||
# Nodeid is required to execute ot-ncp for its sim radio socket port.
|
||||
# Nodeid is required to execute ot-ncp-ftd for its sim radio socket port.
|
||||
# This is maximum that works for MacOS.
|
||||
DEFAULT_NODEID = 34 # same as WELLKNOWN_NODE_ID
|
||||
DEFAULT_CHANNEL = 11
|
||||
@@ -100,7 +100,7 @@ def main():
|
||||
|
||||
# Set default stream to pipe
|
||||
stream_type = 'p'
|
||||
stream_descriptor = "../../examples/apps/ncp/ot-ncp "+options.nodeid
|
||||
stream_descriptor = "../../examples/apps/ncp/ot-ncp-ftd "+options.nodeid
|
||||
|
||||
if options.uart:
|
||||
stream_type = 'u'
|
||||
|
||||
@@ -2076,7 +2076,7 @@ def main():
|
||||
|
||||
# Set default stream to pipe
|
||||
stream_type = 'p'
|
||||
stream_descriptor = "../../examples/apps/ncp/ot-ncp " + options.nodeid
|
||||
stream_descriptor = "../../examples/apps/ncp/ot-ncp-ftd " + options.nodeid
|
||||
|
||||
if options.uart:
|
||||
stream_type = 'u'
|
||||
|
||||
Reference in New Issue
Block a user