feat(quirks): Integrate AutoModernCPUQuirks for automated CPU support#792
Open
hnanoto wants to merge 1 commit intoCloverHackyColor:masterfrom
Open
feat(quirks): Integrate AutoModernCPUQuirks for automated CPU support#792hnanoto wants to merge 1 commit intoCloverHackyColor:masterfrom
hnanoto wants to merge 1 commit intoCloverHackyColor:masterfrom
Conversation
This PR introduces the ModernCPUQuirks module and integrates it into the Clover boot flow.
**Key Features:**
* **Auto-Detection:** Automatically detects Intel (12th-14th Gen) and AMD (Zen3-Zen5) processors.
* **Intelligent Recommendations:** Recommends appropriate OpenCore kernel quirks based on the detected CPU.
* **Non-Intrusive:** Respects user-defined settings in `config.plist`. If a user manually sets a quirk, that setting takes precedence.
* **New Config Option:** Adds `AutoModernCPUQuirks` to `config.plist` (default: false).
**Integration Details:**
* **Module:** Added `rEFIt_UEFI/Platform/Experimental/ModernCPUQuirks.{c,h}`.
* **Settings:** Updated `Config_Quirks.h` and `Settings.h` to support the new boolean option.
* **Boot Flow:** Modified `main.cpp` to call the detection logic before `OcLoadKernelSupport`.
* **Documentation:** updated `config-sample.plist`.
**Build Requirement:**
Requires compiling with `-DENABLE_MODERN_CPU_QUIRKS` to enable the functionality.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces the ModernCPUQuirks module and integrates it into the Clover boot flow.
Key Features:
config.plist. If a user manually sets a quirk, that setting takes precedence.AutoModernCPUQuirkstoconfig.plist(default: false).Integration Details:
rEFIt_UEFI/Platform/Experimental/ModernCPUQuirks.{c,h}.Config_Quirks.handSettings.hto support the new boolean option.main.cppto call the detection logic beforeOcLoadKernelSupport.config-sample.plist.Build Requirement:
Requires compiling with
-DENABLE_MODERN_CPU_QUIRKSto enable the functionality.Description
Describe in detail what was changed.
Type of change
Checklist
Additional information
Include any extra details relevant to your PR.