kbuild: Disable gcc plugins
authorPhil Elwell <phil@raspberrypi.com>
Wed, 8 Apr 2020 14:23:56 +0000 (15:23 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:13:11 +0000 (19:13 +0000)
commitd62b4f2f5742bf39892acf8c6804fffee174d371
tree3d703891265e97706a0dda7b0467b67195bbe064
parent36a95d720278802a801660fd77ec574f11cb2e06
kbuild: Disable gcc plugins

The GCC plugin feature leads to different kernel configurations on what
ought to be equivalent build systems because they depend on the build
hosts native compilers rather than the cross compilers needed for the
target. This causes problems with module symbol version mismatches.

Disable GCC plugins for all build hosts.

Advanced build script hackery borrowed from a patch by milhouse.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
scripts/gcc-plugin.sh