Skip to content

Commit

Permalink
misc.py: Resolve SPI support for MacBookAir6,x
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Mar 8, 2024
1 parent 321cc8d commit f55598d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
@@ -1,7 +1,9 @@
# OpenCore Legacy Patcher changelog

## 1.5.0
## 1.4.1
- Update updater implementation
- Resolve Keyboard/Trackpad support for MacBookAir6,x running macOS 14.4 and newer
- Expands SPI Keyboard and Trackpad patch to include MacBookAir6,x

## 1.4.0
- Refactor subprocess invocations
Expand Down
4 changes: 2 additions & 2 deletions resources/build/misc.py
Expand Up @@ -183,9 +183,9 @@ def _topcase_handling(self) -> None:
USB/SPI Top Case Handler
"""

# macOS 14.4 Beta 1 strips SPI-based top case support for Broadwell through Kaby Lake MacBooks
# macOS 14.4 Beta 1 strips SPI-based top case support for Broadwell through Kaby Lake MacBooks (and MacBookAir6,x)
if self.model.startswith("MacBook") and self.model in smbios_data.smbios_dictionary:
if (cpu_data.CPUGen.broadwell <= smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.CPUGen.kaby_lake):
if self.model.startswith("MacBookAir6") or (cpu_data.CPUGen.broadwell <= smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.CPUGen.kaby_lake):
logging.info("- Enabling SPI-based top case support")
support.BuildSupport(self.model, self.constants, self.config).enable_kext("AppleHSSPISupport.kext", self.constants.apple_spi_version, self.constants.apple_spi_path)
support.BuildSupport(self.model, self.constants, self.config).enable_kext("AppleHSSPIHIDDriver.kext", self.constants.apple_spi_hid_version, self.constants.apple_spi_hid_path)
Expand Down
2 changes: 1 addition & 1 deletion resources/constants.py
Expand Up @@ -13,7 +13,7 @@
class Constants:
def __init__(self) -> None:
# Patcher Versioning
self.patcher_version: str = "1.5.0" # OpenCore-Legacy-Patcher
self.patcher_version: str = "1.4.1" # OpenCore-Legacy-Patcher
self.patcher_support_pkg_version: str = "1.4.7" # PatcherSupportPkg
self.copyright_date: str = "Copyright © 2020-2024 Dortania"
self.patcher_name: str = "OpenCore Legacy Patcher"
Expand Down

0 comments on commit f55598d

Please sign in to comment.