[toranj] move posix-app config defs into header file from build script (#4510)

This commit is contained in:
Abtin Keshavarzian
2020-02-07 08:27:15 -08:00
committed by Jonathan Hui
parent d052f36af8
commit 95f700dd7e
2 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -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
@@ -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_ */