@@ -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.7.15
7+ KERNEL_VERSION=5.8.1
88# KERNEL_REPOSITORY=git://kernel.ubuntu.com/virgin/linux-stable.git
99KERNEL_REPOSITORY=https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
1010REPO_PATH=$( pwd)
@@ -63,10 +63,12 @@ echo >&2 "===]> Info: Applying patches... "
6363 echo ' Patches directory not found!'
6464 exit 1
6565}
66+
67+
6668while IFS= read -r file; do
6769 echo " ==> Adding $file "
6870 patch -p1 < " $file "
69- done < <( find " ${WORKING_PATH} /patches" -type f -name " *.patch" | grep -vE ' [2]00[0-9] ' | sort)
71+ done < <( find " ${WORKING_PATH} /patches" -type f -name " *.patch" | sort)
7072
7173chmod a+x " ${KERNEL_PATH} " /debian/rules
7274chmod a+x " ${KERNEL_PATH} " /debian/scripts/*
@@ -85,20 +87,20 @@ echo "" >"${KERNEL_PATH}"/.scmversion
8587# Build Deb packages
8688make -j " $( getconf _NPROCESSORS_ONLN) " deb-pkg LOCALVERSION=-mbp KDEB_PKGVERSION=" $( make kernelversion) -$( get_next_version mbp) "
8789
88- # Create alternative Kernel
89- echo >&2 " ===]> Info: Create alternative kernel ... "
90- make distclean
91- make clean
92- while IFS= read -r file; do
93- echo " ==> Adding $file "
94- patch -p1 < " $file "
95- done < <( find " ${WORKING_PATH} /patches" -type f -name " *.patch" | grep -E ' [2]00[0-9]' | sort)
96- cp " ${WORKING_PATH} /templates/default-config" " ${KERNEL_PATH} /.config"
97- make olddefconfig
98- echo " " > " ${KERNEL_PATH} " /.scmversion
99-
100- # Build Deb packages
101- make -j " $( getconf _NPROCESSORS_ONLN) " deb-pkg LOCALVERSION=-mbp-alt KDEB_PKGVERSION=" $( make kernelversion) -$( get_next_version mbp-alt) "
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)"
102104
103105# ### Copy artifacts to shared volume
104106echo >&2 " ===]> Info: Copying debs and calculating SHA256 ... "
0 commit comments