Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
XNUQEMUScripts/macos11/printexcludekexts.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (18 sloc)
665 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Iterates through all Kexts marked as required in the boot kext collection, | |
# and prints out which ones require ACPI (and thus won't work on arm64e) | |
# The output is formatted as elide-identifier arguments to kmutil, which can | |
# be copy-pasted into build_arm64e_kcache.sh. | |
set -e | |
IFS=' | |
' | |
for i in $(find /System/Library/Extensions -name Info.plist) | |
do | |
if egrep -q "<string>(Root|Console)</string>" "$i" && \ | |
grep -q "<key>com.apple.iokit.IOACPIFamily</key>" "$i" | |
then | |
identifier=$(grep -A 1 -m 2 "CFBundleIdentifier" "$i" | \ | |
head -n 2|tail -n 1|sed -e "s/.*<string>//g" -e "s@</string>@@g") | |
echo "--elide-identifier $identifier \\" | |
fi | |
done |