Skip to content

aportgen linux: Also remove -Werror in Kbuild files

postmarketOS Bot requested to merge feature/remove-werror-in-kbuild into master

Created by: ollieparanoid

When generating a new kernel fork package (linux-my-device) with either pmbootstrap init or pmbootstrap aportgen linux-my-device, we remove the -Werror flags from all Makefiles. Because usually the kernels were built with older GCC versions, that didn't throw as many errors as the current one does, and fixing all these warnings isn't helpful for a kernel that can never be updated properly anyway (real solution being mainlining as usually).

We discovered that one kernel had it in a Kbuild file in #1124 (closed), so this PR patches it for the Kbuild files as well. I've built the kernel from that issue successfully, without the PR it errors with a -Werror, and with the PR it does not throw an error at all.

Merge request reports