diff options
author | Chase Qi <chase.qi@linaro.org> | 2018-04-03 17:44:57 +0800 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2018-04-03 17:44:57 +0800 |
commit | f0efbad9485e60365a56b8774ef04f759307a079 (patch) | |
tree | 7fcfa30b461cdedc0627753b5ace95d5a614196c | |
parent | 8dbaa575ac738d0fb94c7173afc421e54960020e (diff) |
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 <chase.qi@linaro.org>
-rwxr-xr-x | automated/linux/kernel-compilation/kernel-compilation.sh | 7 | ||||
-rw-r--r-- | automated/linux/kernel-compilation/kernel-compilation.yaml | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/automated/linux/kernel-compilation/kernel-compilation.sh b/automated/linux/kernel-compilation/kernel-compilation.sh index 5e5586e..7e5c2d1 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 ef85afd..72da918 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: |