Skip to content

Commit 7e2eabe

Browse files
committed
linux-webrtc-reference-for-amazon-kinesis-video-streams: patch compat cmake 4.0
1 parent 66c281e commit 7e2eabe

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Upstream-Status: Inappropriate [oe-specific]
2+
3+
Index: linux-webrtc-reference-for-amazon-kinesis-video-streams-git/CMake/libwebsockets.cmake
4+
===================================================================
5+
--- linux-webrtc-reference-for-amazon-kinesis-video-streams-git.orig/CMake/libwebsockets.cmake
6+
+++ linux-webrtc-reference-for-amazon-kinesis-video-streams-git/CMake/libwebsockets.cmake
7+
@@ -1,3 +1,4 @@
8+
+set(CMAKE_POLICY_VERSION_MINIMUM 3.5 )
9+
# This cmake file is used to include libwebsockets as static library.
10+
set(CMAKE_LIBWEBSOCKETS_DIRECTORY ${CMAKE_ROOT_DIRECTORY}/libraries/networking/libwebsockets)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Upstream-Status: Inappropriate [oe-specific]
2+
3+
Index: linux-webrtc-reference-for-amazon-kinesis-video-streams-git/CMake/libusrsctp.cmake
4+
===================================================================
5+
--- linux-webrtc-reference-for-amazon-kinesis-video-streams-git.orig/CMake/libusrsctp.cmake
6+
+++ linux-webrtc-reference-for-amazon-kinesis-video-streams-git/CMake/libusrsctp.cmake
7+
@@ -18,6 +18,7 @@ add_custom_target(usrsctp-build ALL
8+
"-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} -fPIC"
9+
-Dsctp_werror=0
10+
-Dsctp_build_programs=0
11+
+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
12+
COMMAND ${CMAKE_COMMAND} --build ${LIBUSRSCTP_BUILD_DIR}
13+
COMMENT "Building libusrsctp library"
14+
)

recipes-sdk/linux-webrtc-reference-for-amazon-kinesis-video-streams/linux-webrtc-reference-for-amazon-kinesis-video-streams_git.bb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ EXTRA_OECMAKE:append = " -DCMAKE_C_FLAGS=-DLIBRARY_LOG_LEVEL=LOG_INFO"
2929
# nooelint: oelint.vars.specific
3030
CFLAGS:append:arm = " -Wno-error=format="
3131

32-
SRC_URI += "\
32+
SRC_URI = "\
3333
gitsm://github.com/awslabs/linux-webrtc-reference-for-amazon-kinesis-video-streams.git;protocol=https;branch=main \
3434
file://run-ptest \
35+
file://001-libwebsockets-cmake-3-5.patch \
36+
file://002-usrsctp-cmake-3-5.patch \
3537
"
3638

3739
SRCREV = "bf916b16ce0fef99e3023a1162cc8ce6bb722ea4"
@@ -159,4 +161,6 @@ OECMAKE_CXX_FLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'sanitize', '-fsanit
159161

160162
# nooelint: oelint.vars.insaneskip:INSANE_SKIP
161163
INSANE_SKIP:${PN} += "buildpaths"
164+
165+
# nooelint: oelint.vars.insaneskip:INSANE_SKIP
162166
INSANE_SKIP:${PN}-dbg += "buildpaths"

0 commit comments

Comments
 (0)