[PATCH 12/23] kbuild: avoid re-running compiler and linker probes

Nicolas Schier n.schier at fritz.com
Fri Sep 11 11:17:57 PDT 2026


On Fri, Sep 11, 2026 at 06:33:33PM +0100, David Laight wrote:
> On Thu, 10 Sep 2026 17:42:35 +0200
> Nicolas Schier <n.schier at fritz.com> wrote:
> 
> ...
> > Yes, skimming through the patch, I thought about that, too.  Moving more 
> > cc option checks to Kconfig will make building out-of-tree kmods with a 
> > different compiler more dangerous.  Maybe we will have to make the 
> > warning in Makefile's prepare (external kmods) target a bit louder.
> 
> One problem is that distributions have a nasty habit of shipping kernels
> that are compiled with a different compiler version to they actually
> ship as a compiler.
> In some cases the versions are clearly the same - but the version
> strings differ.

yeah, I guess you hit the mark.

-- 
Nicolas



More information about the linux-riscv mailing list