From f2d026729d91e11b42159c9f6583e09771f6f71b Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Wed, 12 Aug 2020 04:23:34 +0800 Subject: [PATCH] [posix] use raw mode for CLI (#5377) This commit turns on CLI raw mode on POSIX platform, which is causing some unstable issues in CI tests. --- src/posix/Makefile-posix | 1 + src/posix/cli.cmake | 4 ++++ src/posix/platform/openthread-core-posix-config.h | 2 -- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/posix/Makefile-posix b/src/posix/Makefile-posix index 5259e0aa2..73384f36c 100644 --- a/src/posix/Makefile-posix +++ b/src/posix/Makefile-posix @@ -70,6 +70,7 @@ endif COMMONCFLAGS := \ -g \ + -DOPENTHREAD_CONFIG_UART_CLI_RAW=1 \ $(NULL) # If the user has asserted COVERAGE, alter the configuration options diff --git a/src/posix/cli.cmake b/src/posix/cli.cmake index 86d659987..51e5303ed 100644 --- a/src/posix/cli.cmake +++ b/src/posix/cli.cmake @@ -26,6 +26,10 @@ # POSSIBILITY OF SUCH DAMAGE. # +target_compile_definitions(ot-config INTERFACE + OPENTHREAD_CONFIG_UART_CLI_RAW=1 +) + add_executable(ot-cli main.c $<$:console_cli.cpp> diff --git a/src/posix/platform/openthread-core-posix-config.h b/src/posix/platform/openthread-core-posix-config.h index 9dddb83c2..b8db9519c 100644 --- a/src/posix/platform/openthread-core-posix-config.h +++ b/src/posix/platform/openthread-core-posix-config.h @@ -86,8 +86,6 @@ #define OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE 1 #endif -#define OPENTHREAD_CONFIG_UART_CLI_RAW 1 - /** * @def OPENTHREAD_CONFIG_NCP_UART_ENABLE *