فهرست منبع

handle git kernels in a better way

Waldemar Brodkorb 9 سال پیش
والد
کامیت
dd25ceab6c
2فایلهای تغییر یافته به همراه8 افزوده شده و 2 حذف شده
  1. 5 0
      mk/kernel-ver.mk
  2. 3 2
      mk/linux.mk

+ 5 - 0
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)

+ 3 - 2
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/} \