ot-br-posix: Update to latest tip on trunk

Fix build with cmake4

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-07-12 23:17:37 -07:00
parent 60c7d0de57
commit 220a6e7f5d
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 2 additions and 31 deletions

View File

@ -1,27 +0,0 @@
From 502aa4ab4bbc790fb2999ff2b5f10dabd7085190 Mon Sep 17 00:00:00 2001
From: "deepan.shivap" <deepan.shivap@lge.com>
Date: Mon, 2 Dec 2024 23:12:17 +0900
Subject: [PATCH] Musl build fix
usage of getaddrinfo_a creates dependency on libanl, which is specific
to glibc.
Upstream-Status: Pending
Signed-off-by: deepan.shivap <deepan.shivap@lge.com>
---
src/posix/platform/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/posix/platform/CMakeLists.txt b/src/posix/platform/CMakeLists.txt
index b4ac241f5..7b2028e45 100644
--- a/src/posix/platform/CMakeLists.txt
+++ b/src/posix/platform/CMakeLists.txt
@@ -175,7 +175,7 @@ target_link_libraries(openthread-posix
)
option(OT_TARGET_OPENWRT "enable openthread posix for OpenWRT" OFF)
-if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT)
+if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT AND NOT OT_TARGET_MUSL)
target_compile_definitions(ot-posix-config
INTERFACE "OPENTHREAD_POSIX_CONFIG_NAT64_AIL_PREFIX_ENABLE=1"
)

View File

@ -7,18 +7,16 @@ LICENSE = "BSD-3-Clause & MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=87109e44b2fda96a8991f27684a7349c \
file://third_party/cJSON/repo/LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0 \
file://third_party/cpp-httplib/repo/LICENSE;md5=1321bdf796c67e3a8ab8e352dd81474b \
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 protobuf protobuf-native"
SRCREV = "fe5855332e8f804944d737c65b75cf9a89c35e77"
SRCREV = "7142b740479e50f6f2c2a91a369b9c36e024fe0d"
PV = "0.3.0+git"
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://default-cxx-std.patch \
file://0001-Musl-build-fix.patch;patchdir=third_party/openthread/repo \
"
SYSTEMD_SERVICE:${PN} = "otbr-agent.service"
@ -57,8 +55,8 @@ EXTRA_OECMAKE = "-DBUILD_TESTING=OFF \
-DOT_REFERENCE_DEVICE=ON \
-DOT_DHCP6_CLIENT=ON \
-DOT_DHCP6_SERVER=ON \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
"
EXTRA_OECMAKE:append:libc-musl = " -DOT_TARGET_MUSL=ON"
RDEPENDS:${PN} = "iproute2 ipset avahi-daemon"