APPLIED[L]: [KINETIC][LUNAR][PATCH] UBUNTU: [Packaging] Set explicit CC in the headers package
Andrea Righi
andrea.righi at canonical.com
Thu Dec 15 09:35:32 UTC 2022
On Thu, Dec 15, 2022 at 09:11:51AM +0000, Dimitri John Ledkov wrote:
> BugLink: https://bugs.launchpad.net/bugs/1999750
>
> Currently Ubuntu Linux kernel header packages use stock Makefile as
> shipped by upstream kernel. During linux kernel package build however
> HOSTCC and CC are typically overridden to use explicit complier
> version $(DEB_HOST_GNU_TYPE)-gcc-12. This can lead to dkms module
> build failures as despite all efforts to reuse matching gcc version
> out of .config, various shell scripts / build systems / makefiles do
> not pass the CC variable as a make variable to the end make call that
> is used to build dkms modules. To avoid this, hardcode the correct
> compiler in the linux headers package shipped Makefile. This is
> similar to the Makefile includes that debian ships, albeit with less
> indirections.
>
> Tested by applying this patch to the hwe-5.19 kernel, rebuilding it,
> and testing that dkms module building is using expected compilers now.
>
> Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
Applied to lunar/linux.
Thanks,
-Andrea
More information about the kernel-team
mailing list