blob: d9f558d792650329b5df18de570f02018950e944 [file] [log] [blame]
Patrick Williams58776372022-04-13 09:07:35 -05001# SPDX-FileCopyrightText: Huawei Inc.
2#
3# SPDX-License-Identifier: Apache-2.0
4SUMMARY = "OpenThread Border Router"
5SECTION = "net"
6LICENSE = "BSD-3-Clause & MIT"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=87109e44b2fda96a8991f27684a7349c \
8 file://third_party/Simple-web-server/repo/LICENSE;md5=852b3f7f320b19f6431487b8b2fb1d74 \
9 file://third_party/cJSON/repo/LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0 \
10 file://third_party/http-parser/repo/LICENSE-MIT;md5=9bfa835d048c194ab30487af8d7b3778 \
11 file://third_party/openthread/repo/LICENSE;md5=543b6fe90ec5901a683320a36390c65f \
12 "
13DEPENDS = "autoconf-archive dbus readline avahi jsoncpp boost libnetfilter-queue"
14SRCREV = "ad6822257ffddbac295db97186e4ab449a2ed32a"
15PV = "0.3.0+git${SRCPV}"
16
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 \
19 file://Turn-off-sign-compare-for-musl-libc.patch \
20 "
21
22S = "${WORKDIR}/git"
23SYSTEMD_SERVICE:${PN} = "otbr-agent.service"
24
25inherit pkgconfig cmake systemd
26
27EXTRA_OECMAKE = "-DBUILD_TESTING=OFF \
28 -DOTBR_DBUS=ON \
29 -DOTBR_REST=ON \
30 -DOTBR_WEB=OFF \
31 -DCMAKE_LIBRARY_PATH=${libdir} \
32 -DOTBR_MDNS=avahi \
33 -DOTBR_BACKBONE_ROUTER=ON \
34 -DOTBR_BORDER_ROUTING=ON \
35 -DOTBR_SRP_ADVERTISING_PROXY=ON \
36 -DOTBR_BORDER_AGENT=ON \
37 -DOT_SPINEL_RESET_CONNECTION=ON \
38 -DOT_TREL=ON \
39 -DOT_MLR=ON \
40 -DOT_SRP_SERVER=ON \
41 -DOT_ECDSA=ON \
42 -DOT_SERVICE=ON \
43 -DOTBR_DUA_ROUTING=ON \
44 -DOT_DUA=ON \
45 -DOT_BORDER_ROUTING_NAT64=ON \
46 -DOTBR_DNSSD_DISCOVERY_PROXY=ON \
47 -DOTBR_INFRA_IF_NAME=eth0 \
48 -DOTBR_NO_AUTO_ATTACH=1 \
49 -DOT_REFERENCE_DEVICE=ON \
50 -DOT_DHCP6_CLIENT=ON \
51 -DOT_DHCP6_SERVER=ON \
52 "
53
54RDEPENDS:${PN} = "iproute2 avahi-daemon"
55
56RCONFLICTS:${PN} = "ot-daemon"
57
58FILES:${PN} += "${systemd_unitdir}/*"
59FILES:${PN} += "${datadir}/*"