mirror of
https://github.com/espressif/openthread.git
synced 2026-09-21 08:27:33 +00:00
[posix] fix build for SPI bus (#3546)
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ LOCAL_CFLAGS := \
|
||||
-DOPENTHREAD_CONFIG_POSIX_APP_ENABLE_PTY_DEVICE=1 \
|
||||
-DOPENTHREAD_FTD=1 \
|
||||
-DOPENTHREAD_POSIX=1 \
|
||||
-DOPENTHREAD_POSIX_APP=1 \
|
||||
-DOPENTHREAD_PLATFORM_POSIX_APP=1 \
|
||||
-DOPENTHREAD_PROJECT_CORE_CONFIG_FILE=\"openthread-core-posix-config.h\" \
|
||||
-DSPINEL_PLATFORM_HEADER=\"spinel_platform.h\" \
|
||||
-Wno-non-virtual-dtor \
|
||||
|
||||
+2
-2
@@ -36,7 +36,7 @@
|
||||
|
||||
#include "common/code_utils.hpp"
|
||||
|
||||
#if OPENTHREAD_ENABLE_NCP_UART || OPENTHREAD_POSIX_APP
|
||||
#if OPENTHREAD_ENABLE_NCP_UART || OPENTHREAD_PLATFORM_POSIX_APP
|
||||
|
||||
namespace ot {
|
||||
namespace Hdlc {
|
||||
@@ -301,4 +301,4 @@ void Decoder::Decode(const uint8_t *aData, uint16_t aLength)
|
||||
} // namespace Hdlc
|
||||
} // namespace ot
|
||||
|
||||
#endif // OPENTHREAD_ENABLE_NCP_UART || OPENTHREAD_POSIX_APP
|
||||
#endif // OPENTHREAD_ENABLE_NCP_UART || OPENTHREAD_PLATFORM_POSIX_APP
|
||||
|
||||
@@ -36,6 +36,7 @@ libopenthread_posix_a_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/ncp \
|
||||
-I$(top_srcdir)/src/posix/platform \
|
||||
-D_GNU_SOURCE \
|
||||
-DOPENTHREAD_PLATFORM_POSIX_APP=1 \
|
||||
$(OPENTHREAD_TARGET_DEFINES) \
|
||||
$(NULL)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user