summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2018-04-03 09:00:40 +0000
committerChase Qi <chase.qi@linaro.org>2018-04-03 09:00:40 +0000
commit8dbaa575ac738d0fb94c7173afc421e54960020e (patch)
treea4f006a795729227cf50f83d9a265e5d97bd2bd8
parent06d70163a7fbfe9cfd70845ee76403bd9ea74184 (diff)
Revert "linux: kernel-compilation: use kernel release tarball from github"
This reverts commit 06d70163a7fbfe9cfd70845ee76403bd9ea74184. Change-Id: Id4c183e2916b500d1bb054443d03d7faee721b0e
-rwxr-xr-xautomated/linux/kernel-compilation/kernel-compilation.sh7
-rw-r--r--automated/linux/kernel-compilation/kernel-compilation.yaml6
2 files changed, 7 insertions, 6 deletions
diff --git a/automated/linux/kernel-compilation/kernel-compilation.sh b/automated/linux/kernel-compilation/kernel-compilation.sh
index 7e5c2d1..5e5586e 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'
+VERSION='4.4.34'
NPROC=$(nproc)
usage() {
@@ -37,8 +37,9 @@ create_out_dir "${OUTPUT}"
cd "${OUTPUT}"
# Download and extract Kernel tarball.
-wget "https://github.com/torvalds/linux/archive/v${VERSION}.tar.gz"
-tar xf "v${VERSION}.tar.gz"
+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"
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 72da918..ef85afd 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 released Kernel version that availabe on:
- # https://github.com/torvalds/linux/releases
- VERSION: "4.4"
+ # Specify longterm/stable Kernel version that availabe on:
+ # https://www.kernel.org/
+ VERSION: "4.4.34"
SKIP_INSTALL: "false"
run: