Automate patching for nvidia kernel module like in the kernel#768
Merged
Automate patching for nvidia kernel module like in the kernel#768
Conversation
1Naim
commented
Mar 18, 2026
Member
Author
|
Draft till the first commit is acceptable then I will port it to the other PKGBUILDs. |
1Naim
commented
Mar 19, 2026
There was a problem hiding this comment.
Pull request overview
This PR updates the linux-cachyos-rc packaging workflow to apply NVIDIA open kernel module patches automatically during prepare(), rather than relying on a manually maintained patch step later in the file.
Changes:
- Extend the NVIDIA open module
source+=()list with additional NVIDIA-related patch files. - Update the
prepare()patch application loop to apply NVIDIA patches in the NVIDIA source directory (-d "${srcdir}/${_nv_open_pkg}"). - Remove the dedicated/manual NVIDIA patch application block near the end of
prepare().
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ptr1337
approved these changes
Mar 21, 2026
Refactor the patch applying for loop by preserving the remote source of the patch so we can check for the nvidia prefix, and apply the nvidia patch accordingly. Co-authored-by: Vasiliy Stelmachenok <ventureo@cachyos.org> Signed-off-by: Eric Naim <dnaim@cachyos.org>
Signed-off-by: Eric Naim <dnaim@cachyos.org>
Member
Author
|
Will keep the DSC fixes only on rc for now. |
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 splits nvidia patches to its own array that makes it possible to automate patching the kernel module instead of manually adding the patch line.