From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luis Araneda Date: Tue, 25 Jul 2017 22:13:52 -0400 Subject: [Buildroot] [PATCH v2] linux: Fix URL for release candidate versions Message-ID: <20170726021352.31148-1-luaraneda@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Starting with 4.12-rc1, tarballs are generated by cgit directly from Linus's tree. Also, set LINUX_SOURCE only on non-rc kernels, and use _SOURCE otherwise. This method also applies to older release candidates. Signed-off-by: Luis Araneda --- Changes v1 -> v2: - Set LINUX_SOURCE only on non-rc kernels (suggested by Arnout) linux/linux.mk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/linux/linux.mk b/linux/linux.mk index 032d64fc2..f02734102 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -16,7 +16,9 @@ define LINUX_HELP_CMDS endef # Compute LINUX_SOURCE and LINUX_SITE from the configuration -ifeq ($(BR2_LINUX_KERNEL_CUSTOM_TARBALL),y) +ifneq ($(findstring -rc,$(LINUX_VERSION)),) +LINUX_SITE := https://git.kernel.org/torvalds/t +else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_TARBALL),y) LINUX_TARBALL = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION)) LINUX_SITE = $(patsubst %/,%,$(dir $(LINUX_TARBALL))) LINUX_SOURCE = $(notdir $(LINUX_TARBALL)) @@ -43,10 +45,6 @@ LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v3.x else ifeq ($(findstring x4.,x$(LINUX_VERSION)),x4.) LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v4.x endif -# release candidates are in testing/ subdir -ifneq ($(findstring -rc,$(LINUX_VERSION)),) -LINUX_SITE := $(LINUX_SITE)/testing -endif # -rc endif ifeq ($(BR2_LINUX_KERNEL)$(BR2_LINUX_KERNEL_LATEST_VERSION),y) -- 2.13.3