Patrick Williams | 5877637 | 2022-04-13 09:07:35 -0500 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: Huawei Inc. |
| 2 | # |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | SUMMARY = "OpenThread Border Router" |
| 5 | SECTION = "net" |
| 6 | LICENSE = "BSD-3-Clause & MIT" |
| 7 | LIC_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 | " |
| 13 | DEPENDS = "autoconf-archive dbus readline avahi jsoncpp boost libnetfilter-queue" |
| 14 | SRCREV = "ad6822257ffddbac295db97186e4ab449a2ed32a" |
| 15 | PV = "0.3.0+git${SRCPV}" |
| 16 | |
| 17 | SRC_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 \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 19 | file://0001-cmake-Disable-nonnull-compare-warning-on-gcc.patch \ |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 20 | file://0001-bn_mul.h-fix-x86-PIC-inline-ASM-compilation-with-GCC.patch \ |
| 21 | file://mbedtls.patch \ |
| 22 | file://unused_var.patch \ |
Patrick Williams | 5877637 | 2022-04-13 09:07:35 -0500 | [diff] [blame] | 23 | " |
| 24 | |
| 25 | S = "${WORKDIR}/git" |
| 26 | SYSTEMD_SERVICE:${PN} = "otbr-agent.service" |
| 27 | |
| 28 | inherit pkgconfig cmake systemd |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 29 | # openthread/repo/src/cli/cli.cpp:1786:18: fatal error: variable 'i' set but not used [-Wunused-but-set-variable] |
| 30 | # for (uint8_t i = 0;; i++) |
| 31 | CXXFLAGS:append:libc-musl:toolchain-clang = " -Wno-error=sign-compare -Wno-error=unused-but-set-variable" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 32 | |
Patrick Williams | 5877637 | 2022-04-13 09:07:35 -0500 | [diff] [blame] | 33 | EXTRA_OECMAKE = "-DBUILD_TESTING=OFF \ |
| 34 | -DOTBR_DBUS=ON \ |
| 35 | -DOTBR_REST=ON \ |
| 36 | -DOTBR_WEB=OFF \ |
| 37 | -DCMAKE_LIBRARY_PATH=${libdir} \ |
| 38 | -DOTBR_MDNS=avahi \ |
| 39 | -DOTBR_BACKBONE_ROUTER=ON \ |
| 40 | -DOTBR_BORDER_ROUTING=ON \ |
| 41 | -DOTBR_SRP_ADVERTISING_PROXY=ON \ |
| 42 | -DOTBR_BORDER_AGENT=ON \ |
| 43 | -DOT_SPINEL_RESET_CONNECTION=ON \ |
| 44 | -DOT_TREL=ON \ |
| 45 | -DOT_MLR=ON \ |
| 46 | -DOT_SRP_SERVER=ON \ |
| 47 | -DOT_ECDSA=ON \ |
| 48 | -DOT_SERVICE=ON \ |
| 49 | -DOTBR_DUA_ROUTING=ON \ |
| 50 | -DOT_DUA=ON \ |
| 51 | -DOT_BORDER_ROUTING_NAT64=ON \ |
| 52 | -DOTBR_DNSSD_DISCOVERY_PROXY=ON \ |
| 53 | -DOTBR_INFRA_IF_NAME=eth0 \ |
| 54 | -DOTBR_NO_AUTO_ATTACH=1 \ |
| 55 | -DOT_REFERENCE_DEVICE=ON \ |
| 56 | -DOT_DHCP6_CLIENT=ON \ |
| 57 | -DOT_DHCP6_SERVER=ON \ |
| 58 | " |
| 59 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 60 | RDEPENDS:${PN} = "iproute2 ipset avahi-daemon" |
Patrick Williams | 5877637 | 2022-04-13 09:07:35 -0500 | [diff] [blame] | 61 | |
| 62 | RCONFLICTS:${PN} = "ot-daemon" |
| 63 | |
| 64 | FILES:${PN} += "${systemd_unitdir}/*" |
| 65 | FILES:${PN} += "${datadir}/*" |