Skip to content

linux-headers: Skip exact compiler version comparison (Closes: #1019749)

Ben Hutchings requested to merge benh/linux:skip-cc-version-check into sid

The top-level Makefile warns if the compiler version string changes at all between the kernel build and an out-of-tree module build.

We expect that major compiler version changes could introduce ABI changes, and override the CC variable in out-of-tree module builds to ensure that the same major compiler version is used. But minor version changes should not make a difference, so this exact version comparison produces false warnings.

Since custom kernel packages don't have that, don't remove the version comparison. Instead:

  • Skip it if $(DEBIAN_KERNEL_NO_CC_VERSION_CHECK) is non-empty.
  • Define this variable in .kernelvariables.
Edited by Ben Hutchings

Merge request reports

Loading