From 086b03865bea241c49efd53f5a77891637a2128e Mon Sep 17 00:00:00 2001 From: Huaizhi Wen Date: Tue, 27 May 2025 19:04:56 +0800 Subject: [PATCH] driver: Makefile: Change the judgment method of the kernel version Signed-off-by: Huaizhi Wen --- src/jailhouse/driver/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jailhouse/driver/Makefile b/src/jailhouse/driver/Makefile index 9a3d275..25bd179 100644 --- a/src/jailhouse/driver/Makefile +++ b/src/jailhouse/driver/Makefile @@ -11,7 +11,7 @@ # the COPYING file in the top-level directory. # -KERNEL_VERSION = $(shell uname -r | awk -F. '{ printf("%d%03d%03d\n", $$1, $$2, $$3); }') +KERNEL_VERSION = $(shell echo $(KERNELRELEASE) | awk -F. '{ printf("%d%03d%03d\n", $$1, $$2, $$3); }') TARGET_VERSION = 5010209 obj-m := jailhouse.o -- Gitee