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
@@ -75,9 +75,9 @@ class otCli:
else:
srcdir = os.path.dirname(os.path.realpath(__file__))
srcdir += "/../../.."
cmd = 'python %s/tools/spinel-cli/spinel-cli.py -p %s/examples/apps/ncp/ot-ncp -n' % (srcdir, builddir)
cmd = 'python %s/tools/spinel-cli/spinel-cli.py -p %s/examples/apps/ncp/ot-ncp-ftd -n' % (srcdir, builddir)
else:
cmd = './ot-ncp'
cmd = './ot-ncp-ftd'
cmd += ' %d' % nodeid
print ("%s" % cmd)