Skip to content

Automate patching for nvidia kernel module like in the kernel#768

Merged
1Naim merged 2 commits intomasterfrom
7.0/nvidia-patch
Mar 22, 2026
Merged

Automate patching for nvidia kernel module like in the kernel#768
1Naim merged 2 commits intomasterfrom
7.0/nvidia-patch

Conversation

@1Naim
Copy link
Copy Markdown
Member

@1Naim 1Naim commented Mar 18, 2026

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.

@1Naim 1Naim requested a review from ventureoo March 18, 2026 07:09
@1Naim 1Naim marked this pull request as draft March 18, 2026 07:11
@1Naim
Copy link
Copy Markdown
Member Author

1Naim commented Mar 18, 2026

Draft till the first commit is acceptable then I will port it to the other PKGBUILDs.

@1Naim 1Naim force-pushed the 7.0/nvidia-patch branch from 901b421 to f76ce53 Compare March 19, 2026 04:34
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

@ventureoo ventureoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

1Naim and others added 2 commits March 22, 2026 14:21
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>
@1Naim 1Naim force-pushed the 7.0/nvidia-patch branch from 9da772f to a525bf7 Compare March 22, 2026 06:22
@1Naim 1Naim marked this pull request as ready for review March 22, 2026 06:22
@1Naim
Copy link
Copy Markdown
Member Author

1Naim commented Mar 22, 2026

Will keep the DSC fixes only on rc for now.

@1Naim 1Naim merged commit 1caa0b7 into master Mar 22, 2026
2 checks passed
@1Naim 1Naim deleted the 7.0/nvidia-patch branch March 22, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants