diff mbox series

[J,linux-signed-uc22,1/5] debian/control: explicitely declare only amd64 as UEFI signed

Message ID 20220208155042.273128-2-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
Only attempt signing on amd64, and update descriptions to state
that. Also update lowlatency kernel to state correct flavour name.

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

Patch

diff --git a/debian/control.stub b/debian/control.stub
index 7ae5b0381f..a10343214e 100644
--- a/debian/control.stub
+++ b/debian/control.stub
@@ -4,7 +4,7 @@  Priority: optional
 Maintainer: Canonical Kernel Team <kernel-team@lists.ubuntu.com>
 Build-Depends: debhelper (>= 9)
 Build-Depends-Arch:
- @UNSIGNED_SRC_PACKAGE@ (>= @UNSIGNED_SRC_VERSION@),
+ @UNSIGNED_SRC_PACKAGE@ (>= @UNSIGNED_SRC_VERSION@) [amd64],
  python3,
  python3-apt,
 Standards-Version: 3.9.4
@@ -12,13 +12,13 @@  Standards-Version: 3.9.4
 Package: linux-image-uc22-generic
 Architecture: amd64
 Depends: linux-firmware, wireless-regdb, linux-modules-@ABI@-generic, linux-modules-extra-@ABI@-generic
-Description: Signed UC22 kernel image generic
+Description: UC22 kernel image generic
  A kernel image for generic UC22.  This version of it is signed with
- Canonical's UEFI signing key.
+ Canonical's UEFI signing key on amd64.
 
 Package: linux-image-uc22-lowlatency
 Architecture: amd64
 Depends: linux-firmware, wireless-regdb, linux-modules-@ABI@-lowlatency
-Description: Signed UC22 kernel image generic
- A kernel image for generic UC22.  This version of it is signed with
- Canonical's UEFI signing key.
+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.
diff --git a/debian/rules b/debian/rules
index 425812f6b6..228ca2e3ff 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@ 
 #! /usr/bin/make -f
 
+include /usr/share/dpkg/default.mk
+
 SOURCE=$(shell dpkg-parsechangelog -S Source)
 VERSION=$(shell dpkg-parsechangelog -S Version)
 ABI=$(shell echo "$(VERSION)" | sed -ne 's/\([0-9]*\.[0-9]*\.[0-9]*\-[0-9]*\)\..*/\1/p')
@@ -28,6 +30,7 @@  debian/control:
 %:
 	dh $@
 
+ifneq (,$(filter $(DEB_HOST_ARCH), amd64))
 override_dh_auto_build:
 	./download-signed "linux-uc22" "$(UNSIGNED_VER)" "$(UNSIGNED_SRC)"
 	mkdir SIGNED
@@ -56,3 +59,4 @@  override_dh_auto_install:
 
 override_dh_fixperms:
 	dh_fixperms -X/boot/
+endif