linux4.9: patch Makefile to add -Wno-error

Try to work around the gcc-9.1.0 warning on armv7l*

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-06-29 12:19:59 +02:00
parent 21219eba8b
commit 2b7732ad3c
No known key found for this signature in database
GPG key ID: DE55AD8DBEBB4EE8

View file

@ -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 <arch>-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() {