summaryrefslogtreecommitdiff
path: root/mk/kernel-ver.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/kernel-ver.mk')
-rw-r--r--mk/kernel-ver.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/kernel-ver.mk b/mk/kernel-ver.mk
index eb04c4f30..e688c3de2 100644
--- a/mk/kernel-ver.mk
+++ b/mk/kernel-ver.mk
@@ -11,7 +11,11 @@
# KERNEL_VERSION: final kernel version how we want to identify a specific kernel
ifeq ($(ADK_TARGET_KERNEL_VERSION_GIT),y)
+ifneq ($(ADK_TARGET_KERNEL_HASH),)
KERNEL_FILE_VER:= $(ADK_TARGET_KERNEL_HASH)
+else
+KERNEL_FILE_VER:= git
+endif
KERNEL_RELEASE:= 1
KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
endif