diff mbox series

[4/8,B,SRU,L-R-M] UBUNTU: [Packaging] rules -- expose dkms provides data

Message ID 20200529143751.2218526-5-alberto.milone@canonical.com
State New
Headers show
Series Add signed modules for the new NVIDIA -server drivers | expand

Commit Message

Alberto Milone May 29, 2020, 2:37 p.m. UTC
From: Andy Whitcroft <apw@canonical.com>

Export the dkms provides data for use in control templates.

This is based on Andy's work on LP: #1856414.

BugLink: https://bugs.launchpad.net/bugs/1856414
---
 debian/rules | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/debian/rules b/debian/rules
index 6552b42..799f338 100755
--- a/debian/rules
+++ b/debian/rules
@@ -128,3 +128,12 @@  override_dh_prep: debian/scripts/fix-filenames
 
 override_dh_auto_install: prepare-dkms $(flavours)
 	dh_install
+
+gencontrol_flags  = -Vdkms:nvidia-390-modules="nvidia-dkms-390 (= $(dkms_nvidia_390_version))"
+gencontrol_flags += -Vdkms:nvidia-435-modules="nvidia-dkms-435 (= $(dkms_nvidia_435_version))"
+gencontrol_flags += -Vdkms:nvidia-440-modules="nvidia-dkms-440 (= $(dkms_nvidia_440_version))"
+gencontrol_flags += -Vdkms:nvidia-418-server-modules="nvidia-dkms-418-server (= $(dkms_nvidia_418_server_version))"
+gencontrol_flags += -Vdkms:nvidia-440-server-modules="nvidia-dkms-440-server (= $(dkms_nvidia_440_server_version))"
+
+override_dh_gencontrol:
+	dh_gencontrol -- $(gencontrol_flags)