diff mbox series

[v2,2/2] UBUNTU: [Packaging] NVIDIA -- Add the 455 driver

Message ID 20201105154831.100003-3-paolo.pisati@canonical.com
State New
Headers show
Series Add the NVIDIA 455 series | expand

Commit Message

Paolo Pisati Nov. 5, 2020, 3:48 p.m. UTC
From: Alberto Milone <alberto.milone@canonical.com>

Add the 455 series, and drop the 435 series.

BugLink: https://bugs.launchpad.net/bugs/1902093

Signed-off-by: Alberto Milone <alberto.milone@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
---
 debian/control.d/meta-nvidia        | 12 ++++++------
 debian/control.d/migrate-nvidia-435 |  6 ++++++
 debian/control.d/nvidia             |  4 ++--
 debian/rules                        | 16 ++++++++--------
 4 files changed, 22 insertions(+), 16 deletions(-)
 create mode 100644 debian/control.d/migrate-nvidia-435
diff mbox series

Patch

diff --git a/debian/control.d/meta-nvidia b/debian/control.d/meta-nvidia
index da34373..61a650a 100644
--- a/debian/control.d/meta-nvidia
+++ b/debian/control.d/meta-nvidia
@@ -11,17 +11,17 @@  Description: Extra drivers for nvidia-390 for aws${variant:suffix}
  Install extra signed nvidia-390 modules compatible with
  aws${variant:suffix}
 
-Package: linux-modules-nvidia-435-aws${variant:suffix}
+Package: linux-modules-nvidia-455-aws${variant:suffix}
 Build-Profiles: <!stage1>
 Architecture: amd64
 Section: kernel
-Provides: ${dkms:nvidia-435-modules}, nvidia-prebuilt-kernel
+Provides: ${dkms:nvidia-455-modules}, nvidia-prebuilt-kernel
 Depends:
  ${misc:Depends},
- linux-modules-nvidia-435-@ABI@-aws (= ${binary:Version}),
- ${nvk:nvidia-435}
-Description: Extra drivers for nvidia-435 for aws${variant:suffix}
- Install extra signed nvidia-435 modules compatible with
+ linux-modules-nvidia-455-@ABI@-aws (= ${binary:Version}),
+ ${nvk:nvidia-455}
+Description: Extra drivers for nvidia-455 for aws${variant:suffix}
+ Install extra signed nvidia-455 modules compatible with
  aws${variant:suffix}
 
 Package: linux-modules-nvidia-450-aws${variant:suffix}
diff --git a/debian/control.d/migrate-nvidia-435 b/debian/control.d/migrate-nvidia-435
new file mode 100644
index 0000000..a0e9b71
--- /dev/null
+++ b/debian/control.d/migrate-nvidia-435
@@ -0,0 +1,6 @@ 
+Package: linux-modules-nvidia-435-aws
+Architecture: amd64
+Section: oldlibs
+Depends: linux-modules-nvidia-455-aws
+Description: Extra drivers for nvidia-435 for the aws flavour (dummy transitional package)
+ Transitional package for upgrades of -435 to -455.
diff --git a/debian/control.d/nvidia b/debian/control.d/nvidia
index d0f79d8..3d95c46 100644
--- a/debian/control.d/nvidia
+++ b/debian/control.d/nvidia
@@ -17,7 +17,7 @@  Description: Linux kernel nvidia modules for version @ABI@
  which will ensure that upgrades work correctly, and that supporting packages are
  also installed.
 
-Package: linux-modules-nvidia-435-@ABI@-aws
+Package: linux-modules-nvidia-455-@ABI@-aws
 Build-Profiles: <!stage1>
 Architecture: amd64
 Section: kernel
@@ -32,7 +32,7 @@  Description: Linux kernel nvidia modules for version @ABI@
  This package contains the Linux kernel nvidia modules for version @ABI@.
  .
  You likely do not want to install this package directly. Instead, install the
- one of the linux-modules-nvidia-435-aws* meta-packages,
+ one of the linux-modules-nvidia-455-aws* meta-packages,
  which will ensure that upgrades work correctly, and that supporting packages are
  also installed.
 
