Skip to content
Snippets Groups Projects
Commit b86ab987 authored by Stefan Schmidt's avatar Stefan Schmidt
Browse files

ot-daemon: update to newer code base and switch to cmake


The main changes are the update to a newer upstream revision and the
switch to using the cmake build system of openthread. We also disabled
the fetch of external git submodules in third party to reduce the code
and involved licenses (which are not needed for the posix build).

Last but not least Thread 1.2 and spinel reset connection have been
enabled to work better with the meta-zephyr generated firmware images on
the radios.

Signed-off-by: default avatarStefan Schmidt <stefan.schmidt@huawei.com>
parent 73457226
No related branches found
No related tags found
No related merge requests found
# SPDX-FileCopyrightText: Huawei Inc. # SPDX-FileCopyrightText: Huawei Inc.
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
SUMMARY = "OpenThread Daemon is an OpenThread POSIX build mode that runs OpenThread as a service."
SUMMARY = "OpenThread Daemon (OT Daemon) is an OpenThread POSIX build mode that runs OpenThread as a service."
SECTION = "net" SECTION = "net"
LICENSE = "BSD-3-Clause & Apache-2.0" LICENSE = "BSD-3-Clause & Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=543b6fe90ec5901a683320a36390c65f \ LIC_FILES_CHKSUM = "file://LICENSE;md5=543b6fe90ec5901a683320a36390c65f \
file://third_party/nlbuild-autotools/repo/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" file://third_party/mbedtls/repo/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
"
# While we have more third_party code with different licenses here we do not use DEPENDS = "readline"
# them in the posix daemon build. SRCREV = "7dfde1f12923f03c9680be4d838b94b7a2320324"
SRC_URI = "gitsm://github.com/openthread/openthread.git;protocol=https;branch=main"
PV = "0.1+git${SRCPV}" PV = "0.1+git${SRCPV}"
SRCREV = "4d50cbadbc3c584c7174f4be41fe65e2016a7ece"
SRC_URI = "git://github.com/openthread/openthread.git;protocol=https;branch=main \
"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
do_compile() { inherit cmake
# TODO check again if we could avoid this before upstreaming
./bootstrap
oe_runmake -f src/posix/Makefile-posix DAEMON=1 HOST=${BUILD_SYS}
}
do_install() { EXTRA_OECMAKE = "-DOT_DAEMON=ON \
install -d ${D}/${sbindir} -DOT_SPINEL_RESET_CONNECTION=ON \
install -m 755 output/posix/bin/* ${D}/${sbindir} -DOT_THREAD_VERSION=1.2 \
} -DOT_COVERAGE=OFF \
-DOT_PLATFORM=posix \
-DCMAKE_BUILD_TYPE=Release \
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment