summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libcyusbserial
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/libcyusbserial')
-rw-r--r--meta-oe/recipes-support/libcyusbserial/libcyusbserial/0001-Fix-gcc-15-incompatible-pointer-types-error.patch41
-rw-r--r--meta-oe/recipes-support/libcyusbserial/libcyusbserial_git.bb2
2 files changed, 42 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libcyusbserial/libcyusbserial/0001-Fix-gcc-15-incompatible-pointer-types-error.patch b/meta-oe/recipes-support/libcyusbserial/libcyusbserial/0001-Fix-gcc-15-incompatible-pointer-types-error.patch
new file mode 100644
index 0000000000..74ff091c94
--- /dev/null
+++ b/meta-oe/recipes-support/libcyusbserial/libcyusbserial/0001-Fix-gcc-15-incompatible-pointer-types-error.patch
@@ -0,0 +1,41 @@
1From 7b5318037b2a21a592e8a85c9724c1dc35078426 Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Thu, 3 Apr 2025 20:42:03 +0900
4Subject: [PATCH] Fix gcc 15 incompatible-pointer-types error
5
6* Fix incompatible pointer type error in signal function parameter
7TOPDIR/tmp/work/core2-64-oe-linux/libcyusbserial/1.0.0+git/git/tools/cyusbserialtest.c:101:22: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
8 101 | signal (SIGUSR1, deviceHotPlug);
9 | ^~~~~~~~~~~~~
10 | |
11 | void (*)(void)
12In file included from TOPDIR/tmp/work/core2-64-oe-linux/libcyusbserial/1.0.0+git/git/tools/cyusbserialtest.c:25:
13TOPDIR/tmp/work/core2-64-oe-linux/libcyusbserial/1.0.0+git/recipe-sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)'
14 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
15 | ~~~~~~~~~~~~~~~^~~~~~~~~
16TOPDIR/tmp/work/core2-64-oe-linux/libcyusbserial/1.0.0+git/git/tools/cyusbserialtest.c:83:6: note: 'deviceHotPlug' declared here
17 83 | void deviceHotPlug () {
18 | ^~~~~~~~~~~~~
19TOPDIR/tmp/work/core2-64-oe-linux/libcyusbserial/1.0.0+git/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
20 72 | typedef void (*__sighandler_t) (int);
21 | ^~~~~~~~~~~~~~
22
23Upstream-Status: Submitted [https://github.com/cyrozap/libcyusbserial/pull/7]
24Signed-off-by: mark.yang <mark.yang@lge.com>
25---
26 tools/cyusbserialtest.c | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
28
29diff --git a/tools/cyusbserialtest.c b/tools/cyusbserialtest.c
30index 9f21249..92e91a1 100644
31--- a/tools/cyusbserialtest.c
32+++ b/tools/cyusbserialtest.c
33@@ -80,7 +80,7 @@ int getUserInput()
34 return output;
35 }
36
37-void deviceHotPlug () {
38+void deviceHotPlug (int sig) {
39 CY_RETURN_STATUS rStatus;
40 deviceAddedRemoved = true;
41 selectedDeviceNum = -1;
diff --git a/meta-oe/recipes-support/libcyusbserial/libcyusbserial_git.bb b/meta-oe/recipes-support/libcyusbserial/libcyusbserial_git.bb
index dd7f457b10..939e7db24e 100644
--- a/meta-oe/recipes-support/libcyusbserial/libcyusbserial_git.bb
+++ b/meta-oe/recipes-support/libcyusbserial/libcyusbserial_git.bb
@@ -10,9 +10,9 @@ PV = "1.0.0+git"
10SRCREV = "655e2d544183d094f0e2d119c7e0c6206a0ddb3f" 10SRCREV = "655e2d544183d094f0e2d119c7e0c6206a0ddb3f"
11SRC_URI = "git://github.com/cyrozap/${BPN}.git;branch=master;protocol=https \ 11SRC_URI = "git://github.com/cyrozap/${BPN}.git;branch=master;protocol=https \
12 file://0001-CMakeLists.txt-don-t-fall-back-CMAKE_INSTALL_LIBDIR-.patch \ 12 file://0001-CMakeLists.txt-don-t-fall-back-CMAKE_INSTALL_LIBDIR-.patch \
13 file://0001-Fix-gcc-15-incompatible-pointer-types-error.patch \
13" 14"
14 15
15S = "${WORKDIR}/git"
16 16
17inherit cmake 17inherit cmake
18 18