[toranj] update build script to add option for posix host using cmake (#4637)

This commit is contained in:
Abtin Keshavarzian
2020-03-05 09:18:57 -08:00
committed by Jonathan Hui
parent 62e781d63a
commit 6e992e1f3e
+9
View File
@@ -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