diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-07-27 23:32:57 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-07-27 23:33:20 +0200 |
commit | dd25ceab6c0166f27a0221ba296fd635839b3dc9 (patch) | |
tree | 5ab6f0edb98b320aa557798b1b4c68f5a4c74264 | |
parent | 259f343bf64e51869e37232bd2eef9cd7f09e6ed (diff) |
handle git kernels in a better way
-rw-r--r-- | mk/kernel-ver.mk | 5 | ||||
-rw-r--r-- | mk/linux.mk | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/mk/kernel-ver.mk b/mk/kernel-ver.mk index 7a06e4cf9..7f59ff489 100644 --- a/mk/kernel-ver.mk +++ b/mk/kernel-ver.mk @@ -1,3 +1,8 @@ +ifeq ($(ADK_KERNEL_VERSION_GIT),y) +KERNEL_VERSION:= $(ADK_KERNEL_HASH) +KERNEL_MOD_VERSION:= $(KERNEL_VERSION) +KERNEL_RELEASE:= 1 +endif ifeq ($(ADK_KERNEL_VERSION_4_1_2),y) KERNEL_VERSION:= 4.1.2 KERNEL_MOD_VERSION:= $(KERNEL_VERSION) diff --git a/mk/linux.mk b/mk/linux.mk index bd014c20f..9d18f35f0 100644 --- a/mk/linux.mk +++ b/mk/linux.mk @@ -2,12 +2,13 @@ # material, please see the LICENCE file in the top-level directory. PKG_NAME:= linux -PKG_VERSION:= $(KERNEL_VERSION) PKG_RELEASE:= $(KERNEL_RELEASE) ifeq ($(ADK_KERNEL_VERSION_GIT),y) -PKG_SITES:= $(ADK_KERNEL_REPO) PKG_VERSION:= $(ADK_KERNEL_HASH) +PKG_SITES:= $(ADK_KERNEL_REPO) else +PKG_VERSION:= $(KERNEL_VERSION) +PKG_HASH:= $(KERNEL_HASH) PKG_SITES:= ${MASTER_SITE_KERNEL:=kernel/v4.x/} \ ${MASTER_SITE_KERNEL:=kernel/v3.x/} \ ${MASTER_SITE_KERNEL:=kernel/v3.0/testing/} \ |