device/linux-*: fix various linter warnings, remove HOSTCC where possible
This builds on the work in !976 (merged) and fixes the majority of linter warnings in the downstream kernel packages. It also removes setting HOSTCC
when using latest GCC as it is not needed.
$ pmbootstrap lint linux-* | wc -l
- Before: 1101
- After: 19
The main remaining linter warnings are because of a number of weird APKBUILDs with ksrcdir
variables. They don't use our downstreamkernel_*
functions at all so it's likely easier to fix them by regenerating/or changing them to use downstreamkernel_*
. (Not as part of this MR...)
This change is a mixture of automated changes and custom ones, I tried to split it into useful commits.
Edited by Minecrell