mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 09:57:47 +00:00
[posix] ot-cli be indepedent of openthread-ncp-ftd (#4953)
This commit is contained in:
@@ -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
@@ -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}
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user