From 57a063cff7c4dd62112ec5d488c00007a9f89ccb Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Fri, 26 May 2023 21:33:48 +0300 Subject: [PATCH] kernel: Restore TARGET_KERNEL_VERSION This is used in a bunch of QCOM HALs Change-Id: I5bb76c47ad33e9fb1b81d1d23f78b2dbf390473a --- config/BoardConfigKernel.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/BoardConfigKernel.mk b/config/BoardConfigKernel.mk index 8791714ff2..c372895c49 100644 --- a/config/BoardConfigKernel.mk +++ b/config/BoardConfigKernel.mk @@ -33,6 +33,9 @@ # TARGET_KERNEL_LLVM_BINUTILS = Use LLVM binutils, defaults to true # TARGET_KERNEL_NO_GCC = Fully compile the kernel without GCC. # Defaults to false +# TARGET_KERNEL_VERSION = Reported kernel version in top level kernel +# makefile. Can be overriden in device trees +# in the event of prebuilt kernel. # # TARGET_KERNEL_DTBO_PREFIX = Override path prefix of TARGET_KERNEL_DTBO. # Defaults to empty @@ -68,6 +71,7 @@ endif KERNEL_VERSION := $(shell grep -s "^VERSION = " $(TARGET_KERNEL_SOURCE)/Makefile | awk '{ print $$3 }') KERNEL_PATCHLEVEL := $(shell grep -s "^PATCHLEVEL = " $(TARGET_KERNEL_SOURCE)/Makefile | awk '{ print $$3 }') +TARGET_KERNEL_VERSION ?= $(shell echo $(KERNEL_VERSION)"."$(KERNEL_PATCHLEVEL)) # 5.10+ can fully compile without GCC by default ifeq ($(shell expr $(KERNEL_VERSION) \>= 5), 1)