Linux: enable local Linux tarball in config
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.
Signed-off-by Stephan Hoffmann <[email protected]>
--- linux/linux.mk | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
linux/linux.mk +4 -0
@@ -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
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_LOCATIONbuildroot ties to load it from the net and fails.This patch adds a check and sets
LINUX_SITE_METHODto "file" in case the named tarball is a local file.Signed-off-by Stephan Hoffmann <[email protected]>--- linux/linux.mk | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)linux/linux.mk +4
-0@@ -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)