Remove unnecessary Intel(R) WiFi firmware files - profzei/Matebook-X-Pro-2018 GitHub Wiki
How-to
The following steps are needed for creating a stripped version for AirportItlwm.kext
removing all unnecessary WiFi firmware files and therefore (maybe) speeding-up just a little the boot process:
- Clone the OpenIntelWireless repo:
git clone https://github.com/OpenIntelWireless/itlwm.git
- Open the folder
itlwm
where it's cloned to - Open Xcode:
- press
File -> New -> File...
- on the
Search bar/Filter
type shell and choose to create a new Shell Script file
- press
- Copy the following code into it:
#!/bin/bash
# remove all local changes
git reset --hard HEAD
rm -rf build
# pull latest code
git pull
# remove generated firmware
rm include/FwBinary.cpp
# remove firmware for other wifi cards - DELETE OR CHANGE TO YOUR CARD
find itlwm/firmware/ -type f ! -name 'iwm-8265-*' -delete
# generate firmware
xcodebuild -project itlwm.xcodeproj -target fw_gen -configuration Release -sdk macosx
# build the kexts
## 1. itlwm.kext
xcodebuild -project itlwm.xcodeproj -target itlwm -configuration Release -sdk macosx
## 2. AirportItlwm Mojave
xcodebuild -project itlwm.xcodeproj -target AirportItlwm-Mojave -configuration Release -sdk macosx
## 3. AirportItlwm Catalina
xcodebuild -project itlwm.xcodeproj -target AirportItlwm-Catalina -configuration Release -sdk macosx
## 4. AirportItlwm Big Sur
xcodebuild -project itlwm.xcodeproj -target AirportItlwm-Big\ Sur -configuration Release -sdk macosx
## 5. AirportItlwm Monterey
xcodebuild -project itlwm.xcodeproj -target AirportItlwm-Monterey -configuration Release -sdk macosx
# Location of Kexts
echo "You kexts are in build/Release!!"
echo " "
- Save shell script as (for example)
run-script.sh
and place it in the root directory of the cloneditlwm
folder - Clone MacKernelSDK repo with the command
git clone https://github.com/acidanthera/MacKernelSDK.git
and place its folder insideitlwm
folder - Open Terminal, navigate to
itlwm
folder and then run the commandsh run-script.sh
Done, you'll find your kexts under build/Release
folder.
Source: OpenIntelWireless #353