summaryrefslogtreecommitdiffstats
path: root/linux/linux.mk
diff options
context:
space:
mode:
authorRafal Fabich <rafal.fabich@gmail.com>2013-02-23 19:03:30 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-02-04 11:01:46 +0100
commit73da2ff6f718f2889e3c5024d899f8d58f502863 (patch)
tree8eb0435a13e7ac4adbf141fbebcda1c306e09af5 /linux/linux.mk
parent15fed7179a8c7d9d82ee96751600d3b6e8b391af (diff)
downloadbuildroot-73da2ff6f718f2889e3c5024d899f8d58f502863.tar.gz
buildroot-73da2ff6f718f2889e3c5024d899f8d58f502863.zip
Added local directory as source of kernel code
Add the option to use a local directory as the source for building the Linux kernel, which can be useful during kernel development. Signed-off-by: Rafal Fabich <rafal.fabich@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'linux/linux.mk')
-rw-r--r--linux/linux.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/linux.mk b/linux/linux.mk
index 62033d280b..1a81f77c8f 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -9,10 +9,13 @@ LINUX_LICENSE = GPLv2
LINUX_LICENSE_FILES = COPYING
# Compute LINUX_SOURCE and LINUX_SITE from the configuration
-ifeq ($(LINUX_VERSION),custom)
+ifeq ($(BR2_LINUX_KERNEL_CUSTOM_TARBALL),y)
LINUX_TARBALL = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION))
LINUX_SITE = $(patsubst %/,%,$(dir $(LINUX_TARBALL)))
LINUX_SOURCE = $(notdir $(LINUX_TARBALL))
+else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_LOCAL),y)
+LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_LOCAL_PATH))
+LINUX_SITE_METHOD = local
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y)
LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
LINUX_SITE_METHOD = git
OpenPOWER on IntegriCloud