Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 71fe386

Browse files
committed
Update kernel 5.8.3
1 parent a40c6cc commit 71fe386

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

build.sh

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu -o pipefail
44

55
## Update docker image tag, because kernel build is using `uname -r` when defining package version variable
66
# KERNEL_VERSION=$(curl -s https://www.kernel.org | grep '<strong>' | head -3 | tail -1 | cut -d'>' -f3 | cut -d'<' -f1)
7-
KERNEL_VERSION=5.8.1
7+
KERNEL_VERSION=5.8.3
88
#KERNEL_REPOSITORY=git://kernel.ubuntu.com/virgin/linux-stable.git
99
KERNEL_REPOSITORY=https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
1010
REPO_PATH=$(pwd)
@@ -87,24 +87,10 @@ echo "" >"${KERNEL_PATH}"/.scmversion
8787
# Build Deb packages
8888
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp KDEB_PKGVERSION="$(make kernelversion)-$(get_next_version mbp)"
8989

90-
## Create alternative Kernel
91-
#echo >&2 "===]> Info: Create alternative kernel ... "
92-
#make distclean
93-
#make clean
94-
#while IFS= read -r file; do
95-
# echo "==> Adding $file"
96-
# patch -p1 <"$file"
97-
#done < <(find "${WORKING_PATH}/patches" -type f -name "*.patch" | grep -E '[2]00[0-9]' | sort)
98-
#cp "${WORKING_PATH}/templates/default-config" "${KERNEL_PATH}/.config"
99-
#make olddefconfig
100-
#echo "" >"${KERNEL_PATH}"/.scmversion
101-
#
102-
## Build Deb packages
103-
#make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp-alt KDEB_PKGVERSION="$(make kernelversion)-$(get_next_version mbp-alt)"
104-
10590
#### Copy artifacts to shared volume
10691
echo >&2 "===]> Info: Copying debs and calculating SHA256 ... "
10792
#cp -rfv ../*.deb "${REPO_PATH}/"
108-
#cp -rfv "${KERNEL_PATH}/.config" "${REPO_PATH}/kernel_config"
93+
cp -rfv "${KERNEL_PATH}/.config" "${REPO_PATH}/kernel_config_${KERNEL_VERSION}"
94+
cp -rfv "${KERNEL_PATH}/.config" "/tmp/artifacts/kernel_config_${KERNEL_VERSION}"
10995
cp -rfv ../*.deb /tmp/artifacts/
11096
sha256sum ../*.deb >/tmp/artifacts/sha256

0 commit comments

Comments
 (0)