From 95f700dd7e858947852e7c223c8b6be10c7104d6 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Fri, 24 Jan 2020 11:40:16 -0800 Subject: [PATCH] [toranj] move posix-app config defs into header file from build script (#4510) --- tests/toranj/build.sh | 2 +- tests/toranj/openthread-core-toranj-config.h | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/tests/toranj/build.sh b/tests/toranj/build.sh index f16fcc0ab..ca279d851 100755 --- a/tests/toranj/build.sh +++ b/tests/toranj/build.sh @@ -137,7 +137,7 @@ case ${build_config} in ./bootstrap || die cd "${top_builddir}" ${top_srcdir}/configure \ - CPPFLAGS="$cppflags_config -DOPENTHREAD_CONFIG_POSIX_APP_ENABLE_PTY_DEVICE=1 -DOPENTHREAD_POSIX_RCP_UART_ENABLE=1" \ + CPPFLAGS="$cppflags_config" \ --enable-posix-app \ $configure_options || die make -j 8 || die diff --git a/tests/toranj/openthread-core-toranj-config.h b/tests/toranj/openthread-core-toranj-config.h index 3b84958d7..ee29b2784 100644 --- a/tests/toranj/openthread-core-toranj-config.h +++ b/tests/toranj/openthread-core-toranj-config.h @@ -422,5 +422,24 @@ #define OPENTHREAD_CONFIG_SOFTWARE_CSMA_BACKOFF_ENABLE 1 #endif // OPENTHREAD_RADIO +//-------------------------------------------------------------------------------------------------------------------- +// POSIX-App configurations + +/** + * @def OPENTHREAD_CONFIG_POSIX_APP_ENABLE_PTY_DEVICE + * + * Define as 1 to enable PTY device support in POSIX app. + * + */ +#define OPENTHREAD_CONFIG_POSIX_APP_ENABLE_PTY_DEVICE 1 + +/** + * @def OPENTHREAD_POSIX_RCP_UART_ENABLE + * + * Define as 1 to enable UART interface to RCP. + * + */ +#define OPENTHREAD_POSIX_RCP_UART_ENABLE 1 + #endif /* OPENTHREAD_CORE_TORANJ_CONFIG_H_ */