Include platform details in version information (#347)

- add --with-platform-info configuration option to specify platform information
- add otGetVersionString() interface to get OpenThread version
This commit is contained in:
Shu Chen
2016-08-10 20:02:29 -07:00
committed by Jonathan Hui
parent cfdc53088e
commit cefea1a3c6
7 changed files with 50 additions and 3 deletions
+1
View File
@@ -45,6 +45,7 @@ configure_OPTIONS = \
--enable-cli \
--enable-ncp \
--with-examples=cc2538 \
--with-platform-info=CC2538 \
$(NULL)
COMMONCFLAGS := \
+6 -1
View File
@@ -86,7 +86,12 @@ TargetTuple = $(shell ${AbsTopSourceDir}/third_party/nlbuild
# If the user has asserted COVERAGE, alter the configuration options
# accordingly.
configure_OPTIONS = --with-examples=posix --enable-cli --enable-ncp
configure_OPTIONS = \
--enable-cli \
--enable-ncp \
--with-examples=posix \
--with-platform-info=POSIX \
$(NULL)
ifeq ($(COVERAGE),1)
configure_OPTIONS += --enable-coverage