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

Commit a40c6cc

Browse files
committed
Update kernel 5.8.1
1 parent f38f4c6 commit a40c6cc

7 files changed

Lines changed: 22 additions & 931 deletions

build.sh

Lines changed: 18 additions & 16 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.7.15
7+
KERNEL_VERSION=5.8.1
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)
@@ -63,10 +63,12 @@ echo >&2 "===]> Info: Applying patches... "
6363
echo 'Patches directory not found!'
6464
exit 1
6565
}
66+
67+
6668
while 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

7173
chmod a+x "${KERNEL_PATH}"/debian/rules
7274
chmod a+x "${KERNEL_PATH}"/debian/scripts/*
@@ -85,20 +87,20 @@ echo "" >"${KERNEL_PATH}"/.scmversion
8587
# Build Deb packages
8688
make -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
104106
echo >&2 "===]> Info: Copying debs and calculating SHA256 ... "

patch_driver.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ BUILD_PATH=/tmp/build-kernel
66

77
### Apple T2 drivers commit hashes
88
# Patches
9-
APPLE_SMC_DRIVER_GIT_URL=https://github.com/aunali1/linux-mbp-arch
10-
APPLE_SMC_DRIVER_BRANCH_NAME=master
11-
APPLE_SMC_DRIVER_COMMIT_HASH=aa8d8579b88f67cc21592a439937f73d174e836f
9+
APPLE_SMC_DRIVER_GIT_URL=https://github.com/marcosfad/linux-mbp-arch.git
10+
APPLE_SMC_DRIVER_BRANCH_NAME=feature/kernel-5.8
11+
APPLE_SMC_DRIVER_COMMIT_HASH=13a0aff189d5c70a9b570e69cbf8b13b2887ba19
1212
## BCE
1313
#APPLE_BCE_DRIVER_GIT_URL=https://github.com/aunali1/mbp2018-bridge-drv.git
1414
#APPLE_BCE_DRIVER_BRANCH_NAME=aur
@@ -31,7 +31,7 @@ git checkout ${APPLE_SMC_DRIVER_COMMIT_HASH}
3131
while IFS= read -r file; do
3232
echo "==> Adding ${file}"
3333
cp -rfv "${file}" "${WORKING_PATH}"/patches/"${file##*/}"
34-
done < <(find "${BUILD_PATH}/linux-mbp-arch" -type f -name "*.patch" | grep -E '[235]00[0-9]' | sort)
34+
done < <(find "${BUILD_PATH}/linux-mbp-arch" -type f -name "*.patch" | grep -vE '000[0-9]' | sort)
3535

3636
#### Add custom drivers to kernel
3737
#echo -e "From: \"Kernel Builder (sita)\" <ubuntu-kernel-bot@canonical.com>\nSubject: patch custom drivers\n" >"${WORKING_PATH}/patches/custom-drivers.patch"

patches/0005-configs-based-on-Ubuntu-5.7.0-6.7.patch

Lines changed: 0 additions & 297 deletions
This file was deleted.

0 commit comments

Comments
 (0)