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

Commit cfd4fea

Browse files
authored
also build kernel with corellium wifi patch
probably ought to make it dl the patch in the patch driver script, and exclude it in the initial patching, but I can only edit one file at a time one the web interface so i'll do that later
1 parent e2fc447 commit cfd4fea

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,20 @@ 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+
82+
# reverse other wifi patches
83+
while IFS= read -r file; do
84+
echo "==> Reverting $file"
85+
patch -R -p1 <"$file"
86+
done < <(find "${WORKING_PATH}/patches" -type f -name "*.patch" | grep "brcmfmac" | sort)
87+
88+
echo "==> Adding wifi-bigsur.patch"
89+
curl https://raw.githubusercontent.com/jamlam/mbp-16.1-linux-wifi/4c8b393ed7a874e3d9e44a2a467c1b7c74af1260/wifi-bigsur.patch \
90+
| patch -p1
91+
92+
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp-16x-wifi KDEB_PKGVERSION="${KERNEL_VERSION}-$(get_next_version mbp)"
93+
8094
#### Copy artifacts to shared volume
8195
echo >&2 "===]> Info: Copying debs and calculating SHA256 ... "
8296
cp -rfv "${KERNEL_PATH}/.config" "/tmp/artifacts/kernel_config_${KERNEL_VERSION}"

0 commit comments

Comments
 (0)