Created
May 1, 2025 08:38
-
-
Save denisoster/66b620d10c5e723582c12c45248b8600 to your computer and use it in GitHub Desktop.
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
diff --git a/PKGBUILD b/PKGBUILD | |
index 93df6e3..52ccadb 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -28,6 +28,7 @@ source=('nvidia-drm-outputclass.conf' | |
"kernel-6.12.patch" | |
"nvidia-470xx-fix-linux-6.13.patch" | |
"nvidia-470xx-fix-linux-6.14.patch" | |
+ "gcc-15.patch" | |
) | |
sha512sums=('de7116c09f282a27920a1382df84aa86f559e537664bb30689605177ce37dc5067748acf9afd66a3269a6e323461356592fdfc624c86523bf105ff8fe47d3770' | |
@@ -42,7 +43,8 @@ sha512sums=('de7116c09f282a27920a1382df84aa86f559e537664bb30689605177ce37dc50677 | |
'e1371e2ed622d642b0242a2be34438fae97fa33ef42afc1e7897177c10dc8831f20b9a8b37d25d9dc079743df03b10221decfb23577650233af8981a4ffb813c' | |
'ef84759e29869c0663b7a026d62d53196575eb633fa7a80935bcd8f1e64da94ef1a386facca313c36f306f591de094c4e36f42e453c0e9421755df68f18ae1f0' | |
'c577d422799580e6a7b12670439dd7d68f9474ae17e96355144b7037d9a36228f22e53682f317ec7ca0f6a83d2520ede376350d02a2c072d0d195768f4115cba' | |
- '7f0ab1d27d08fc091e8190ff040115607eb2d0c4a6ab710f8083899c3ed44a30eb4479c0bae8a072ee54409734f9c78a10f0c2555157526e153b4578ccf8aea6') | |
+ '7f0ab1d27d08fc091e8190ff040115607eb2d0c4a6ab710f8083899c3ed44a30eb4479c0bae8a072ee54409734f9c78a10f0c2555157526e153b4578ccf8aea6' | |
+ '2b6e8265ed46b6a33c01199e737aa654f5af7911a563e551e419870cbdab79c58d99773123fc6db62a02407ea8f56d1a7cca2ddfc96293b31cc5f8e23447fddf') | |
create_links() { | |
# create soname links | |
@@ -74,6 +76,7 @@ prepare() { | |
patch -p1 -i "${srcdir}/kernel-6.12.patch" | |
patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-6.13.patch" | |
patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-6.14.patch" | |
+ patch -p1 -i "${srcdir}/gcc-15.patch" | |
sed -i "s/__VERSION_STRING/${pkgver}/" dkms.conf | |
sed -i 's/__JOBS/`nproc`/' dkms.conf | |
diff --git a/gcc-15.patch b/gcc-15.patch | |
new file mode 100644 | |
index 0000000..305d82c | |
--- /dev/null | |
+++ b/gcc-15.patch | |
@@ -0,0 +1,12 @@ | |
+diff --git a/Kbuild b/Kbuild | |
+index eadd8b2..f1bfd3f 100644 | |
+--- a/Kbuild | |
++++ b/Kbuild | |
+@@ -73,6 +73,7 @@ EXTRA_CFLAGS += -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"470.256.02\" | |
+ EXTRA_CFLAGS += $(call cc-option,-Werror=undef,) | |
+ EXTRA_CFLAGS += -DNV_SPECTRE_V2=$(NV_SPECTRE_V2) | |
+ EXTRA_CFLAGS += -DNV_KERNEL_INTERFACE_LAYER | |
++EXTRA_CFLAGS += -std=gnu17 | |
+ | |
+ # | |
+ # Detect SGI UV systems and apply system-specific optimizations. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment