Skip to contentSkip to conversation

linux: Fix URL for release candidate versions

PATCH New Luis Araneda 2 participants 2 messages Aug 11, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 linux: Fix URL for release candidate versions

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 <PKG>_SOURCE otherwise.

This method also applies to older release candidates.

---
Changes v2 -> v3:
- Moved the LINUX_SITE variable assignment to a better place.
- Tested more cases to ensure it won't break things

Changes v1 -> v2:
- Set LINUX_SOURCE only on non-rc kernels (suggested by Arnout)

---
 linux/linux.mk | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
linux/linux.mk +2 -4
index 032d64fc2..799bd5839 100644
@@ -31,6 +31,8 @@ LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
 LINUX_SITE_METHOD = svn
 else ifeq ($(BR2_LINUX_KERNEL_LATEST_CIP_VERSION),y)
 LINUX_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/bwh/linux-cip.git
+else ifneq ($(findstring -rc,$(LINUX_VERSION)),)
+LINUX_SITE = https://git.kernel.org/torvalds/t
 else
 LINUX_SOURCE = linux-$(LINUX_VERSION).tar.xz
 # In X.Y.Z, get X and Y. We replace dots and dashes by spaces in order
@@ -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)
Signature · 1 line
2.14.0
#1 lore raw

PATCH v3 1/1 linux: Fix URL for release candidate versions

Quoted 8 lines · Luis Araneda

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 <PKG>_SOURCE otherwise.

This method also applies to older release candidates.

I added a comment to the .mk file that explains all of the above and applied to
master, thanks.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF