From 2b7732ad3c47600efcceb99c84a4d37f59fbfbac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sat, 29 Jun 2019 12:19:59 +0200 Subject: [PATCH] linux4.9: patch Makefile to add -Wno-error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Try to work around the gcc-9.1.0 warning on armv7l* Signed-off-by: Jürgen Buchmüller --- srcpkgs/linux4.9/template | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srcpkgs/linux4.9/template b/srcpkgs/linux4.9/template index 6efb21641a1..1306f158332 100644 --- a/srcpkgs/linux4.9/template +++ b/srcpkgs/linux4.9/template @@ -35,8 +35,6 @@ mutable_files=" /usr/lib/modules/${_kernver}/modules.alias.bin /usr/lib/modules/${_kernver}/modules.devname" -CFLAGS="-Wno-missing-attributes" - do_configure() { # If there's a file called -dotconfig, use it to # configure the kernel; otherwise use arch defaults and all stuff @@ -87,6 +85,7 @@ do_build() { fi export LDFLAGS= make ARCH=$arch ${_version} ${_cross} ${makejobs} prepare + vsed -i Makefile -e "/KBUILD_CFLAGS *:=/s/:= /:= -Wno-error /" make ARCH=$arch ${_version} ${_cross} ${makejobs} ${_args} } do_install() {