]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - Makefile
kbuild: terminate Kconfig when $(CC) or $(LD) is missing
[mirror_ubuntu-focal-kernel.git] / Makefile
index ba9f41f62987a60061092642234722e0e93198b5..95421654a16dea980e52017b46c539c53b251587 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -537,7 +537,7 @@ endif
 # Some architectures define CROSS_COMPILE in arch/$(SRCARCH)/Makefile.
 # CC_VERSION_TEXT is referenced from Kconfig (so it needs export),
 # and from include/config/auto.conf.cmd to detect the compiler upgrade.
-CC_VERSION_TEXT = $(shell $(CC) --version | head -n 1)
+CC_VERSION_TEXT = $(shell $(CC) --version 2>/dev/null | head -n 1)
 
 ifeq ($(config-targets),1)
 # ===========================================================================