Skip to content

Commit d62b4f2

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 36a95d7 commit d62b4f2

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 1 # Disable plugins
34

45
set -e
56

0 commit comments

Comments
 (0)