From 97d6719ca75cf7e9ecd1d40e7b95f47531e8074f Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Fri, 3 Jul 2026 22:56:39 +0800 Subject: [PATCH] uboot-at91: fix build failure with GCC 14.4 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 Link: https://github.com/openwrt/openwrt/pull/24058 Signed-off-by: Robert Marko --- .../patches/002-increase-max-SPL-size.patch | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 package/boot/uboot-at91/patches/002-increase-max-SPL-size.patch 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 index 00000000000..3b0d9436bc3 --- /dev/null +++ b/package/boot/uboot-at91/patches/002-increase-max-SPL-size.patch @@ -0,0 +1,61 @@ +From 52bd8e248c4b4766037f30a5a93a9bcf59abd2c6 Mon Sep 17 00:00:00 2001 +From: Shiji Yang +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 +--- + 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 -- 2.47.3