From 6e992e1f3ed994b42606691fcde2c491df3297df Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Wed, 4 Mar 2020 17:25:40 -0800 Subject: [PATCH] [toranj] update build script to add option for posix host using cmake (#4637) --- tests/toranj/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/toranj/build.sh b/tests/toranj/build.sh index d0f26c817..122e3efd4 100755 --- a/tests/toranj/build.sh +++ b/tests/toranj/build.sh @@ -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