diff mbox series

[J,linux-signed-uc22,5/5] debian/control.stub: depend on abi specific nvidia objects and signatures

Message ID 20220208155042.273128-6-dimitri.ledkov@canonical.com
State New
Headers show
Series Unjam kernel snaps versions | expand

Commit Message

Dimitri John Ledkov Feb. 8, 2022, 3:50 p.m. UTC
For kernel snap, only objects and signatures are needed to be staged
in the snap, for the matching abi of the kernel. During snap build
using adopt-info key, snapcraft.yaml doesn't know which abi it is
building kernel.snap for (as it might be embargoed), thus encode the
abi of nvidia objects in the control.stub. Note that the top-level
meta which pulls in -common- packages is not needed in the kernel
snap, te -common- things are staged into nvidia-assemble snap.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
---
 debian/control.stub | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/debian/control.stub b/debian/control.stub
index 7e35a32805..e728319439 100644
--- a/debian/control.stub
+++ b/debian/control.stub
@@ -11,14 +11,18 @@  Standards-Version: 3.9.4
 
 Package: linux-image-uc22-generic
 Architecture: amd64 arm64 armhf
-Depends: linux-firmware, wireless-regdb, linux-image-@ABI@-generic [arm64 armhf], linux-modules-@ABI@-generic, linux-modules-extra-@ABI@-generic
+Depends: linux-firmware, wireless-regdb, linux-image-@ABI@-generic [arm64 armhf], linux-modules-@ABI@-generic, linux-modules-extra-@ABI@-generic,
+ linux-objects-nvidia-470-server-@ABI@-generic [amd64],
+ linux-signatures-nvidia-@ABI@-generic [amd64],
 Description: UC22 kernel image generic
  A kernel image for generic UC22.  This version of it is signed with
  Canonical's UEFI signing key on amd64.
 
 Package: linux-image-uc22-lowlatency
 Architecture: amd64 arm64
-Depends: linux-firmware, wireless-regdb, linux-image-@ABI@-lowlatency [arm64], linux-modules-@ABI@-lowlatency
+Depends: linux-firmware, wireless-regdb, linux-image-@ABI@-lowlatency [arm64], linux-modules-@ABI@-lowlatency,
+ linux-objects-nvidia-470-server-@ABI@-lowlatency [amd64],
+ linux-signatures-nvidia-@ABI@-lowlatency [amd64],
 Description: UC22 kernel image lowlatency
  A kernel image for lowlatency UC22.  This version of it is signed with
  Canonical's UEFI signing key on amd64.