Skip to content

Commit 2ff70f9

Browse files
pelwellpopcornmix
authored andcommitted
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>
1 parent 33fbaac commit 2ff70f9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎scripts/gcc-plugin.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22
# SPDX-License-Identifier: GPL-2.0
3+
exit 0 # Disable plugins
34
srctree=$(dirname "$0")
45

56
SHOW_ERROR=

0 commit comments

Comments
 (0)