[posix] ot-cli be indepedent of openthread-ncp-ftd (#4953)

This commit is contained in:
Yakun Xu
2020-05-20 11:30:23 -07:00
committed by Jonathan Hui
parent 31e600f227
commit 883d32356f
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ set(COMMON_INCLUDES
)
set(OT_READLINE "readline" CACHE STRING "set readline library name")
set_property(CACHE OT_READLINE PROPERTY STRINGS "readline" "edit" "no")
set_property(CACHE OT_READLINE PROPERTY STRINGS "readline" "edit")
if(OT_READLINE)
find_library(READLINE ${OT_READLINE})
+3 -1
View File
@@ -55,8 +55,10 @@ target_link_libraries(ot-cli
${OT_PLATFORM_LIB}
openthread-ftd
${OT_PLATFORM_LIB}
openthread-cli-ftd
openthread-hdlc
openthread-spinel-rcp
mbedcrypto
openthread-ncp-ftd
${READLINE_LINK_LIBRARIES}
)
+2 -2
View File
@@ -150,7 +150,7 @@ case ${build_config} in
echo "===================================================================================================="
echo "Building OpenThread (NCP/CLI for FTD/MTD/RCP mode) with simulation platform using cmake"
echo "===================================================================================================="
cmake -GNinja -DOT_PLATFORM=simulation -DOT_COMPILE_WARNING_AS_ERROR=on \
cmake -GNinja -DOT_PLATFORM=simulation -DOT_COMPILE_WARNING_AS_ERROR=on -DOT_APP_CLI=off \
-DOT_CONFIG=../tests/toranj/openthread-core-toranj-config-simulation.h . || die
ninja || die
;;
@@ -159,7 +159,7 @@ case ${build_config} in
echo "===================================================================================================="
echo "Building OpenThread POSIX host platform using cmake"
echo "===================================================================================================="
cmake -GNinja -DOT_PLATFORM=posix -DOT_COMPILE_WARNING_AS_ERROR=on \
cmake -GNinja -DOT_PLATFORM=posix -DOT_COMPILE_WARNING_AS_ERROR=on -DOT_APP_CLI=off \
-DOT_CONFIG=../tests/toranj/openthread-core-toranj-config-posix.h . || die
ninja || die
;;