mirror of
https://github.com/espressif/openthread.git
synced 2026-08-18 16:39:52 +00:00
[nrf52811] only build CLI and RCP examples (not NCP) (#6043)
This commit is contained in:
@@ -91,7 +91,6 @@ endif
|
||||
# Otherwise, the default serial transport is UART.
|
||||
#
|
||||
ifndef DISABLE_TRANSPORTS
|
||||
configure_OPTIONS += --enable-ncp
|
||||
configure_OPTIONS += --enable-radio-only
|
||||
ifeq ($(NCP_SPI),1)
|
||||
COMMONCFLAGS += -DSPIS_AS_SERIAL_TRANSPORT=1
|
||||
|
||||
@@ -47,6 +47,10 @@ endif
|
||||
|
||||
if OPENTHREAD_ENABLE_NCP
|
||||
SUBDIRS += ncp
|
||||
else
|
||||
if OPENTHREAD_ENABLE_RADIO_ONLY
|
||||
SUBDIRS += ncp
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
@@ -76,11 +76,13 @@ LDADD_COMMON += \
|
||||
$(NULL)
|
||||
endif # OPENTHREAD_ENABLE_NCP_SPINEL_ENCRYPTER
|
||||
|
||||
if OPENTHREAD_ENABLE_NCP
|
||||
if OPENTHREAD_ENABLE_FTD
|
||||
bin_PROGRAMS += \
|
||||
ot-ncp-ftd \
|
||||
$(NULL)
|
||||
endif
|
||||
endif
|
||||
|
||||
ot_ncp_ftd_CPPFLAGS = \
|
||||
$(CPPFLAGS_COMMON) \
|
||||
@@ -110,11 +112,13 @@ ot_ncp_ftd_SOURCES = \
|
||||
$(SOURCES_COMMON) \
|
||||
$(NULL)
|
||||
|
||||
if OPENTHREAD_ENABLE_NCP
|
||||
if OPENTHREAD_ENABLE_MTD
|
||||
bin_PROGRAMS += \
|
||||
ot-ncp-mtd \
|
||||
$(NULL)
|
||||
endif
|
||||
endif
|
||||
|
||||
ot_ncp_mtd_CPPFLAGS = \
|
||||
$(CPPFLAGS_COMMON) \
|
||||
|
||||
@@ -133,7 +133,6 @@ build_kw41z()
|
||||
build_nrf52811()
|
||||
{
|
||||
local options=(
|
||||
"BORDER_ROUTER=1"
|
||||
"COAP=1"
|
||||
"DNS_CLIENT=1"
|
||||
"LINK_RAW=1"
|
||||
|
||||
@@ -51,6 +51,10 @@ endif
|
||||
|
||||
if OPENTHREAD_ENABLE_NCP
|
||||
SUBDIRS += ncp
|
||||
else
|
||||
if OPENTHREAD_ENABLE_RADIO_ONLY
|
||||
SUBDIRS += ncp
|
||||
endif
|
||||
endif
|
||||
|
||||
if OPENTHREAD_PLATFORM_POSIX
|
||||
|
||||
@@ -37,6 +37,7 @@ EXTRA_DIST = \
|
||||
|
||||
lib_LIBRARIES = $(NULL)
|
||||
|
||||
if OPENTHREAD_ENABLE_NCP
|
||||
if OPENTHREAD_ENABLE_FTD
|
||||
lib_LIBRARIES += libopenthread-ncp-ftd.a
|
||||
endif
|
||||
@@ -44,6 +45,7 @@ endif
|
||||
if OPENTHREAD_ENABLE_MTD
|
||||
lib_LIBRARIES += libopenthread-ncp-mtd.a
|
||||
endif
|
||||
endif
|
||||
|
||||
if OPENTHREAD_ENABLE_RADIO_ONLY
|
||||
lib_LIBRARIES += libopenthread-rcp.a
|
||||
|
||||
Reference in New Issue
Block a user