summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShiji Yang2025-05-18 11:29:30 +0000
committerHauke Mehrtens2025-05-22 22:10:23 +0000
commit6229a19d0f35158c5d6bf70939eb08225836f626 (patch)
treee759e7309def5f270a53d9eeb03f541d081b821f
parent499a59c234f45614f9a4f5f2ea1a37236d043df1 (diff)
downloadopenwrt-6229a19d0f35158c5d6bf70939eb08225836f626.tar.gz
uboot-bcm4908: fix build with GCC14
A lot of warnings were treated as errors after the default compiler switched to GCC14. It's hard to fix them one by one, and this u-boot is not maintained by upstream, so let's just silence these warnings. Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/18833 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--include/u-boot.mk1
-rw-r--r--package/boot/uboot-bcm4908/Makefile6
2 files changed, 7 insertions, 0 deletions
diff --git a/include/u-boot.mk b/include/u-boot.mk
index 1bd7ed4bd5..529d69f4ba 100644
--- a/include/u-boot.mk
+++ b/include/u-boot.mk
@@ -78,6 +78,7 @@ UBOOT_MAKE_FLAGS = \
PKG_CONFIG_PATH="$(STAGING_DIR_HOST)/lib/pkgconfig" \
PKG_CONFIG_LIBDIR="$(STAGING_DIR_HOST)/lib/pkgconfig" \
PKG_CONFIG_EXTRAARGS="--static" \
+ $(if $(KBUILD_CFLAGS),KCFLAGS="$(KBUILD_CFLAGS)") \
$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='')
define Build/U-Boot/Target
diff --git a/package/boot/uboot-bcm4908/Makefile b/package/boot/uboot-bcm4908/Makefile
index 7bc4986007..313a96161b 100644
--- a/package/boot/uboot-bcm4908/Makefile
+++ b/package/boot/uboot-bcm4908/Makefile
@@ -32,6 +32,12 @@ define U-Boot/bcm4912
SOC:=bcm4912
endef
+KBUILD_CFLAGS := \
+ -Wno-error=implicit-function-declaration \
+ -Wno-error=implicit-int \
+ -Wno-error=incompatible-pointer-types \
+ -Wno-error=int-conversion
+
UBOOT_TARGETS := \
bcm4908 \
bcm4912