devicepkg-dev: Properly replace -Werror= (!181)

The 5.0 kernel now includes -Werror= parameters in the makefile, this
changes downstreamkernel_prepare.sh to support them. Without this, the
script will replace, for example, -Werror=blah with =blah, which causes
the kernel compilation to fail.
This commit is contained in:
Clayton Craft 2019-01-27 21:04:33 -08:00 committed by Oliver Smith
parent f9915bd0ea
commit db85aebd0f
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 3 additions and 2 deletions

View file

@ -21,6 +21,7 @@ makefiles="$(find "$builddir" -type f -name Makefile)
$(find "$builddir" -type f -name Kbuild)"
for i in $makefiles; do
sed -i 's/-Werror-/-W/g' "$i"
sed -i 's/-Werror=/-W/g' "$i"
sed -i 's/-Werror//g' "$i"
done