From f0efbad9485e60365a56b8774ef04f759307a079 Mon Sep 17 00:00:00 2001 From: Chase Qi Date: Tue, 3 Apr 2018 17:44:57 +0800 Subject: linux: kernel-compilation: use kernel release tarball from github cdn.kernel.org is down, downloading with the following link fails. mirrors.kernel.org is an alternative, but downloading speed with it is not stable. https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.34.tar.xz Moving to https://github.com/torvalds/linux/releases seems to be a speedy and more reliable approach. Change-Id: I81ad908ca97249ff2f52a951287f528cd19c7fcb Signed-off-by: Chase Qi --- automated/linux/kernel-compilation/kernel-compilation.sh | 7 +++---- automated/linux/kernel-compilation/kernel-compilation.yaml | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'automated/linux/kernel-compilation') diff --git a/automated/linux/kernel-compilation/kernel-compilation.sh b/automated/linux/kernel-compilation/kernel-compilation.sh index 5e5586e7..7e5c2d15 100755 --- a/automated/linux/kernel-compilation/kernel-compilation.sh +++ b/automated/linux/kernel-compilation/kernel-compilation.sh @@ -6,7 +6,7 @@ OUTPUT="$(pwd)/output" RESULT_FILE="${OUTPUT}/result.txt" export RESULT_FILE LOGFILE="${OUTPUT}/kernel-compilation.txt" -VERSION='4.4.34' +VERSION='4.4' NPROC=$(nproc) usage() { @@ -37,9 +37,8 @@ create_out_dir "${OUTPUT}" cd "${OUTPUT}" # Download and extract Kernel tarball. -major_version=$(echo "${VERSION}" | awk -F'.' '{print $1}') -wget "https://cdn.kernel.org/pub/linux/kernel/v${major_version}.x/linux-${VERSION}.tar.xz" -tar xf "linux-${VERSION}.tar.xz" +wget "https://github.com/torvalds/linux/archive/v${VERSION}.tar.gz" +tar xf "v${VERSION}.tar.gz" cd "linux-${VERSION}" # Compile Kernel with defconfig. diff --git a/automated/linux/kernel-compilation/kernel-compilation.yaml b/automated/linux/kernel-compilation/kernel-compilation.yaml index ef85afd4..72da9185 100644 --- a/automated/linux/kernel-compilation/kernel-compilation.yaml +++ b/automated/linux/kernel-compilation/kernel-compilation.yaml @@ -25,9 +25,9 @@ metadata: - d05 params: - # Specify longterm/stable Kernel version that availabe on: - # https://www.kernel.org/ - VERSION: "4.4.34" + # Specify released Kernel version that availabe on: + # https://github.com/torvalds/linux/releases + VERSION: "4.4" SKIP_INSTALL: "false" run: -- cgit v1.2.3