diff --git a/include/u-boot.mk b/include/u-boot.mk index 1bd7ed4bd56..529d69f4ba7 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 7bc49860072..313a96161ba 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