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

Commit 3ec7c3e

Browse files
committed
Merge branch 'release/5.8'
2 parents ec35606 + 3b37609 commit 3ec7c3e

9 files changed

Lines changed: 21 additions & 923 deletions

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
# mbp-ubuntu-kernel
22

3-
Ubuntu/Mint/Debian kernel 5.6+ with Apple T2 patches built-in. This repo try to keep up with kernel new releases. We release 2 alternative kernels: mbp for macbook pro 2018+ (16,1) and mbp-alt for older ones.
3+
Ubuntu/Mint/Debian kernel 5.6+ with Apple T2 patches built-in. This repo try to keep up with kernel new releases.
44

5-
Drivers:
5+
We release 2 alternative kernels: **"mbp"** which includes all patches from [https://github.com/aunali1/linux-mbp-arch](Aunali1's linux mbp arch) which should work in mostly everywhere and an alternative release (**"mbp-alt"**) which do not include the patch 2001 (drm amd display force link-rate).
6+
7+
**!! Warning:**
8+
9+
Starting from the kernel 5.8 the release naming were switch with respect to kernel 5.7: Before the "mbp" release did not include all the patches. **Now the "mbp" includes all patches** and the "mbp-alt" don't.
10+
11+
**Drivers included:**
612

713
- Apple T2 (audio, keyboard, touchpad) - <https://github.com/MCMrARM/mbp2018-bridge-drv>
814
- Apple SMC - <https://github.com/MCMrARM/mbp2018-etc>
915
- Touchbar - <https://github.com/roadrunner2/macbook12-spi-driver/tree/mbp15>
1016

1117
This project is closely inspired by mikeeq/mbp-fedora-kernel. Thank you @mikeeq for the scripts and setup.
1218

13-
IF YOU ENJOY THIS CODE, PLEASE CONSIDER CONTRIBUTING TO THE AUTHORS @MCMrARM @roadrunner2 @aunali1 @ppaulweber @mikeeq, they did all the hard work.
19+
**If this repo helped you in any way, consider inviting a coffee to the people in the [credits](https://github.com/marcosfad/mbp-ubuntu-kernel#credits) or [me](https://paypal.me/marcosfad)**
1420

1521
## CI status
1622

@@ -24,7 +30,7 @@ Travis kernel publish status - <http://mbp-ubuntu-kernel.herokuapp.com/> :
2430

2531
### The easy way
2632

27-
Use the [mbp-ubuntu](https://github.com/marcosfad/mbp-ubuntu/releases) live cd to install ubuntu on your Mac
33+
Use the [mbp-ubuntu](https://github.com/marcosfad/mbp-ubuntu/releases) live cd to install ubuntu on your Mac.
2834

2935
### Manually
3036

build.sh

Lines changed: 7 additions & 4 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.19
7+
KERNEL_VERSION=5.8.6
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,6 +63,8 @@ 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"
@@ -83,7 +85,7 @@ make olddefconfig
8385
echo "" >"${KERNEL_PATH}"/.scmversion
8486

8587
# Build Deb packages
86-
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp KDEB_PKGVERSION="$(make kernelversion)-$(get_next_version mbp)"
88+
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp KDEB_PKGVERSION="$(make kernelversion)-$(get_next_version mbp-alt)"
8789

8890
# Create alternative Kernel
8991
echo >&2 "===]> Info: Create alternative kernel ... "
@@ -98,11 +100,12 @@ make olddefconfig
98100
echo "" >"${KERNEL_PATH}"/.scmversion
99101

100102
# Build Deb packages
101-
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp-alt KDEB_PKGVERSION="$(make kernelversion)-$(get_next_version mbp-alt)"
103+
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp-alt KDEB_PKGVERSION="$(make kernelversion)-$(get_next_version mbp)"
102104

103105
#### Copy artifacts to shared volume
104106
echo >&2 "===]> Info: Copying debs and calculating SHA256 ... "
105107
#cp -rfv ../*.deb "${REPO_PATH}/"
106-
#cp -rfv "${KERNEL_PATH}/.config" "${REPO_PATH}/kernel_config"
108+
#cp -rfv "${KERNEL_PATH}/.config" "${REPO_PATH}/kernel_config_${KERNEL_VERSION}"
109+
cp -rfv "${KERNEL_PATH}/.config" "/tmp/artifacts/kernel_config_${KERNEL_VERSION}"
107110
cp -rfv ../*.deb /tmp/artifacts/
108111
sha256sum ../*.deb >/tmp/artifacts/sha256

patch_driver.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ BUILD_PATH=/tmp/build-kernel
77
### Apple T2 drivers commit hashes
88
# Patches
99
APPLE_SMC_DRIVER_GIT_URL=https://github.com/marcosfad/linux-mbp-arch.git
10-
APPLE_SMC_DRIVER_BRANCH_NAME=master
11-
APPLE_SMC_DRIVER_COMMIT_HASH=d36d088d767ac884066c99e92eae3504b6e06a4b
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)