mirror of
https://github.com/espressif/openthread.git
synced 2026-08-29 21:39:54 +00:00
Make building cli, ncp, and examples optional. (#132)
By default, only core is built. Added the following configure options: --enable-cli --enable-ncp --with-examples=TARGET
This commit is contained in:
@@ -36,9 +36,9 @@ DIST_SUBDIRS = \
|
||||
|
||||
# Always build (e.g. for 'make all') these subdirectories.
|
||||
|
||||
SUBDIRS = \
|
||||
posix \
|
||||
$(NULL)
|
||||
if OPENTHREAD_EXAMPLES_POSIX
|
||||
SUBDIRS = posix
|
||||
endif
|
||||
|
||||
# Always pretty (e.g. for 'make pretty') these subdirectories.
|
||||
|
||||
|
||||
@@ -38,10 +38,16 @@ DIST_SUBDIRS = \
|
||||
# Always build (e.g. for 'make all') these subdirectories.
|
||||
|
||||
SUBDIRS = \
|
||||
cli \
|
||||
ncp \
|
||||
$(NULL)
|
||||
|
||||
if OPENTHREAD_ENABLE_CLI
|
||||
SUBDIRS += cli
|
||||
endif
|
||||
|
||||
if OPENTHREAD_ENABLE_NCP
|
||||
SUBDIRS += ncp
|
||||
endif
|
||||
|
||||
# Always pretty (e.g. for 'make pretty') these subdirectories.
|
||||
|
||||
PRETTY_SUBDIRS = \
|
||||
|
||||
@@ -10,7 +10,8 @@ another emulated Thread device.
|
||||
|
||||
```bash
|
||||
$ cd openthread
|
||||
$ ./bootstrap-configure
|
||||
$ ./bootstrap
|
||||
$ ./configure --enable-cli --with-examples=posix
|
||||
$ make
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user