Skip to content

Commit

Permalink
Do not override include/config/auto.conf with .config
Browse files Browse the repository at this point in the history
They are not exactly the same format. Differences in quoting break
building external modules.

Fixes QubesOS/qubes-issues#7675
  • Loading branch information
marmarek committed Aug 2, 2022
1 parent bb75175 commit d5fbc9f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kernel.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,6 @@ sed -e 's/^\(CONFIG_GCC_PLUGIN.*\)=y/# \1 is not set/' .config > \
sed -e '/^#define CONFIG_GCC_PLUGIN/d' include/generated/autoconf.h > \
%buildroot/lib/modules/%kernelrelease/build/include/generated/autoconf.h

# 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

# Make sure the Makefile and version.h have a matching timestamp so that
# external modules can be built
touch -r %buildroot/lib/modules/%kernelrelease/build/Makefile %buildroot/lib/modules/%kernelrelease/build/include/generated/uapi/linux/version.h
Expand Down

0 comments on commit d5fbc9f

Please sign in to comment.