diff --git a/debian/rules b/debian/rules
index c91e509..e381b9f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,11 +14,11 @@  src_series = $(shell dpkg-parsechangelog -SDistribution | sed -e 's/-\(security\
 src_kernel = $(shell echo "$(src_package)" | sed -e 's/restricted-modules-//')
 
 dkms_nvidia_390_version=$(shell gawk '/^nvidia-graphics-drivers-390 / { print $$2; }' debian/dkms-versions)
-dkms_nvidia_435_version=$(shell gawk '/^nvidia-graphics-drivers-435 / { print $$2; }' debian/dkms-versions)
+dkms_nvidia_455_version=$(shell gawk '/^nvidia-graphics-drivers-455 / { print $$2; }' debian/dkms-versions)
 dkms_nvidia_450_version=$(shell gawk '/^nvidia-graphics-drivers-450 / { print $$2; }' debian/dkms-versions)
 
 nvidia_390_upstream_version=$(shell echo "$(dkms_nvidia_390_version)" | cut -d '-' -f 1)
-nvidia_435_upstream_version=$(shell echo "$(dkms_nvidia_435_version)" | cut -d '-' -f 1)
+nvidia_455_upstream_version=$(shell echo "$(dkms_nvidia_455_version)" | cut -d '-' -f 1)
 nvidia_450_upstream_version=$(shell echo "$(dkms_nvidia_450_version)" | cut -d '-' -f 1)
 
 # Get variants, assuming primary if debian/variants is not present
@@ -134,10 +134,10 @@  nvidia-%:
 	$(call build_dkms, $(src_abi)-$*, linux-modules-nvidia-390-$(src_abi)-$*, $(CURDIR)/debian/linux-modules-nvidia-390-$(src_abi)-$*/lib/modules/$(src_abi)-$*/kernel, "", nvidia-390, pool/restricted/n/nvidia-graphics-drivers-390/nvidia-kernel-source-390_$(dkms_nvidia_390_version)_$(arch).deb pool/restricted/n/nvidia-graphics-drivers-390/nvidia-dkms-390_$(dkms_nvidia_390_version)_$(arch).deb)
 	$(call install_control,linux-modules-nvidia-390-$(src_abi)-$*,$*,nvidia,390,postinst postrm prerm config templates)
 
-	install -d debian/linux-modules-nvidia-435-$(src_abi)-$*
-	install -d debian/linux-modules-nvidia-435-$(src_abi)-$*/usr/lib/linux/triggers
-	$(call build_dkms, $(src_abi)-$*, linux-modules-nvidia-435-$(src_abi)-$*, $(CURDIR)/debian/linux-modules-nvidia-435-$(src_abi)-$*/lib/modules/$(src_abi)-$*/kernel, "", nvidia-435, pool/restricted/n/nvidia-graphics-drivers-435/nvidia-kernel-source-435_$(dkms_nvidia_435_version)_$(arch).deb pool/restricted/n/nvidia-graphics-drivers-435/nvidia-dkms-435_$(dkms_nvidia_435_version)_$(arch).deb)
-	$(call install_control,linux-modules-nvidia-435-$(src_abi)-$*,$*,nvidia,435,postinst postrm prerm config templates)
+	install -d debian/linux-modules-nvidia-455-$(src_abi)-$*
+	install -d debian/linux-modules-nvidia-455-$(src_abi)-$*/usr/lib/linux/triggers
+	$(call build_dkms, $(src_abi)-$*, linux-modules-nvidia-455-$(src_abi)-$*, $(CURDIR)/debian/linux-modules-nvidia-455-$(src_abi)-$*/lib/modules/$(src_abi)-$*/kernel, "", nvidia-455, pool/restricted/n/nvidia-graphics-drivers-455/nvidia-kernel-source-455_$(dkms_nvidia_455_version)_$(arch).deb pool/restricted/n/nvidia-graphics-drivers-455/nvidia-dkms-455_$(dkms_nvidia_455_version)_$(arch).deb)
+	$(call install_control,linux-modules-nvidia-455-$(src_abi)-$*,$*,nvidia,455,postinst postrm prerm config templates)
 
 	install -d debian/linux-modules-nvidia-450-$(src_abi)-$*
 	install -d debian/linux-modules-nvidia-450-$(src_abi)-$*/usr/lib/linux/triggers
@@ -156,11 +156,11 @@  override_dh_auto_install: prepare-dkms $(flavours)
 
 gencontrol_flags :=
 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-455-modules="nvidia-dkms-455 (= $(dkms_nvidia_455_version))"
 gencontrol_flags += -Vdkms:nvidia-450-modules="nvidia-dkms-450 (= $(dkms_nvidia_450_version))"
 
 gencontrol_flags += -Vnvk:nvidia-390="nvidia-kernel-common-390 (<= $(nvidia_390_upstream_version)-1), nvidia-kernel-common-390 (>= $(nvidia_390_upstream_version))"
-gencontrol_flags += -Vnvk:nvidia-435="nvidia-kernel-common-435 (<= $(nvidia_435_upstream_version)-1), nvidia-kernel-common-435 (>= $(nvidia_435_upstream_version))"
+gencontrol_flags += -Vnvk:nvidia-455="nvidia-kernel-common-455 (<= $(nvidia_455_upstream_version)-1), nvidia-kernel-common-455 (>= $(nvidia_455_upstream_version))"
 gencontrol_flags += -Vnvk:nvidia-450="nvidia-kernel-common-450 (<= $(nvidia_450_upstream_version)-1), nvidia-kernel-common-450 (>= $(nvidia_450_upstream_version))"
 
 override_dh_gencontrol: