mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
fc8209e8bc
ipset is used by firewall module of ot-br-posix:
third_party/openthread/repo/src/posix/platform/firewall.cpp:\
return ExecuteCommand("%s add %s %s -exist", kIpsetCommand, aSetName, aAddress);
Related observed issue looked like:
```
oniro@oniro-linux-blueprint-gateway-raspberrypi4-64:~$ sudo journalctl -u otbr-agent.service
Apr 28 17:42:32 oniro-linux-blueprint-gateway-raspberrypi4-64 systemd[1]: Started OpenThread Border Router Agent.
Apr 28 17:42:38 oniro-linux-blueprint-gateway-raspberrypi4-64 otbr-agent[330]: sh: ipset: not found
```
Relate-to: https://gitlab.eclipse.org/eclipse/oniro-blueprints/transparent-gateway/meta-oniro-blueprints-gateway/-/issues/6
Cc: Stefan Schmidt <stefan.schmidt@huawei.com>
Forwarded: https://github.com/openembedded/meta-openembedded/pull/611
Signed-off-by: Philippe Coval <philippe.coval.ext@huawei.com>
66 lines
2.7 KiB
BlitzBasic
66 lines
2.7 KiB
BlitzBasic
# SPDX-FileCopyrightText: Huawei Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
SUMMARY = "OpenThread Border Router"
|
|
SECTION = "net"
|
|
LICENSE = "BSD-3-Clause & MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=87109e44b2fda96a8991f27684a7349c \
|
|
file://third_party/Simple-web-server/repo/LICENSE;md5=852b3f7f320b19f6431487b8b2fb1d74 \
|
|
file://third_party/cJSON/repo/LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0 \
|
|
file://third_party/http-parser/repo/LICENSE-MIT;md5=9bfa835d048c194ab30487af8d7b3778 \
|
|
file://third_party/openthread/repo/LICENSE;md5=543b6fe90ec5901a683320a36390c65f \
|
|
"
|
|
DEPENDS = "autoconf-archive dbus readline avahi jsoncpp boost libnetfilter-queue"
|
|
SRCREV = "ad6822257ffddbac295db97186e4ab449a2ed32a"
|
|
PV = "0.3.0+git${SRCPV}"
|
|
|
|
SRC_URI = "gitsm://github.com/openthread/ot-br-posix.git;protocol=https;branch=main \
|
|
file://0001-otbr-agent.service.in-remove-pre-exec-hook-for-mdns-.patch \
|
|
file://0001-cmake-Disable-nonnull-compare-warning-on-gcc.patch \
|
|
file://0001-bn_mul.h-fix-x86-PIC-inline-ASM-compilation-with-GCC.patch \
|
|
file://mbedtls.patch \
|
|
file://unused_var.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
SYSTEMD_SERVICE:${PN} = "otbr-agent.service"
|
|
|
|
inherit pkgconfig cmake systemd
|
|
# openthread/repo/src/cli/cli.cpp:1786:18: fatal error: variable 'i' set but not used [-Wunused-but-set-variable]
|
|
# for (uint8_t i = 0;; i++)
|
|
CXXFLAGS:append:libc-musl:toolchain-clang = " -Wno-error=sign-compare -Wno-error=unused-but-set-variable"
|
|
|
|
EXTRA_OECMAKE = "-DBUILD_TESTING=OFF \
|
|
-DOTBR_DBUS=ON \
|
|
-DOTBR_REST=ON \
|
|
-DOTBR_WEB=OFF \
|
|
-DCMAKE_LIBRARY_PATH=${libdir} \
|
|
-DOTBR_MDNS=avahi \
|
|
-DOTBR_BACKBONE_ROUTER=ON \
|
|
-DOTBR_BORDER_ROUTING=ON \
|
|
-DOTBR_SRP_ADVERTISING_PROXY=ON \
|
|
-DOTBR_BORDER_AGENT=ON \
|
|
-DOT_SPINEL_RESET_CONNECTION=ON \
|
|
-DOT_TREL=ON \
|
|
-DOT_MLR=ON \
|
|
-DOT_SRP_SERVER=ON \
|
|
-DOT_ECDSA=ON \
|
|
-DOT_SERVICE=ON \
|
|
-DOTBR_DUA_ROUTING=ON \
|
|
-DOT_DUA=ON \
|
|
-DOT_BORDER_ROUTING_NAT64=ON \
|
|
-DOTBR_DNSSD_DISCOVERY_PROXY=ON \
|
|
-DOTBR_INFRA_IF_NAME=eth0 \
|
|
-DOTBR_NO_AUTO_ATTACH=1 \
|
|
-DOT_REFERENCE_DEVICE=ON \
|
|
-DOT_DHCP6_CLIENT=ON \
|
|
-DOT_DHCP6_SERVER=ON \
|
|
"
|
|
|
|
RDEPENDS:${PN} = "iproute2 ipset avahi-daemon"
|
|
|
|
RCONFLICTS:${PN} = "ot-daemon"
|
|
|
|
FILES:${PN} += "${systemd_unitdir}/*"
|
|
FILES:${PN} += "${datadir}/*"
|