mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 20:27:47 +00:00
[toranj] update build script to add option for posix host using cmake (#4637)
This commit is contained in:
committed by
Jonathan Hui
parent
62e781d63a
commit
6e992e1f3e
@@ -40,6 +40,7 @@ display_usage() {
|
||||
echo " rcp : Build OpenThread RCP (NCP in radio mode) with simulation platform"
|
||||
echo " posix-app : Build OpenThread POSIX App NCP"
|
||||
echo " cmake : Configure and build OpenThread using cmake/ninja (RCP and NCP) only"
|
||||
echo " cmake-posix: Configure and build OpenThread POSIX host using cmake/ninja"
|
||||
echo ""
|
||||
echo "Options:"
|
||||
echo " -c/--enable-coverage Enable code coverage"
|
||||
@@ -151,6 +152,14 @@ case ${build_config} in
|
||||
ninja || die
|
||||
;;
|
||||
|
||||
cmake-posix-host|cmake-posix|cmake-p)
|
||||
echo "===================================================================================================="
|
||||
echo "Building OpenThread POSIX host platform using cmake"
|
||||
echo "===================================================================================================="
|
||||
cmake -GNinja -DOT_PLATFORM=posix-host -DOT_CONFIG=../tests/toranj/openthread-core-toranj-config.h . || die
|
||||
ninja || die
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Error: Unknown configuration \"$1\""
|
||||
display_usage
|
||||
|
||||
Reference in New Issue
Block a user