Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Linux: enable local Linux tarball in config
@ 2013-01-31 16:00 Stephan Hoffmann
  2013-03-04 10:32 ` Stephan Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Stephan Hoffmann @ 2013-01-31 16:00 UTC (permalink / raw)
  To: buildroot

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)
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] Linux: enable local Linux tarball in config
  2013-01-31 16:00 [Buildroot] [PATCH] Linux: enable local Linux tarball in config Stephan Hoffmann
@ 2013-03-04 10:32 ` Stephan Hoffmann
  0 siblings, 0 replies; 2+ messages in thread
From: Stephan Hoffmann @ 2013-03-04 10:32 UTC (permalink / raw)
  To: buildroot

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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-04 10:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-31 16:00 [Buildroot] [PATCH] Linux: enable local Linux tarball in config Stephan Hoffmann
2013-03-04 10:32 ` Stephan Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox