mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 22:57:47 +00:00
[cc13x2-cc26x2] move to openthread/ot-cc13x2-cc26x2 (#6389)
This commit is contained in:
@@ -34,21 +34,6 @@ reset_source()
|
||||
rm -rf build output tmp
|
||||
}
|
||||
|
||||
build_cc1352()
|
||||
{
|
||||
local options=(
|
||||
"COMMISSIONER=1"
|
||||
"DHCP6_CLIENT=1"
|
||||
"DHCP6_SERVER=1"
|
||||
"DNS_CLIENT=1"
|
||||
"JOINER=1"
|
||||
"SLAAC=1"
|
||||
)
|
||||
|
||||
reset_source
|
||||
make -f examples/Makefile-cc1352 "${options[@]}"
|
||||
}
|
||||
|
||||
build_cc2538()
|
||||
{
|
||||
local options=(
|
||||
@@ -72,21 +57,6 @@ build_cc2650()
|
||||
make -f examples/Makefile-cc2650
|
||||
}
|
||||
|
||||
build_cc2652()
|
||||
{
|
||||
local options=(
|
||||
"COMMISSIONER=1"
|
||||
"DHCP6_CLIENT=1"
|
||||
"DHCP6_SERVER=1"
|
||||
"DNS_CLIENT=1"
|
||||
"JOINER=1"
|
||||
"SLAAC=1"
|
||||
)
|
||||
|
||||
reset_source
|
||||
make -f examples/Makefile-cc2652 "${options[@]}"
|
||||
}
|
||||
|
||||
build_jn5189()
|
||||
{
|
||||
local options=(
|
||||
@@ -242,10 +212,8 @@ main()
|
||||
export CPPFLAGS="${CPPFLAGS:-} -DNDEBUG"
|
||||
|
||||
if [[ $# == 0 ]]; then
|
||||
build_cc1352
|
||||
build_cc2538
|
||||
build_cc2650
|
||||
build_cc2652
|
||||
build_jn5189
|
||||
build_k32w061
|
||||
build_nrf52811
|
||||
|
||||
@@ -48,12 +48,6 @@ reset_source()
|
||||
rm -rf "$OT_BUILDDIR"
|
||||
}
|
||||
|
||||
build_cc1352()
|
||||
{
|
||||
reset_source
|
||||
"$(dirname "$0")"/cmake-build cc1352 "${OT_COMMON_OPTIONS[@]}" "${OT_BASIC_CHECK_OPTIONS[@]}"
|
||||
}
|
||||
|
||||
build_cc2538()
|
||||
{
|
||||
local options=(
|
||||
@@ -71,12 +65,6 @@ build_cc2650()
|
||||
"$(dirname "$0")"/cmake-build cc2650 "${OT_COMMON_OPTIONS[@]}"
|
||||
}
|
||||
|
||||
build_cc2652()
|
||||
{
|
||||
reset_source
|
||||
"$(dirname "$0")"/cmake-build cc2652 "${OT_COMMON_OPTIONS[@]}" "${OT_BASIC_CHECK_OPTIONS[@]}"
|
||||
}
|
||||
|
||||
build_nrf52811()
|
||||
{
|
||||
reset_source
|
||||
@@ -100,10 +88,8 @@ main()
|
||||
export CPPFLAGS="${CPPFLAGS:-} -DNDEBUG"
|
||||
|
||||
if [[ $# == 0 ]]; then
|
||||
build_cc1352
|
||||
build_cc2538
|
||||
build_cc2650
|
||||
build_cc2652
|
||||
# UART transport
|
||||
build_nrf52840 UART_trans
|
||||
# USB transport with bootloader e.g. to support PCA10059 dongle
|
||||
|
||||
+2
-2
@@ -79,7 +79,7 @@ set -euxo pipefail
|
||||
OT_CMAKE_NINJA_TARGET=${OT_CMAKE_NINJA_TARGET:-}
|
||||
|
||||
readonly OT_SRCDIR="$(pwd)"
|
||||
readonly OT_PLATFORMS=(cc1352 cc2538 cc2650 cc2652 efr32mg1 efr32mg12 efr32mg13 efr32mg21 nrf52811 nrf52833 nrf52840 simulation posix)
|
||||
readonly OT_PLATFORMS=(cc2538 cc2650 efr32mg1 efr32mg12 efr32mg13 efr32mg21 nrf52811 nrf52833 nrf52840 simulation posix)
|
||||
readonly OT_NRF528XX_BUILD_TYPES=(UART_trans USB_trans_bl SPI_trans_NCP soft_crypto soft_crypto_threading)
|
||||
readonly OT_POSIX_SIM_COMMON_OPTIONS=(
|
||||
"-DOT_BORDER_AGENT=ON"
|
||||
@@ -232,7 +232,7 @@ main()
|
||||
OT_CMAKE_NINJA_TARGET=("ot-cli-mtd" "ot-ncp-mtd")
|
||||
options+=("-DCMAKE_TOOLCHAIN_FILE=examples/platforms/${platform}/arm-none-eabi.cmake" "-DCMAKE_BUILD_TYPE=MinSizeRel")
|
||||
;;
|
||||
cc1352 | cc2538 | cc2652)
|
||||
cc2538)
|
||||
options+=("-DCMAKE_TOOLCHAIN_FILE=examples/platforms/${platform}/arm-none-eabi.cmake" "-DCMAKE_BUILD_TYPE=MinSizeRel")
|
||||
;;
|
||||
efr32*)
|
||||
|
||||
Reference in New Issue
Block a user