package/am33x-cm3: fix build with gcc >= 15
PATCH 1/2 package/am33x-cm3: fix build with gcc >= 15
gcc 15 defaults to the C23 standard, where bool, true and false are keywords. The am33x-cm3 code base defines them in its own stddef.h, so the build fails with:
src/include/stddef.h:18:15: error: 'bool' cannot be defined via 'typedef'
18 | typedef _Bool bool;
| ^~~~src/include/stddef.h:19:8: error: cannot use keyword 'false' as enumeration constant
19 | enum { false, true };
| ^~~~~The upstream project has not received any commit since 2018 and none of its branches fix this issue, so rather than carrying a patch that cannot be submitted to an active upstream, force the GNU C11 standard in the .mk file.
--- package/am33x-cm3/am33x-cm3.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
package/am33x-cm3/am33x-cm3.mk +3 -1
@@ -13,8 +13,10 @@ AM33X_CM3_LICENSE_FILES = License.txt # The build command below will use the standard cross-compiler (normally # build for Cortex-A8, to build the FW for the Cortex-M3. +# The code base predates C23 and defines its own bool/true/false, so +# force an older C standard to build with gcc >= 15. define AM33X_CM3_BUILD_CMDS - $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D) all + $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC) -std=gnu11" CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D) all endef define AM33X_CM3_INSTALL_TARGET_CMDS
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 configs/beaglebone: bump Linux to 6.18.56 and U-Boot to 2026.10
The patch bumps the Linux kernel to version 6.18.56 and U-Boot to version 2026.10.
Tested on beaglebone black.
--- board/beagleboard/beaglebone/patches/linux/linux.hash | 2 +- board/beagleboard/beaglebone/patches/uboot/uboot.hash | 2 +- configs/beaglebone_defconfig | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
board/beagleboard/beaglebone/patches/linux/linux.hash +1 -1
@@ -1,2 +1,2 @@ # From https://cdn.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc -sha256 ac26e508abd56e9f8b89872b6e10c49fc823bcc70d8068a5d8504c1a7c4ff045 linux-6.18.38.tar.xz +sha256 4633bbda2ab95eaf2a7af4041236451d6759c72e6946265531af4b3aacefbf89 linux-6.18.56.tar.xz
board/beagleboard/beaglebone/patches/uboot/uboot.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated -sha256 78e8bfc382fe388f9b55aa1daf8c563522a037779b5d4c349d1415e381f1243e u-boot-2026.07.tar.bz2 +sha256 3f856da3cbbc93af51ff95fde18588a348b4a26723b01d9841e999d988481015 u-boot-2026.10.tar.bz2
configs/beaglebone_defconfig +2 -2
@@ -12,7 +12,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beagleboard/beaglebone/genimage.cfg" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.18.38" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.18.56" BR2_LINUX_KERNEL_DEFCONFIG="omap2plus" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="ti/omap/am335x-evm ti/omap/am335x-bone ti/omap/am335x-boneblack ti/omap/am335x-bonegreen ti/omap/am335x-evmsk ti/omap/am335x-boneblue ti/omap/am335x-boneblack-wireless ti/omap/am335x-bonegreen-wireless ti/omap/am335x-bonegreen-eco"
@@ -27,7 +27,7 @@ BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_VERSION=y -BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2026.07" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2026.10" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am335x_evm" BR2_TARGET_UBOOT_NEEDS_DTC=y BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] configs/beaglebone: bump Linux to 6.18.56 and U-Boot to 2026.10
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Dario" == Dario Binacchi <[email protected]> writes:
The patch bumps the Linux kernel to version 6.18.56 and U-Boot to version 2026.10.
Tested on beaglebone black.
Signed-off-by Dario Binacchi <[email protected]>
Committed, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Dario" == Dario Binacchi <[email protected]> writes:
gcc 15 defaults to the C23 standard, where bool, true and false are keywords. The am33x-cm3 code base defines them in its own
stddef.h, so the build fails with:
src/include/stddef.h:18:15: error: 'bool' cannot be defined via 'typedef'
18 | typedef_Boolbool;
| ^~~~src/include/stddef.h:19:8: error: cannot use keyword 'false' as enumeration constant19 | enum { false, true }; | ^~~~~
Quoted 6 lines
The upstream project has not received any commit since 2018 and none of its branches fix this issue, so rather than carrying a patch that cannot be submitted to an active upstream, force the GNU C11 standard in the .mk file.
Signed-off-by Dario Binacchi <[email protected]>
Committed, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedIn reply of:
Quoted 11 lines
gcc 15 defaults to the C23 standard, where bool, true and false are keywords. The am33x-cm3 code base defines them in its own
stddef.h, so the build fails with:
src/include/stddef.h:18:15: error: 'bool' cannot be defined via 'typedef'
18 | typedef_Boolbool;
| ^~~~src/include/stddef.h:19:8: error: cannot use keyword 'false' as enumeration constant19 | enum { false, true }; | ^~~~~
Quoted 6 lines
The upstream project has not received any commit since 2018 and none of its branches fix this issue, so rather than carrying a patch that cannot be submitted to an active upstream, force the GNU C11 standard in the .mk file.
Signed-off-by Dario Binacchi <[email protected]>
Applied to 2026.08.x. Thanks
Quoted 10 lines
--- package/am33x-cm3/am33x-cm3.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)package/am33x-cm3/am33x-cm3.mk +0
-0@@ -13,8 +13,10 @@ AM33X_CM3_LICENSE_FILES = License.txt
package/am33x-cm3/am33x-cm3.mk AM33X_CM3_LICENSE_FILES = License.txt · line 22
Quoted 10 lines
package/am33x-cm3/am33x-cm3.mk +3
-1# The build command below will use the standard cross-compiler (normally # build for Cortex-A8, to build the FW for the Cortex-M3. +# The code base predates C23 and defines its own bool/true/false, so +# force an older C standard to build with gcc >= 15. define AM33X_CM3_BUILD_CMDS - $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D) all + $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC) -std=gnu11" CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D) all endef define AM33X_CM3_INSTALL_TARGET_CMDS
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot