diff options
author | Chase Qi <chase.qi@linaro.org> | 2018-04-03 16:01:11 +0800 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2018-04-03 08:43:19 +0000 |
commit | 9dcf6710b44579df7a5a030bde110b309f55f14f (patch) | |
tree | 116c7841a94187a7facbb094a4218af411954fe7 | |
parent | cfb23818557d8123d9886ccf128db675b7e985b4 (diff) |
linux: kernel-compilation: use kernel release tarball from github
On kernel.org, seems only the latest release tarballs are availabe
for downloading. The following link is invalid now as 4.4.126 has
been released.
https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.34.tar.xz
For this test purpose, we just need a fixed release that availabe for a
long time, it doesn't have to be the latest version.
Moving to https://github.com/torvalds/linux/releases seems to be a
simpler and more reliable approach.
Change-Id: I3a9dd003f5a70b1e34d2e82489196c9297eb534b
Signed-off-by: Chase Qi <chase.qi@linaro.org>
(cherry picked from commit 06d70163a7fbfe9cfd70845ee76403bd9ea74184)
-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 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: |