Skip to contentSkip to conversation

Linux: enable local Linux tarball in config

PATCH New Stephan Hoffmann 1 participant 2 messages Jan 31, 2013 – Mar 4, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Linux: enable local Linux tarball in config

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.

---
 linux/linux.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
linux/linux.mk +4 -0
index 91a9f50..fe89357 100644
@@ -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)
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 Linux: enable local Linux tarball in config

Ping
Am 31.01.2013 17:00, schrieb Stephan Hoffmann:

Quoted 26 lines

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.

---
 linux/linux.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
linux/linux.mk +4 -0
index 91a9f50..fe89357 100644
@@ -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)