This repository was archived by the owner on Feb 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change @@ -77,6 +77,25 @@ echo "" >"${KERNEL_PATH}"/.scmversion
7777# Build Deb packages
7878make -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
81100echo >&2 " ===]> Info: Copying debs and calculating SHA256 ... "
82101cp -rfv " ${KERNEL_PATH} /.config" " /tmp/artifacts/kernel_config_${KERNEL_VERSION} "
You can’t perform that action at this time.
0 commit comments