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

Commit b9715bc

Browse files
authored
Merge pull request #17 from Redecorating/patch-1
Also build kernel with the corellium wifi patch, for mbp16,1/2/4 and mbp9,1
2 parents e2fc447 + 280c94b commit b9715bc

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
ls -l
4646
4747
- name: Upload package artifact
48-
if: github.ref == 'refs/heads/master'
4948
uses: actions/upload-artifact@v2
5049
with:
5150
name: linux-mbp-${{ steps.build.outputs.tag }}

build.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,25 @@ echo "" >"${KERNEL_PATH}"/.scmversion
7777
# Build Deb packages
7878
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp KDEB_PKGVERSION="${KERNEL_VERSION}-$(get_next_version mbp)"
7979

80+
# build alternate kernel with corellium's wifi patches, for MBP16,1/2/4 and MBA9,1
81+
echo >&2 "===]> Info: Create alternative kernel with corellium wifi patch... "
82+
make distclean
83+
make clean
84+
# reverse other wifi patches
85+
while IFS= read -r file; do
86+
echo "==> Reverting $file"
87+
patch -R -p1 <"$file"
88+
done < <(find "${WORKING_PATH}/patches" -type f -name "*.patch" | grep "brcmfmac" | sort -r)
89+
90+
echo "==> Adding wifi-bigsur.patch"
91+
curl https://raw.githubusercontent.com/jamlam/mbp-16.1-linux-wifi/4c8b393ed7a874e3d9e44a2a467c1b7c74af1260/wifi-bigsur.patch \
92+
| patch -p1
93+
cp "${WORKING_PATH}/templates/default-config" "${KERNEL_PATH}/.config"
94+
make olddefconfig
95+
echo "" >"${KERNEL_PATH}"/.scmversion
96+
97+
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp-16x-wifi KDEB_PKGVERSION="${KERNEL_VERSION}-$(get_next_version mbp)"
98+
8099
#### Copy artifacts to shared volume
81100
echo >&2 "===]> Info: Copying debs and calculating SHA256 ... "
82101
cp -rfv "${KERNEL_PATH}/.config" "/tmp/artifacts/kernel_config_${KERNEL_VERSION}"

0 commit comments

Comments
 (0)