diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2025-06-12 16:53:09 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-12 16:53:09 -0300 |
commit | 9d5fa3214065f3d9b342b412762424724511372e (patch) | |
tree | 2c2d812308c372236f28310452ceb68be27be1f3 | |
parent | 1ceebd8f13de30e1c6d5f04e16d378782e7b66ad (diff) | |
parent | 74c4045f275601f2e7b58cf0c55acc87c369e5d2 (diff) | |
download | meta-freescale-9d5fa3214065f3d9b342b412762424724511372e.tar.gz |
Merge pull request #2303 from nxp-upstream/imx-lib
imx-lib: Fix GCC 15 build errors
-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 | ||