Makefile: Make compiler version comparison optional
authorBen Hutchings <benh@debian.org>
Thu, 15 Sep 2022 00:14:03 +0000 (02:14 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Mon, 8 May 2023 20:16:50 +0000 (21:16 +0100)
commit53b0e2fbb42e3fa0ad7ea04852c7e4d76b9ebe0b
tree4700749a48527c955b8ca46a7db34ad4c9b5352f
parentb72880cafb91e4b24825850b1b0c4498a6f95e9e
Makefile: Make compiler version comparison optional

Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/1019749

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.

Gbp-Pq: Topic debian
Gbp-Pq: Name makefile-make-compiler-version-comparison-optional.patch
Makefile