diff options
Diffstat (limited to 'toolchain/kernel-headers/Makefile')
-rw-r--r-- | toolchain/kernel-headers/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile index e374e706e1..f7842cb9bd 100644 --- a/toolchain/kernel-headers/Makefile +++ b/toolchain/kernel-headers/Makefile @@ -17,7 +17,13 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=linux PKG_VERSION:=$(LINUX_VERSION) PKG_SOURCE:=$(LINUX_SOURCE) -PKG_SOURCE_URL:=$(LINUX_SITE) +ifneq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"") + PKG_SOURCE_PROTO:=git + PKG_SOURCE_URL:=$(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)) + PKG_SOURCE_VERSION:=$(CONFIG_KERNEL_GIT_REF) +else + PKG_SOURCE_URL:=$(LINUX_SITE) +endif HOST_BUILD_DIR:=$(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) PKG_HASH:=$(LINUX_KERNEL_HASH) LINUX_DIR := $(HOST_BUILD_DIR) |