From 99785527df2aabf7e9a1b9798d815950179d3b04 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 30 Nov 2021 08:18:53 +0100 Subject: [PATCH] linux-headers: Update SRCURL to new kernel download locations --- linux-headers.be0 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/linux-headers.be0 b/linux-headers.be0 index 8471c6b6a..e474b70c1 100755 --- a/linux-headers.be0 +++ b/linux-headers.be0 @@ -9,7 +9,11 @@ ## The source URL(s) define the location of the sources that will be ## downloaded. Version variables may be used to simplify reuse of this bee-file. -SRCURL[0]="https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PKGVERSION}.tar.xz" +if [ -z "${PKGEXTRAVERSION_DASH}" ]; then + SRCURL[0]="https://cdn.kernel.org/pub/linux/kernel/v${PKGVERSION[1]}.x/linux-${PKGVERSION}.tar.xz" +else + SRCURL[0]="https://git.kernel.org/torvalds/t/linux-${PKGVERSION}${PKGEXTRAVERSION_DASH}.tar.gz" +fi ############################################################################### ## Add URLs/pathes to patch files to the PATCHURL array.