diff -urN nvidia-kernel-legacy-71xx/debian/patches/series nvidia-kernel-legacy-71xx_patched/debian/patches/series
--- nvidia-kernel-legacy-71xx/debian/patches/series	2012-06-30 11:53:56.000000000 +0000
+++ nvidia-kernel-legacy-71xx_patched/debian/patches/series	2026-03-20 21:24:38.264511597 +0000
@@ -1,8 +1,5 @@
 patch-3.0-rt-nvidia.patch
 use-nv-kernel.o.ARCH.patch
 conditionally-include-linux_version.h.patch
-avoid-ld.gold.patch
 fix-typos.patch
 linux3.patch
-kernel-3.4.patch
-drop24support.patch
diff -urN nvidia-kernel-legacy-71xx/debian/rules nvidia-kernel-legacy-71xx_patched/debian/rules
--- nvidia-kernel-legacy-71xx/debian/rules	2012-06-30 11:53:56.000000000 +0000
+++ nvidia-kernel-legacy-71xx_patched/debian/rules	2026-03-20 21:24:20.952363260 +0000
@@ -54,12 +54,14 @@
 	sed 's/#KVERS#/$(KVERS)/g' debian/install.template > debian/install
 	touch $@
 
+export QUILT_PATCHES=debian/patches
+
 build: build-arch build-indep
 build-arch: build-stamp
 build-indep:
 build-stamp: configure-stamp
-	dh_prep
-	dh_quilt_patch
+	dh_clean -k
+	quilt push -a || test $$? = 2
 	$(MAKE) LINUXDIR=$(KSRC)
 	touch $@
 
@@ -73,8 +75,6 @@
 	dh_installdocs $(wildcard debian/changelog.nvidia-kernel*-source*)
 	dh_installchangelogs NVIDIA_Changelog
 	dh_installmodules
-	dh_bugfiles
-	dh_lintian
 	dh_strip
 	dh_compress
 	dh_fixperms
@@ -88,7 +88,6 @@
 	dh_testdir
 	dh_testroot
 	$(MAKE) LINUXDIR=$(KSRC) $(KPKG_EXTRAV_ARG) clean
-	dh_quilt_unpatch || quilt --quiltrc /dev/null pop -af
 	dh_clean debian/control debian/install
 
 # The kdist_configure target is called by make-kpkg modules_config. It
diff -urN nvidia-kernel-legacy-71xx/debian/compat nvidia-kernel-legacy-71xx_patched/debian/compat
--- nvidia-kernel-legacy-71xx/debian/compat	2012-06-30 11:53:56.000000000 +0000
+++ nvidia-kernel-legacy-71xx_patched/debian/compat	2026-03-20 21:24:20.952363260 +0000
@@ -1 +1 @@
-8
+5
