diff options
-rw-r--r-- | recipes-bsp/imx-lib/imx-lib/0001-Fix-gcc-15-errors.patch | 54 | ||||
-rw-r--r-- | recipes-bsp/imx-lib/imx-lib_git.bb | 3 |
2 files changed, 56 insertions, 1 deletions
diff --git a/recipes-bsp/imx-lib/imx-lib/0001-Fix-gcc-15-errors.patch b/recipes-bsp/imx-lib/imx-lib/0001-Fix-gcc-15-errors.patch new file mode 100644 index 00000000..964658fc --- /dev/null +++ b/recipes-bsp/imx-lib/imx-lib/0001-Fix-gcc-15-errors.patch | |||
@@ -0,0 +1,54 @@ | |||
1 | From 24e317b5cdc2b78735dfa7d4b2776b587b7a193f Mon Sep 17 00:00:00 2001 | ||
2 | From: Tom Hochstein <tom.hochstein@nxp.com> | ||
3 | Date: Thu, 12 Jun 2025 13:15:28 -0500 | ||
4 | Subject: [PATCH] Fix gcc 15 errors | ||
5 | |||
6 | Fixes HDMI and IPU headers c23 violations: | ||
7 | ``` | ||
8 | In file included from mxc_hdmi-cec.c:40: | ||
9 | hdmi-cec.h:54:23: error: 'bool' cannot be defined via 'typedef' | ||
10 | 54 | typedef unsigned char bool; | ||
11 | | ^~~~ | ||
12 | hdmi-cec.h:54:23: note: 'bool' is a keyword with '-std=c23' onwards | ||
13 | hdmi-cec.h:54:1: warning: useless type name in empty declaration | ||
14 | 54 | typedef unsigned char bool; | ||
15 | | ^~~~~~~ | ||
16 | ``` | ||
17 | |||
18 | Upstream-Status: Submitted | ||
19 | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> | ||
20 | --- | ||
21 | hdmi-cec/hdmi-cec.h | 2 -- | ||
22 | ipu/ipu.h | 3 --- | ||
23 | 2 files changed, 5 deletions(-) | ||
24 | |||
25 | diff --git a/hdmi-cec/hdmi-cec.h b/hdmi-cec/hdmi-cec.h | ||
26 | index 7d466c5..2b66208 100644 | ||
27 | --- a/hdmi-cec/hdmi-cec.h | ||
28 | +++ b/hdmi-cec/hdmi-cec.h | ||
29 | @@ -51,8 +51,6 @@ | ||
30 | #define false 0 | ||
31 | #endif | ||
32 | |||
33 | -typedef unsigned char bool; | ||
34 | - | ||
35 | /*! | ||
36 | * Enumeration of device type. | ||
37 | */ | ||
38 | diff --git a/ipu/ipu.h b/ipu/ipu.h | ||
39 | index 278385c..1a55875 100644 | ||
40 | --- a/ipu/ipu.h | ||
41 | +++ b/ipu/ipu.h | ||
42 | @@ -30,9 +30,6 @@ | ||
43 | #ifdef __KERNEL__ | ||
44 | #include <linux/interrupt.h> | ||
45 | #else | ||
46 | -#ifndef __cplusplus | ||
47 | -typedef unsigned char bool; | ||
48 | -#endif | ||
49 | #define irqreturn_t int | ||
50 | #define dma_addr_t int | ||
51 | #define u32 unsigned int | ||
52 | -- | ||
53 | 2.34.1 | ||
54 | |||
diff --git a/recipes-bsp/imx-lib/imx-lib_git.bb b/recipes-bsp/imx-lib/imx-lib_git.bb index ae2f5a5b..cff0313e 100644 --- a/recipes-bsp/imx-lib/imx-lib_git.bb +++ b/recipes-bsp/imx-lib/imx-lib_git.bb | |||
@@ -12,7 +12,8 @@ PE = "1" | |||
12 | 12 | ||
13 | PV = "5.9+${SRCPV}" | 13 | PV = "5.9+${SRCPV}" |
14 | 14 | ||
15 | SRC_URI = "git://github.com/nxp-imx/imx-lib.git;protocol=https;branch=${SRCBRANCH}" | 15 | SRC_URI = "git://github.com/nxp-imx/imx-lib.git;protocol=https;branch=${SRCBRANCH} \ |
16 | file://0001-Fix-gcc-15-errors.patch" | ||
16 | SRCBRANCH = "lf-6.12.3_1.0.0" | 17 | SRCBRANCH = "lf-6.12.3_1.0.0" |
17 | SRCREV = "8f124c3914d82019849fb697baeb730e4cb1b547" | 18 | SRCREV = "8f124c3914d82019849fb697baeb730e4cb1b547" |
18 | 19 | ||