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

Commit 6904d18

Browse files
authored
build.sh: cleanup before building alt wifi kernel
There’s a few commands that were used to clean it up before making the old alt kernel, these have been copied over.
1 parent f20513b commit 6904d18

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ echo "" >"${KERNEL_PATH}"/.scmversion
7878
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp KDEB_PKGVERSION="${KERNEL_VERSION}-$(get_next_version mbp)"
7979

8080
# build alternate kernel with corellium's wifi patches, for MBP16,1/2/4 and MBA9,1
81-
81+
echo >&2 "===]> Info: Create alternative kernel with corellium wifi patch... "
82+
make distclean
83+
make clean
8284
# reverse other wifi patches
8385
while IFS= read -r file; do
8486
echo "==> Reverting $file"
@@ -88,6 +90,9 @@ done < <(find "${WORKING_PATH}/patches" -type f -name "*.patch" | grep "brcmfmac
8890
echo "==> Adding wifi-bigsur.patch"
8991
curl https://raw.githubusercontent.com/jamlam/mbp-16.1-linux-wifi/4c8b393ed7a874e3d9e44a2a467c1b7c74af1260/wifi-bigsur.patch \
9092
| patch -p1
93+
cp "${WORKING_PATH}/templates/default-config" "${KERNEL_PATH}/.config"
94+
make olddefconfig
95+
echo "" >"${KERNEL_PATH}"/.scmversion
9196

9297
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp-16x-wifi KDEB_PKGVERSION="${KERNEL_VERSION}-$(get_next_version mbp)"
9398

0 commit comments

Comments
 (0)