summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb')
-rw-r--r--meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb17
1 files changed, 10 insertions, 7 deletions
diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb b/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb
index d7be1cd71d..576c316ec3 100644
--- a/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb
+++ b/meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb
@@ -5,35 +5,38 @@ SUMMARY = "OpenThread Border Router"
5SECTION = "net" 5SECTION = "net"
6LICENSE = "BSD-3-Clause & MIT" 6LICENSE = "BSD-3-Clause & MIT"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=87109e44b2fda96a8991f27684a7349c \ 7LIC_FILES_CHKSUM = "file://LICENSE;md5=87109e44b2fda96a8991f27684a7349c \
8 file://third_party/Simple-web-server/repo/LICENSE;md5=091ac9fd29d87ad1ae5bf765d95278b0 \
9 file://third_party/cJSON/repo/LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0 \ 8 file://third_party/cJSON/repo/LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0 \
9 file://third_party/cpp-httplib/repo/LICENSE;md5=1321bdf796c67e3a8ab8e352dd81474b \
10 file://third_party/http-parser/repo/LICENSE-MIT;md5=9bfa835d048c194ab30487af8d7b3778 \ 10 file://third_party/http-parser/repo/LICENSE-MIT;md5=9bfa835d048c194ab30487af8d7b3778 \
11 file://third_party/openthread/repo/LICENSE;md5=543b6fe90ec5901a683320a36390c65f \ 11 file://third_party/openthread/repo/LICENSE;md5=543b6fe90ec5901a683320a36390c65f \
12 " 12 "
13DEPENDS = "autoconf-archive dbus readline avahi jsoncpp boost libnetfilter-queue protobuf protobuf-native" 13DEPENDS = "autoconf-archive dbus readline avahi jsoncpp boost libnetfilter-queue protobuf protobuf-native"
14SRCREV = "a35cc682305bb2201c314472adf06a4960536750" 14SRCREV = "fe5855332e8f804944d737c65b75cf9a89c35e77"
15PV = "0.3.0+git" 15PV = "0.3.0+git"
16 16
17SRC_URI = "gitsm://github.com/openthread/ot-br-posix.git;protocol=https;branch=main \ 17SRC_URI = "gitsm://github.com/openthread/ot-br-posix.git;protocol=https;branch=main \
18 file://0001-otbr-agent.service.in-remove-pre-exec-hook-for-mdns-.patch \ 18 file://0001-otbr-agent.service.in-remove-pre-exec-hook-for-mdns-.patch \
19 file://0001-cmake-Disable-nonnull-compare-warning-on-gcc.patch \ 19 file://0001-cmake-Disable-nonnull-compare-warning-on-gcc.patch \
20 file://default-cxx-std.patch \ 20 file://default-cxx-std.patch \
21 file://musl-fixes.patch \ 21 file://0001-Musl-build-fix.patch;patchdir=third_party/openthread/repo \
22 " 22 "
23 23
24S = "${WORKDIR}/git"
25SYSTEMD_SERVICE:${PN} = "otbr-agent.service" 24SYSTEMD_SERVICE:${PN} = "otbr-agent.service"
26 25
27inherit pkgconfig cmake systemd 26inherit pkgconfig cmake systemd
28# openthread/repo/src/cli/cli.cpp:1786:18: fatal error: variable 'i' set but not used [-Wunused-but-set-variable] 27
29# for (uint8_t i = 0;; i++) 28# Use -std=c++20 for fixing
30CXXFLAGS:append:libc-musl:toolchain-clang = " -Wno-error=sign-compare -Wno-error=unused-but-set-variable" 29# recipe-sysroot/usr/include/c++/15.1.0/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
30CXXFLAGS += "-std=c++20 -Wno-error=attributes"
31LDFLAGS:append:riscv32 = " -latomic"
31 32
32EXTRA_OECMAKE = "-DBUILD_TESTING=OFF \ 33EXTRA_OECMAKE = "-DBUILD_TESTING=OFF \
33 -DOTBR_DBUS=ON \ 34 -DOTBR_DBUS=ON \
34 -DOTBR_REST=ON \ 35 -DOTBR_REST=ON \
35 -DOTBR_WEB=OFF \ 36 -DOTBR_WEB=OFF \
36 -DCMAKE_LIBRARY_PATH=${libdir} \ 37 -DCMAKE_LIBRARY_PATH=${libdir} \
38 -DOT_POSIX_PRODUCT_CONFIG=${sysconfdir}/openthread.conf.example \
39 -DOT_POSIX_FACTORY_CONFIG=${sysconfdir}/openthread.conf.example \
37 -DOTBR_MDNS=avahi \ 40 -DOTBR_MDNS=avahi \
38 -DOTBR_BACKBONE_ROUTER=ON \ 41 -DOTBR_BACKBONE_ROUTER=ON \
39 -DOTBR_BORDER_ROUTING=ON \ 42 -DOTBR_BORDER_ROUTING=ON \