[Buildroot] [PATCH] linux: support "local" as download method
Tzu-Jung Lee
roylee17 at gmail.com
Wed Dec 7 12:09:20 UTC 2011
Signed-off-by: Tzu-Jung Lee <tjlee at ambarella.com>
---
linux/Config.in | 10 ++++++++++
linux/linux.mk | 3 +++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/linux/Config.in b/linux/Config.in
index dc6aa73..4053c41 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -53,6 +53,12 @@ config BR2_LINUX_KERNEL_CUSTOM_GIT
This option allows Buildroot to get the Linux kernel source
code from a Git repository.
+config BR2_LINUX_KERNEL_CUSTOM_LOCAL
+ bool "Custom local source tree"
+ help
+ This option allows Buildroot to get the Linux kernel source
+ code from a local repository.
+
endchoice
config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
@@ -72,6 +78,10 @@ config BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION
string "Custom Git version"
depends on BR2_LINUX_KERNEL_CUSTOM_GIT
+config BR2_LINUX_KERNEL_CUSTOM_LOCAL_PATH
+ string "Custom Local path"
+ depends on BR2_LINUX_KERNEL_CUSTOM_LOCAL
+
config BR2_LINUX_KERNEL_VERSION
string
default "3.1.4" if BR2_LINUX_KERNEL_3_1
diff --git a/linux/linux.mk b/linux/linux.mk
index 5c5a1d2..d5617a2 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -13,6 +13,9 @@ LINUX_SOURCE = $(notdir $(LINUX_TARBALL))
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y)
LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL))
LINUX_SITE_METHOD = git
+else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_LOCAL),y)
+LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_LOCAL_PATH))
+LINUX_SITE_METHOD = local
else
LINUX_SOURCE = linux-$(LINUX_VERSION).tar.bz2
# In X.Y.Z, get X and Y. We replace dots and dashes by spaces in order
--
1.7.8
More information about the buildroot
mailing list