diff options
-rw-r--r-- | recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc/0001-base_type.h-make-header-compatible-with-c23.patch | 39 | ||||
-rw-r--r-- | recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.10.1.bb | 5 |
2 files changed, 43 insertions, 1 deletions
diff --git a/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc/0001-base_type.h-make-header-compatible-with-c23.patch b/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc/0001-base_type.h-make-header-compatible-with-c23.patch new file mode 100644 index 00000000..8d017ab7 --- /dev/null +++ b/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc/0001-base_type.h-make-header-compatible-with-c23.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From e7f6097c9e7cb30f130502cc4804e1a1b01342de Mon Sep 17 00:00:00 2001 | ||
2 | From: Max Krummenacher <max.krummenacher@toradex.com> | ||
3 | Date: Wed, 7 May 2025 16:13:38 +0000 | ||
4 | Subject: [PATCH] base_type.h: make header compatible with c23 | ||
5 | |||
6 | With C23 bool, true and false are built in keywords and cannot be | ||
7 | redefined. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> | ||
11 | --- | ||
12 | usr/include/hantro_VC8000E_enc/base_type.h | 4 ++++ | ||
13 | 1 file changed, 4 insertions(+) | ||
14 | |||
15 | diff --git a/usr/include/hantro_VC8000E_enc/base_type.h b/usr/include/hantro_VC8000E_enc/base_type.h | ||
16 | index 282fc81b8eba..af4212eed2bd 100755 | ||
17 | --- a/usr/include/hantro_VC8000E_enc/base_type.h | ||
18 | +++ b/usr/include/hantro_VC8000E_enc/base_type.h | ||
19 | @@ -67,6 +67,9 @@ typedef unsigned int UInt; | ||
20 | #define HANTRO_FALSE 0 | ||
21 | #define HANTRO_TRUE 1 | ||
22 | |||
23 | +#if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L | ||
24 | +/* bool, true and false are keywords. */ | ||
25 | +#else | ||
26 | #ifndef bool | ||
27 | typedef enum | ||
28 | { | ||
29 | @@ -74,6 +77,7 @@ typedef enum | ||
30 | true = HANTRO_TRUE | ||
31 | } bool; | ||
32 | #endif | ||
33 | +#endif | ||
34 | |||
35 | enum | ||
36 | { | ||
37 | -- | ||
38 | 2.42.0 | ||
39 | |||
diff --git a/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.10.1.bb b/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.10.1.bb index 2e4718c9..5aaf92c5 100644 --- a/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.10.1.bb +++ b/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.10.1.bb | |||
@@ -6,7 +6,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=ca53281cc0caa7e320d4945a896fb837" | |||
6 | 6 | ||
7 | inherit fsl-eula-unpack | 7 | inherit fsl-eula-unpack |
8 | 8 | ||
9 | SRC_URI = "${FSL_MIRROR}/${BP}-${IMX_SRCREV_ABBREV}.bin;fsl-eula=true" | 9 | SRC_URI = " \ |
10 | ${FSL_MIRROR}/${BP}-${IMX_SRCREV_ABBREV}.bin;fsl-eula=true \ | ||
11 | file://0001-base_type.h-make-header-compatible-with-c23.patch \ | ||
12 | " | ||
10 | IMX_SRCREV_ABBREV = "c0244a1" | 13 | IMX_SRCREV_ABBREV = "c0244a1" |
11 | 14 | ||
12 | SRC_URI[sha256sum] = "713ba375f25490727fcc62bab5d5508f74de03204b4c153464b696b652c5c7df" | 15 | SRC_URI[sha256sum] = "713ba375f25490727fcc62bab5d5508f74de03204b4c153464b696b652c5c7df" |