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:
Shu Chen
2017-02-24 10:10:53 -08:00
committed by Jonathan Hui
parent 64806de6fa
commit fc45943f8c
16 changed files with 134 additions and 67 deletions
+2 -2
View File
@@ -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):
+1 -1
View File
@@ -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>
+2 -2
View File
@@ -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'
+1 -1
View File
@@ -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'