aboutsummaryrefslogtreecommitdiff
path: root/automated/linux/kernel-compilation/kernel-compilation.sh
diff options
context:
space:
mode:
Diffstat (limited to 'automated/linux/kernel-compilation/kernel-compilation.sh')
-rwxr-xr-xautomated/linux/kernel-compilation/kernel-compilation.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/automated/linux/kernel-compilation/kernel-compilation.sh b/automated/linux/kernel-compilation/kernel-compilation.sh
index 7e5c2d15..5e5586e7 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.