From 7c8b352b3115d4e843e28f06dfb5fea1ce6f1147 Mon Sep 17 00:00:00 2001 From: Stephen Akinyemi Date: Sun, 19 Apr 2026 14:03:07 +0100 Subject: [PATCH] fix(build): set KBUILD_BUILD_VERSION to silence missing .version warning The build process deletes linux-6.12.68/.version before invoking the kernel build, but the x86 boot banner later tries to read it to print the build number. This caused a stray "cat: .version: No such file or directory" warning and left the banner rendering as "(#)" with no number. Setting KBUILD_BUILD_VERSION=1 provides an explicit build version so the banner prints "(#1)" and the warning is suppressed. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index c866753..f1bb448 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ TIMESTAMP = "Tue Feb 17 16:15:12 CET 2026" KERNEL_FLAGS = KBUILD_BUILD_TIMESTAMP=$(TIMESTAMP) KERNEL_FLAGS += KBUILD_BUILD_USER=root KERNEL_FLAGS += KBUILD_BUILD_HOST=libkrunfw +KERNEL_FLAGS += KBUILD_BUILD_VERSION=1 ifeq ($(SEV),1) VARIANT = -sev