diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/openthread/ot-br-posix')
-rw-r--r-- | meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch | 27 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/openthread/ot-br-posix/musl-fixes.patch | 26 |
2 files changed, 27 insertions, 26 deletions
diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch b/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch new file mode 100644 index 0000000000..108ed76b30 --- /dev/null +++ b/meta-networking/recipes-connectivity/openthread/ot-br-posix/0001-Musl-build-fix.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 502aa4ab4bbc790fb2999ff2b5f10dabd7085190 Mon Sep 17 00:00:00 2001 | ||
2 | From: "deepan.shivap" <deepan.shivap@lge.com> | ||
3 | Date: Mon, 2 Dec 2024 23:12:17 +0900 | ||
4 | Subject: [PATCH] Musl build fix | ||
5 | |||
6 | usage of getaddrinfo_a creates dependency on libanl, which is specific | ||
7 | to glibc. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: deepan.shivap <deepan.shivap@lge.com> | ||
11 | --- | ||
12 | src/posix/platform/CMakeLists.txt | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/src/posix/platform/CMakeLists.txt b/src/posix/platform/CMakeLists.txt | ||
16 | index b4ac241f5..7b2028e45 100644 | ||
17 | --- a/src/posix/platform/CMakeLists.txt | ||
18 | +++ b/src/posix/platform/CMakeLists.txt | ||
19 | @@ -175,7 +175,7 @@ target_link_libraries(openthread-posix | ||
20 | ) | ||
21 | |||
22 | option(OT_TARGET_OPENWRT "enable openthread posix for OpenWRT" OFF) | ||
23 | -if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT) | ||
24 | +if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT AND NOT OT_TARGET_MUSL) | ||
25 | target_compile_definitions(ot-posix-config | ||
26 | INTERFACE "OPENTHREAD_POSIX_CONFIG_NAT64_AIL_PREFIX_ENABLE=1" | ||
27 | ) | ||
diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix/musl-fixes.patch b/meta-networking/recipes-connectivity/openthread/ot-br-posix/musl-fixes.patch deleted file mode 100644 index 279a60741f..0000000000 --- a/meta-networking/recipes-connectivity/openthread/ot-br-posix/musl-fixes.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | Musl fixes, which should be applied upstream too | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
5 | --- a/src/dbus/common/types.hpp | ||
6 | +++ b/src/dbus/common/types.hpp | ||
7 | @@ -715,7 +715,7 @@ struct TrelInfo | ||
8 | }; | ||
9 | |||
10 | bool mEnabled; ///< Whether TREL is enabled. | ||
11 | - u_int16_t mNumTrelPeers; ///< The number of TREL peers. | ||
12 | + uint16_t mNumTrelPeers; ///< The number of TREL peers. | ||
13 | TrelPacketCounters mTrelCounters; ///< The TREL counters. | ||
14 | }; | ||
15 | |||
16 | --- a/third_party/openthread/repo/src/posix/platform/CMakeLists.txt | ||
17 | +++ b/third_party/openthread/repo/src/posix/platform/CMakeLists.txt | ||
18 | @@ -172,7 +172,7 @@ target_link_libraries(openthread-posix | ||
19 | ) | ||
20 | |||
21 | option(OT_TARGET_OPENWRT "enable openthread posix for OpenWRT" OFF) | ||
22 | -if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT) | ||
23 | +if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT AND NOT OT_TARGET_MUSL) | ||
24 | target_compile_definitions(ot-posix-config | ||
25 | INTERFACE "OPENTHREAD_POSIX_CONFIG_NAT64_AIL_PREFIX_ENABLE=1" | ||
26 | ) | ||