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

(cherry picked from commit da58899)
  • Loading branch information
marmarek committed Jan 20, 2023
1 parent 41ab283 commit de707ba
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 @@ -391,6 +391,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

# Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
cp %buildroot/lib/modules/%kernelrelease/build/.config %buildroot/lib/modules/%kernelrelease/build/include/config/auto.conf
Expand Down

0 comments on commit de707ba

Please sign in to comment.