-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild_arm64e_kcache.sh
43 lines (43 loc) · 2.25 KB
/
build_arm64e_kcache.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
# Builds an arm64e boot kernel extension collection (the bootable portion of macOS 11's new kernel cache system)
# KextAudit and AppleKeyStore are excluded because they cause kmutil to error
# AppleHSSPIHIDDriver is excluded because it depends on the excluded AppleHSSPISupport
# The other kexts are excluded as they require ACPI: see printexcludekexts.sh
# Tested on macOS 11.0.1 beta 1 (20B5012D)
exec kmutil create --verbose \
--arch arm64e \
--new boot \
--boot-path ~/kcache_out/bootcache-arm64e \
--kernel /System/Library/Kernels/kernel.release.t8020 \
--strip none \
--system-path /tmp/asdf \
--auxiliary-path /tmp/asdf2 \
--elide-identifier com.apple.private.KextAudit \
--elide-identifier com.apple.driver.AppleKeyStore \
--elide-identifier com.apple.driver.AppleHSSPIHIDDriver \
--elide-identifier com.apple.driver.AppleIntelLpssSpiController \
--elide-identifier com.apple.driver.AppleIntelLpssDmac \
--elide-identifier com.apple.driver.AppleHPET \
--elide-identifier com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport \
--elide-identifier com.apple.iokit.IOBluetoothHostControllerUARTTransport \
--elide-identifier com.apple.driver.AppleSMC \
--elide-identifier com.apple.driver.AppleBusPowerController \
--elide-identifier com.apple.driver.AppleHSSPISupport \
--elide-identifier com.apple.driver.AppleIntelLpssGspi \
--elide-identifier com.apple.driver.AppleACPIButtons \
--elide-identifier com.apple.driver.AppleACPIEC \
--elide-identifier com.apple.driver.AppleACPIPlatform \
--elide-identifier com.apple.driver.AppleSMCRTC \
--elide-identifier com.apple.driver.AppleSmartBatteryManager \
--elide-identifier com.apple.driver.AppleIntelLpssI2C \
--elide-identifier com.apple.driver.AppleRTC \
--elide-identifier com.apple.driver.usb.AppleUSBUHCIPCI \
--elide-identifier com.apple.driver.usb.AppleUSBXHCIPCI \
--elide-identifier com.apple.driver.usb.AppleUSBOHCIPCI \
--elide-identifier com.apple.driver.usb.AppleUSBVHCIBCE \
--elide-identifier com.apple.driver.usb.AppleUSBHub \
--elide-identifier com.apple.driver.usb.AppleUSBXHCI \
--elide-identifier com.apple.driver.usb.AppleUSBEHCIPCI \
--elide-identifier com.apple.driver.usb.AppleUSBEHCI \
--elide-identifier com.apple.iokit.IOUSBHostFamily \
--elide-identifier com.apple.driver.AppleIntelLpssI2CController \