diff mbox

Linux: enable local Linux tarball in config

Message ID 1359648013-13494-1-git-send-email-sho@relinux.de
State Rejected
Headers show

Commit Message

Stephan Hoffmann Jan. 31, 2013, 4 p.m. UTC
When a local file is given as BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
buildroot ties to load it from the net and fails.

This patch adds a check and sets LINUX_SITE_METHOD to "file" in case
the named tarball is a local file.

Signed-off-by: Stephan Hoffmann <sho@relinux.de>
---
 linux/linux.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Comments

Stephan Hoffmann March 4, 2013, 10:32 a.m. UTC | #1
Ping
Am 31.01.2013 17:00, schrieb Stephan Hoffmann:
> When a local file is given as BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
> buildroot ties to load it from the net and fails.
>
> This patch adds a check and sets LINUX_SITE_METHOD to "file" in case
> the named tarball is a local file.
>
> Signed-off-by: Stephan Hoffmann <sho@relinux.de>
> ---
>  linux/linux.mk |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/linux/linux.mk b/linux/linux.mk
> index 91a9f50..fe89357 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -10,6 +10,10 @@ LINUX_LICENSE_FILES = COPYING
>  # Compute LINUX_SOURCE and LINUX_SITE from the configuration
>  ifeq ($(LINUX_VERSION),custom)
>  LINUX_TARBALL = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION))
> +# If the tarball happens to be a local file SITE_METHOD is set accordingly
> +ifneq ($(wildcard $(LINUX_TARBALL)),)
> +LINUX_SITE_METHOD = "file"
> +endif
>  LINUX_SITE = $(patsubst %/,%,$(dir $(LINUX_TARBALL)))
>  LINUX_SOURCE = $(notdir $(LINUX_TARBALL))
>  else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y)
diff mbox

Patch

diff --git a/linux/linux.mk b/linux/linux.mk
index 91a9f50..fe89357 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -10,6 +10,10 @@  LINUX_LICENSE_FILES = COPYING
 # Compute LINUX_SOURCE and LINUX_SITE from the configuration
 ifeq ($(LINUX_VERSION),custom)
 LINUX_TARBALL = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION))
+# If the tarball happens to be a local file SITE_METHOD is set accordingly
+ifneq ($(wildcard $(LINUX_TARBALL)),)
+LINUX_SITE_METHOD = "file"
+endif
 LINUX_SITE = $(patsubst %/,%,$(dir $(LINUX_TARBALL)))
 LINUX_SOURCE = $(notdir $(LINUX_TARBALL))
 else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y)