summaryrefslogtreecommitdiff
path: root/mk/kernel-ver.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-17 08:01:17 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-17 08:02:30 +0100
commita052c31600ac5c5cec474969c6dc130de8f88108 (patch)
treee9187152a8e551dc45661aec36024fc10c697b8b /mk/kernel-ver.mk
parenta1d15775b9f730bb4eaee46aa32c1fee4d2f7a1a (diff)
git kernel handling
Simplify and allow to use git tags, branches, hashes and head. Convert existing usage of git kernel repositories to this.
Diffstat (limited to 'mk/kernel-ver.mk')
-rw-r--r--mk/kernel-ver.mk8
1 files changed, 2 insertions, 6 deletions
diff --git a/mk/kernel-ver.mk b/mk/kernel-ver.mk
index ec8630393..297bdea03 100644
--- a/mk/kernel-ver.mk
+++ b/mk/kernel-ver.mk
@@ -10,12 +10,8 @@
# KERNEL_RELEASE: OpenADK internal versioning
# KERNEL_VERSION: final kernel version how we want to identify a specific kernel
-ifeq ($(ADK_TARGET_KERNEL_GIT),y)
-ifneq ($(ADK_TARGET_KERNEL_HASH),)
-KERNEL_FILE_VER:= $(ADK_TARGET_KERNEL_HASH)
-else
-KERNEL_FILE_VER:= $(ADK_KERNEL_GITVER)
-endif
+ifeq ($(ADK_TARGET_KERNEL_VERSION_GIT),y)
+KERNEL_FILE_VER:= $(ADK_TARGET_KERNEL_GITVER)
KERNEL_RELEASE:= 1
KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
endif