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-28 08:13:52 +01:00
committed by Oliver Smith
parent f9915bd0ea
commit db85aebd0f
2 changed files with 3 additions and 2 deletions
@@ -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