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

Commit c1b46e1

Browse files
committed
Recreate alternative release
1 parent 79f5aad commit c1b46e1

2 files changed

Lines changed: 28 additions & 7 deletions

File tree

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: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ echo >&2 "===]> Info: Applying patches... "
6868
while IFS= read -r file; do
6969
echo "==> Adding $file"
7070
patch -p1 <"$file"
71-
done < <(find "${WORKING_PATH}/patches" -type f -name "*.patch" | sort)
71+
done < <(find "${WORKING_PATH}/patches" -type f -name "*.patch" | grep -vE '[2]00[0-9]' | sort)
7272

7373
chmod a+x "${KERNEL_PATH}"/debian/rules
7474
chmod a+x "${KERNEL_PATH}"/debian/scripts/*
@@ -85,12 +85,27 @@ make olddefconfig
8585
echo "" >"${KERNEL_PATH}"/.scmversion
8686

8787
# Build Deb packages
88-
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)"
89+
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)"
89104

90105
#### Copy artifacts to shared volume
91106
echo >&2 "===]> Info: Copying debs and calculating SHA256 ... "
92107
#cp -rfv ../*.deb "${REPO_PATH}/"
93-
cp -rfv "${KERNEL_PATH}/.config" "${REPO_PATH}/kernel_config_${KERNEL_VERSION}"
108+
#cp -rfv "${KERNEL_PATH}/.config" "${REPO_PATH}/kernel_config_${KERNEL_VERSION}"
94109
cp -rfv "${KERNEL_PATH}/.config" "/tmp/artifacts/kernel_config_${KERNEL_VERSION}"
95110
cp -rfv ../*.deb /tmp/artifacts/
96111
sha256sum ../*.deb >/tmp/artifacts/sha256

0 commit comments

Comments
 (0)