This config is enabled during the kernel build (though modules
are stripped), but we disable it in the config installed by our
headers packages so that dkms modules do not have debug
information. With 5.11 this is causing external modules to fail
to load, and the default behavior of dkms is to strip modules,
so it's unnecessary to disable CONFIG_DEBUG_INFO in the installed
config file. Stop disabling it so that external modules can load.
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
# The flavour specific headers image
# TODO: Would be nice if we didn't have to dupe the original builddir
install -d -m755 $(hdrdir)
- cat $(builddir)/build-$*/.config | \
- sed -e 's/.*CONFIG_DEBUG_INFO=.*/# CONFIG_DEBUG_INFO is not set/g' > \
- $(hdrdir)/.config
+ cp $(builddir)/build-$*/.config $(hdrdir)
chmod 644 $(hdrdir)/.config
$(kmake) O=$(hdrdir) -j1 syncconfig prepare scripts
# We'll symlink this stuff