]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
uboot-at91: fix build failure with GCC 14.4 24058/head
authorShiji Yang <yangshiji66@outlook.com>
Fri, 3 Jul 2026 14:56:39 +0000 (22:56 +0800)
committerRobert Marko <robimarko@gmail.com>
Fri, 3 Jul 2026 20:14:17 +0000 (22:14 +0200)
It seems that GCC 14.4 will generate larger binary compared to the
GCC 14.3 on ARM32 platforms. We have to increase the maximum allowed
SPL size to fix build errors.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/24058
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/boot/uboot-at91/patches/002-increase-max-SPL-size.patch [new file with mode: 0644]

diff --git a/package/boot/uboot-at91/patches/002-increase-max-SPL-size.patch b/package/boot/uboot-at91/patches/002-increase-max-SPL-size.patch
new file mode 100644 (file)
index 0000000..3b0d943
--- /dev/null
@@ -0,0 +1,61 @@
+From 52bd8e248c4b4766037f30a5a93a9bcf59abd2c6 Mon Sep 17 00:00:00 2001
+From: Shiji Yang <yangshiji66@outlook.com>
+Date: Fri, 3 Jul 2026 21:56:16 +0800
+Subject: [PATCH] increase max SPL size
+
+The GCC 14.4 generates slightly larger binaries for the Cortex-A5
+platform. This resulted in the build failure on some emmc based
+boards. Fix it by increasing the CONFIG_SPL_MAX_SIZE.
+
+Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
+---
+ include/configs/sama5d27_som1_ek.h   | 2 +-
+ include/configs/sama5d27_wlsom1_ek.h | 2 +-
+ include/configs/sama5d2_icp.h        | 2 +-
+ include/configs/sama5d2_xplained.h   | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+--- a/include/configs/sama5d27_som1_ek.h
++++ b/include/configs/sama5d27_som1_ek.h
+@@ -31,7 +31,7 @@
+ #endif
+
+ /* SPL */
+-#define CONFIG_SPL_MAX_SIZE           0x10000
++#define CONFIG_SPL_MAX_SIZE           0x18000
+ #define CONFIG_SPL_BSS_START_ADDR     0x20000000
+ #define CONFIG_SPL_BSS_MAX_SIZE               0x80000
+ #define CONFIG_SYS_SPL_MALLOC_START   0x20080000
+--- a/include/configs/sama5d27_wlsom1_ek.h
++++ b/include/configs/sama5d27_wlsom1_ek.h
+@@ -27,7 +27,7 @@
+ #endif
+
+ /* SPL */
+-#define CONFIG_SPL_MAX_SIZE           0x10000
++#define CONFIG_SPL_MAX_SIZE           0x18000
+ #define CONFIG_SPL_BSS_START_ADDR     0x20000000
+ #define CONFIG_SPL_BSS_MAX_SIZE               0x80000
+ #define CONFIG_SYS_SPL_MALLOC_START   0x20080000
+--- a/include/configs/sama5d2_icp.h
++++ b/include/configs/sama5d2_icp.h
+@@ -43,7 +43,7 @@
+ #endif
+
+ /* SPL */
+-#define CONFIG_SPL_MAX_SIZE           0x10000
++#define CONFIG_SPL_MAX_SIZE           0x18000
+ #define CONFIG_SPL_BSS_START_ADDR     0x20000000
+ #define CONFIG_SPL_BSS_MAX_SIZE               0x80000
+ #define CONFIG_SYS_SPL_MALLOC_START   0x20080000
+--- a/include/configs/sama5d2_xplained.h
++++ b/include/configs/sama5d2_xplained.h
+@@ -52,7 +52,7 @@
+ #endif
+
+ /* SPL */
+-#define CONFIG_SPL_MAX_SIZE           0x10000
++#define CONFIG_SPL_MAX_SIZE           0x18000
+ #define CONFIG_SPL_BSS_START_ADDR     0x20000000
+ #define CONFIG_SPL_BSS_MAX_SIZE               0x80000
+ #define CONFIG_SYS_SPL_MALLOC_START   0x20080000