Skip to content

Commit

Permalink
Disable GCC plugins for external modules in auto.conf too
Browse files Browse the repository at this point in the history
auto.conf was a copy of .config before (which made GCC plugins
disabled), but since it isn't the case anymore, GCC plugins need to be
disabled separately.

Fixes: d5fbc9f "Do not override include/config/auto.conf with .config"
QubesOS/qubes-issues#7991
  • Loading branch information
marmarek committed Jan 18, 2023
1 parent ebea223 commit da58899
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ sed -e 's/^\(CONFIG_GCC_PLUGIN.*\)=y/# \1 is not set/' .config > \
%buildroot/lib/modules/%kernelrelease/build/.config
sed -e '/^#define CONFIG_GCC_PLUGIN/d' include/generated/autoconf.h > \
%buildroot/lib/modules/%kernelrelease/build/include/generated/autoconf.h
sed -e '/^CONFIG_GCC_PLUGIN/d' include/config/auto.conf > \
%buildroot/lib/modules/%kernelrelease/build/include/config/auto.conf

# Make sure the Makefile and version.h have a matching timestamp so that
# external modules can be built
Expand Down

0 comments on commit da58899

Please sign in to comment.