diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-04-10 14:55:36 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-23 19:48:03 +0100 |
commit | 8df460977d3099da5ac26b8e948d5d936bb8100b (patch) | |
tree | ec07b06b5e206915a2211cde78d1f534098ea281 | |
parent | fdf0ab1370466cf0259d5b58eb7f29f4dcb2c501 (diff) | |
download | poky-8df460977d3099da5ac26b8e948d5d936bb8100b.tar.gz |
mips: Add '-std=gnu11' to vdso CFLAGS
Integrating the following commit(s) to linux-yocto/6.12:
1/1 [
Author: Khem Raj
Email: raj.khem@gmail.com
Subject: mips: Add '-std=gnu11' to vdso CFLAGS
Date: Wed, 26 Mar 2025 20:24:36 -0700
GCC 15 changed the default C standard dialect from gnu17 to gnu23,
which should not have impacted the kernel because it explicitly requests
the gnu11 standard in the main Makefile. However, mips/vdso code uses
its own CFLAGS without a '-std=' value, which break with this dialect
change because of the kernel's own definitions of bool, false, and true
conflicting with the C23 reserved keywords.
include/linux/stddef.h:11:9: error: cannot use keyword 'false' as enumeration constant
11 | false = 0,
| ^~~~~
include/linux/stddef.h:11:9: note: 'false' is a keyword with '-std=c23' onwards
include/linux/types.h:35:33: error: 'bool' cannot be defined via 'typedef'
35 | typedef _Bool bool;
| ^~~~
include/linux/types.h:35:33: note: 'bool' is a keyword with '-std=c23' onwards
Add '-std=gnu11' to the decompressor and purgatory CFLAGS to eliminate
these errors and make the C standard version of these areas match the
rest of the kernel.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
(From OE-Core rev: 832657740c76c63b2e2e9229eb3934c04a5d5ca1)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-rt_6.12.bb | 2 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-tiny_6.12.bb | 2 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto_6.12.bb | 22 |
3 files changed, 13 insertions, 13 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_6.12.bb b/meta/recipes-kernel/linux/linux-yocto-rt_6.12.bb index e0bf187823..a04bd3a95d 100644 --- a/meta/recipes-kernel/linux/linux-yocto-rt_6.12.bb +++ b/meta/recipes-kernel/linux/linux-yocto-rt_6.12.bb | |||
@@ -14,7 +14,7 @@ python () { | |||
14 | raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") | 14 | raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") |
15 | } | 15 | } |
16 | 16 | ||
17 | SRCREV_machine ?= "9f69ed0ac5f665d431fe52bacdda72534172712b" | 17 | SRCREV_machine ?= "15dd975f84e62ba7b866a96108aff27b97cdbf80" |
18 | SRCREV_meta ?= "d034c1073cb7f88eaf3ce929ba21ba11503729b2" | 18 | SRCREV_meta ?= "d034c1073cb7f88eaf3ce929ba21ba11503729b2" |
19 | 19 | ||
20 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine;protocol=https \ | 20 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine;protocol=https \ |
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_6.12.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_6.12.bb index c96874480b..5b3661a80e 100644 --- a/meta/recipes-kernel/linux/linux-yocto-tiny_6.12.bb +++ b/meta/recipes-kernel/linux/linux-yocto-tiny_6.12.bb | |||
@@ -17,7 +17,7 @@ DEPENDS += "openssl-native util-linux-native" | |||
17 | KMETA = "kernel-meta" | 17 | KMETA = "kernel-meta" |
18 | KCONF_BSP_AUDIT_LEVEL = "2" | 18 | KCONF_BSP_AUDIT_LEVEL = "2" |
19 | 19 | ||
20 | SRCREV_machine ?= "b2c792d89ac51b1147810021dddab1e9f38ade9c" | 20 | SRCREV_machine ?= "2ee7ebed771b39a795c227aae81524175abf5d00" |
21 | SRCREV_meta ?= "d034c1073cb7f88eaf3ce929ba21ba11503729b2" | 21 | SRCREV_meta ?= "d034c1073cb7f88eaf3ce929ba21ba11503729b2" |
22 | 22 | ||
23 | PV = "${LINUX_VERSION}+git" | 23 | PV = "${LINUX_VERSION}+git" |
diff --git a/meta/recipes-kernel/linux/linux-yocto_6.12.bb b/meta/recipes-kernel/linux/linux-yocto_6.12.bb index 2a8cb964d0..10350edd5e 100644 --- a/meta/recipes-kernel/linux/linux-yocto_6.12.bb +++ b/meta/recipes-kernel/linux/linux-yocto_6.12.bb | |||
@@ -18,17 +18,17 @@ KBRANCH:qemux86.104 ?= "v6.12/standard/base" | |||
18 | KBRANCH:qemuloongarch64 ?= "v6.12/standard/base" | 18 | KBRANCH:qemuloongarch64 ?= "v6.12/standard/base" |
19 | KBRANCH:qemumips64 ?= "v6.12/standard/mti-malta64" | 19 | KBRANCH:qemumips64 ?= "v6.12/standard/mti-malta64" |
20 | 20 | ||
21 | SRCREV_machine:qemuarm ?= "f7235e5c375b9ba3d49902dd36d4b66eefc19979" | 21 | SRCREV_machine:qemuarm ?= "3a973aae1addba0ecd7485694d4fcfc624085f24" |
22 | SRCREV_machine:qemuarm64 ?= "b2c792d89ac51b1147810021dddab1e9f38ade9c" | 22 | SRCREV_machine:qemuarm64 ?= "2ee7ebed771b39a795c227aae81524175abf5d00" |
23 | SRCREV_machine:qemuloongarch64 ?= "b2c792d89ac51b1147810021dddab1e9f38ade9c" | 23 | SRCREV_machine:qemuloongarch64 ?= "2ee7ebed771b39a795c227aae81524175abf5d00" |
24 | SRCREV_machine:qemumips ?= "c102fc13802679cf23f6a41f9ea54294294f7a93" | 24 | SRCREV_machine:qemumips ?= "fc7877fe6aa5f2a445e17941a5858c7e19a1746d" |
25 | SRCREV_machine:qemuppc ?= "b2c792d89ac51b1147810021dddab1e9f38ade9c" | 25 | SRCREV_machine:qemuppc ?= "2ee7ebed771b39a795c227aae81524175abf5d00" |
26 | SRCREV_machine:qemuriscv64 ?= "b2c792d89ac51b1147810021dddab1e9f38ade9c" | 26 | SRCREV_machine:qemuriscv64 ?= "2ee7ebed771b39a795c227aae81524175abf5d00" |
27 | SRCREV_machine:qemuriscv32 ?= "b2c792d89ac51b1147810021dddab1e9f38ade9c" | 27 | SRCREV_machine:qemuriscv32 ?= "2ee7ebed771b39a795c227aae81524175abf5d00" |
28 | SRCREV_machine:qemux86 ?= "b2c792d89ac51b1147810021dddab1e9f38ade9c" | 28 | SRCREV_machine:qemux86 ?= "2ee7ebed771b39a795c227aae81524175abf5d00" |
29 | SRCREV_machine:qemux86-64 ?= "b2c792d89ac51b1147810021dddab1e9f38ade9c" | 29 | SRCREV_machine:qemux86-64 ?= "2ee7ebed771b39a795c227aae81524175abf5d00" |
30 | SRCREV_machine:qemumips64 ?= "ee2d5ef2e92ca23c5b345ac50bab130c6a9ad0fc" | 30 | SRCREV_machine:qemumips64 ?= "9e2bc57fafb525cb3fbbfab7c7f92bca7e9a43f4" |
31 | SRCREV_machine ?= "b2c792d89ac51b1147810021dddab1e9f38ade9c" | 31 | SRCREV_machine ?= "2ee7ebed771b39a795c227aae81524175abf5d00" |
32 | SRCREV_meta ?= "d034c1073cb7f88eaf3ce929ba21ba11503729b2" | 32 | SRCREV_meta ?= "d034c1073cb7f88eaf3ce929ba21ba11503729b2" |
33 | 33 | ||
34 | # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll | 34 | # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll |