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

Commit 666d761

Browse files
committed
Kernel: update to 5.10.52
1 parent b9715bc commit 666d761

File tree

2 files changed

+4
-55
lines changed

2 files changed

+4
-55
lines changed

build.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
set -eu -o pipefail
44

5-
## Update docker image tag, because kernel build is using `uname -r` when defining package version variable
6-
# KERNEL_VERSION=$(curl -s https://www.kernel.org | grep '<strong>' | head -3 | tail -1 | cut -d'>' -f3 | cut -d'<' -f1)
7-
KERNEL_VERSION=5.10.47
8-
#KERNEL_REPOSITORY=git://kernel.ubuntu.com/virgin/linux-stable.git
5+
KERNEL_VERSION=5.10.52
96
KERNEL_REPOSITORY=https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
107
REPO_PATH=$(pwd)
118
WORKING_PATH=/root/work
@@ -75,7 +72,7 @@ make olddefconfig
7572
echo "" >"${KERNEL_PATH}"/.scmversion
7673

7774
# Build Deb packages
78-
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp KDEB_PKGVERSION="${KERNEL_VERSION}-$(get_next_version mbp)"
75+
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp KDEB_PKGVERSION="$(make kernelversion)-$(get_next_version mbp)"
7976

8077
# build alternate kernel with corellium's wifi patches, for MBP16,1/2/4 and MBA9,1
8178
echo >&2 "===]> Info: Create alternative kernel with corellium wifi patch... "

patch_driver.sh

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,7 @@ BUILD_PATH=/tmp/build-kernel
99
APPLE_SMC_DRIVER_GIT_URL=https://github.com/aunali1/linux-mbp-arch.git
1010
APPLE_SMC_DRIVER_BRANCH_NAME=master
1111
APPLE_SMC_DRIVER_COMMIT_HASH=1faa37d704798bc04104a88f620e4f55b3466de0
12-
## BCE
13-
#APPLE_BCE_DRIVER_GIT_URL=https://github.com/aunali1/mbp2018-bridge-drv.git
14-
#APPLE_BCE_DRIVER_BRANCH_NAME=aur
15-
#APPLE_BCE_DRIVER_COMMIT_HASH=c884d9ca731f2118a58c28bb78202a0007935998
16-
## SPI
17-
#APPLE_IB_DRIVER_GIT_URL=https://github.com/roadrunner2/macbook12-spi-driver.git
18-
#APPLE_IB_DRIVER_BRANCH_NAME=mbp15
19-
#APPLE_IB_DRIVER_COMMIT_HASH=90cea3e8e32db60147df8d39836bd1d2a5161871
12+
2013

2114
rm -rf "${BUILD_PATH}"
2215
mkdir -p "${BUILD_PATH}"
@@ -31,45 +24,4 @@ git checkout ${APPLE_SMC_DRIVER_COMMIT_HASH}
3124
while IFS= read -r file; do
3225
echo "==> Adding ${file}"
3326
cp -rfv "${file}" "${WORKING_PATH}"/patches/"${file##*/}"
34-
done < <(find "${BUILD_PATH}/linux-mbp-arch" -type f -name "*.patch" | grep -vE '000[0-9]' | sort)
35-
36-
#### Add custom drivers to kernel
37-
#echo -e "From: \"Kernel Builder (sita)\" <ubuntu-kernel-bot@canonical.com>\nSubject: patch custom drivers\n" >"${WORKING_PATH}/patches/custom-drivers.patch"
38-
#
39-
#git clone --depth 1 --single-branch --branch v"${KERNEL_VERSION}" \
40-
# git://kernel.ubuntu.com/virgin/linux-stable.git "${BUILD_PATH}/linux-stable"
41-
#cd "${BUILD_PATH}/linux-stable/drivers" || exit
42-
#
43-
#### apple-bce
44-
#git clone --depth 1 --single-branch --branch "${APPLE_BCE_DRIVER_BRANCH_NAME}" \
45-
# "${APPLE_BCE_DRIVER_GIT_URL}" "${BUILD_PATH}/linux-stable/drivers/apple-bce"
46-
#cd "${BUILD_PATH}/linux-stable/drivers/apple-bce" || exit
47-
#git checkout "${APPLE_BCE_DRIVER_COMMIT_HASH}" && rm -rf .git
48-
#
49-
#cd "${BUILD_PATH}/linux-stable/drivers"
50-
#cp -rfv "${WORKING_PATH}/templates/Kconfig" "${BUILD_PATH}/linux-stable/drivers/apple-bce/Kconfig"
51-
#sed -i "s/TEST_DRIVER/APPLE_BCE_DRIVER/g" "${BUILD_PATH}/linux-stable/drivers/apple-bce/Kconfig"
52-
## shellcheck disable=SC2016
53-
#sed -i 's/obj-m/obj-$(CONFIG_APPLE_BCE)/g' "${BUILD_PATH}/linux-stable/drivers/apple-bce/Makefile"
54-
## shellcheck disable=SC2016
55-
#echo 'obj-$(CONFIG_APPLE_BCE) += apple-bce/' >>"${BUILD_PATH}/linux-stable/drivers/Makefile"
56-
#sed -i "\$i source \"drivers/apple-bce/Kconfig\"\n" "${BUILD_PATH}/linux-stable/drivers/Kconfig"
57-
#
58-
#### apple-ib
59-
#git clone --single-branch --branch "${APPLE_IB_DRIVER_BRANCH_NAME}" \
60-
# "${APPLE_IB_DRIVER_GIT_URL}" "${BUILD_PATH}/linux-stable/drivers/apple-touchbar"
61-
#cd "${BUILD_PATH}/linux-stable/drivers/apple-touchbar" || exit
62-
#git checkout "${APPLE_IB_DRIVER_COMMIT_HASH}" && rm -rf .git
63-
#
64-
#cd "${BUILD_PATH}/linux-stable/drivers"
65-
#cp -rfv "${WORKING_PATH}/templates/Kconfig" "${BUILD_PATH}/linux-stable/drivers/apple-touchbar/Kconfig"
66-
#sed -i "s/TEST_DRIVER/APPLE_TOUCHBAR_DRIVER/g" "${BUILD_PATH}/linux-stable/drivers/apple-touchbar/Kconfig"
67-
## shellcheck disable=SC2016
68-
#sed -i 's/obj-m/obj-$(CONFIG_APPLE_TOUCHBAR)/g' "${BUILD_PATH}/linux-stable/drivers/apple-touchbar/Makefile"
69-
## shellcheck disable=SC2016
70-
#echo 'obj-$(CONFIG_APPLE_TOUCHBAR) += apple-touchbar/' >>"${BUILD_PATH}/linux-stable/drivers/Makefile"
71-
#sed -i "\$i source \"drivers/apple-touchbar/Kconfig\"\n" "${BUILD_PATH}/linux-stable/drivers/Kconfig"
72-
#
73-
### Prepare patch
74-
#git add .
75-
#git diff HEAD >> "${WORKING_PATH}/patches/custom-drivers.patch"
27+
done < <(find "${BUILD_PATH}/linux-mbp-arch" -type f -name "*.patch" | sort)

0 commit comments

Comments
 (0)