diff mbox series

[meta-networking,15/15] ot-daemon: upgrade 0.1+git -> 2026.11.0

Message ID 20261130163151.1629071-16-khem.raj@oss.qualcomm.com
State New
Headers show
Series Upgrades and fetch fixes | expand

Commit Message

Khem Raj Nov. 30, 2026, 4:31 p.m. UTC
Upstream now makes monthly date releases; build the v2026.11.0 tag.

mbedtls is now a git submodule of openthread instead of vendored code.
Fetch it (v3.6.5) and its mbedtls-framework submodule as pinned git
entries; mbedtls' CMake refuses to configure without the framework.

Backport-carry the ot-br-posix backtrace fix: sCrashCallback appeared in
this range and is set but unused on musl, which clang's
-Wunused-but-set-global turns into an error.

Notable openthread changes since 9f88ca028865 (about 1600 commits):
- monthly date-based releases from v2026.06.0
- mDNS: rate limiting of QU queries, name compression rework
- mesh-forwarder message eviction rework, SubMac ListenScheduler
- new APIs: otThreadGetNeighborInfoByRloc16(), radio availability,
  CSL period in otChildInfo, sniffer capability, diag radio address and
  promiscuous mode commands
- posix: TREL socket bound to the interface, BSD routing socket support,
  otPlatGetInfraIfLinkLayerAddress

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...-Reference-sCrashCallback-on-non-gli.patch | 34 +++++++++++++++++++
 ...t-daemon_git.bb => ot-daemon_2026.11.0.bb} | 15 +++++---
 2 files changed, 45 insertions(+), 4 deletions(-)
 create mode 100644 meta-networking/recipes-connectivity/openthread/ot-daemon/0001-posix-backtrace-Reference-sCrashCallback-on-non-gli.patch
 rename meta-networking/recipes-connectivity/openthread/{ot-daemon_git.bb => ot-daemon_2026.11.0.bb} (56%)
diff mbox series

Patch

diff --git a/meta-networking/recipes-connectivity/openthread/ot-daemon/0001-posix-backtrace-Reference-sCrashCallback-on-non-gli.patch b/meta-networking/recipes-connectivity/openthread/ot-daemon/0001-posix-backtrace-Reference-sCrashCallback-on-non-gli.patch
new file mode 100644
index 0000000000..88c3b67314
--- /dev/null
+++ b/meta-networking/recipes-connectivity/openthread/ot-daemon/0001-posix-backtrace-Reference-sCrashCallback-on-non-gli.patch
@@ -0,0 +1,34 @@ 
+From: Khem Raj <khem.raj@oss.qualcomm.com>
+Date: Tue, 29 Sep 2026 01:57:51 +0000
+Subject: [PATCH] posix/backtrace: Reference sCrashCallback on non-glibc,
+ non-Android builds
+
+sCrashCallback is set unconditionally by otSysRegisterCrashCallback()
+whenever OPENTHREAD_POSIX_CONFIG_BACKTRACE_ENABLE is set, but it is
+only read from signalCritical(), which is compiled solely under the
+`OPENTHREAD_POSIX_CONFIG_ANDROID_ENABLE || defined(__GLIBC__)` branch.
+On musl (neither Android nor glibc) that branch is replaced by an
+empty platformBacktraceInit() stub, so the variable is set but never
+used, which clang's -Wunused-but-set-global (promoted to -Werror)
+turns into a hard build failure. Use the existing OT_UNUSED_VARIABLE()
+idiom already used elsewhere in this file (e.g. in signalCritical())
+to acknowledge the variable on this code path too.
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ src/posix/platform/backtrace.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/posix/platform/backtrace.cpp b/src/posix/platform/backtrace.cpp
+index 1111111..2222222 100644
+--- a/src/posix/platform/backtrace.cpp
++++ b/src/posix/platform/backtrace.cpp
+@@ -185,6 +185,6 @@ void platformBacktraceInit(void)
+     }
+ }
+ #else  // OPENTHREAD_POSIX_CONFIG_ANDROID_ENABLE || defined(__GLIBC__)
+-void platformBacktraceInit(void) {}
++void platformBacktraceInit(void) { OT_UNUSED_VARIABLE(sCrashCallback); }
+ #endif // OPENTHREAD_POSIX_CONFIG_ANDROID_ENABLE || defined(__GLIBC__)
+ #endif // OPENTHREAD_POSIX_CONFIG_BACKTRACE_ENABLE
diff --git a/meta-networking/recipes-connectivity/openthread/ot-daemon_git.bb b/meta-networking/recipes-connectivity/openthread/ot-daemon_2026.11.0.bb
similarity index 56%
rename from meta-networking/recipes-connectivity/openthread/ot-daemon_git.bb
rename to meta-networking/recipes-connectivity/openthread/ot-daemon_2026.11.0.bb
index 0557eddf1e..7c8ead6474 100644
--- a/meta-networking/recipes-connectivity/openthread/ot-daemon_git.bb
+++ b/meta-networking/recipes-connectivity/openthread/ot-daemon_2026.11.0.bb
@@ -8,12 +8,19 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=543b6fe90ec5901a683320a36390c65f \
                     file://third_party/mbedtls/repo/LICENSE;md5=379d5819937a6c2f1ef1630d341e026d \
                     "
 DEPENDS = "readline"
-SRCREV = "9f88ca02886595b5aad2b60007865812fd78aa98"
-PV = "0.1+git"
-
-SRC_URI = "git://github.com/openthread/openthread.git;protocol=https;branch=main \
+SRC_URI = "git://github.com/openthread/openthread.git;protocol=https;branch=main;tag=v${PV};name=openthread \
+           git://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls-3.6;name=mbedtls;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/third_party/mbedtls/repo \
+           git://github.com/Mbed-TLS/mbedtls-framework.git;protocol=https;branch=main;name=mbedtlsfw;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/third_party/mbedtls/repo/framework \
+           file://0001-posix-backtrace-Reference-sCrashCallback-on-non-gli.patch \
            "
 
+# Submodules (recursively) listed in .gitmodules, at the revisions v${PV} pins
+SRCREV_openthread = "c6872259f4194fb76c7d333bda209343e8c88e71"
+# v3.6.5
+SRCREV_mbedtls = "e185d7fd85499c8ce5ca2a54f5cf8fe7dbe3f8df"
+SRCREV_mbedtlsfw = "457996474728cb8e968ed21953b72f74d2f536b2"
+SRCREV_FORMAT = "openthread"
+
 UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
 
 inherit cmake