]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
UBUNTU: [Packaging] Don't disable CONFIG_DEBUG_INFO in headers packages
authorSeth Forshee <seth.forshee@canonical.com>
Fri, 29 Jan 2021 19:13:45 +0000 (13:13 -0600)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Feb 2021 07:26:29 +0000 (08:26 +0100)
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>
debian/rules.d/2-binary-arch.mk

index a0b7d7180afeb58ace108c2cfc5d294db9f896bf..47efcbd612c96d717dd1c6a25473365427a3aaaa 100644 (file)
@@ -303,9 +303,7 @@ endif
        # 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