[J][linux-signed-uc22][PATCH 4/5] debian: provide stampfile of UC22 kernel image type

Dimitri John Ledkov dimitri.ledkov at canonical.com
Tue Feb 8 15:50:41 UTC 2022


Provide stamp files in /usr/share/doc/$(package) that indicate whether
this UC22 kernel is expected to be snapped as kernel.efi or
vmlinuz. It is usually non-obvious which way a given architecture
should be snapped, current architectures support both types on many
arches, and some will be switched during UC22 cycle from vmlinuz to
kernel.efi. Providing these stamp files will allow snapcraft.yaml to
correctly build kernel snaps when kernel image type is changed.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
---
 debian/kernelefi.stamp                        | 2 ++
 debian/linux-image-uc22-generic.docs.amd64    | 1 +
 debian/linux-image-uc22-generic.docs.arm64    | 1 +
 debian/linux-image-uc22-generic.docs.armhf    | 1 +
 debian/linux-image-uc22-lowlatency.docs.amd64 | 1 +
 debian/linux-image-uc22-lowlatency.docs.arm64 | 1 +
 debian/vmlinuz.stamp                          | 2 ++
 7 files changed, 9 insertions(+)
 create mode 100644 debian/kernelefi.stamp
 create mode 100644 debian/linux-image-uc22-generic.docs.amd64
 create mode 100644 debian/linux-image-uc22-generic.docs.arm64
 create mode 100644 debian/linux-image-uc22-generic.docs.armhf
 create mode 120000 debian/linux-image-uc22-lowlatency.docs.amd64
 create mode 120000 debian/linux-image-uc22-lowlatency.docs.arm64
 create mode 100644 debian/vmlinuz.stamp

diff --git a/debian/kernelefi.stamp b/debian/kernelefi.stamp
new file mode 100644
index 0000000000..1c3ac9f3fc
--- /dev/null
+++ b/debian/kernelefi.stamp
@@ -0,0 +1,2 @@
+# This file indicates that this architecture of UC22 kernel uses
+# kernel.efi to boot.
diff --git a/debian/linux-image-uc22-generic.docs.amd64 b/debian/linux-image-uc22-generic.docs.amd64
new file mode 100644
index 0000000000..59e9ea2858
--- /dev/null
+++ b/debian/linux-image-uc22-generic.docs.amd64
@@ -0,0 +1 @@
+debian/kernelefi.stamp
diff --git a/debian/linux-image-uc22-generic.docs.arm64 b/debian/linux-image-uc22-generic.docs.arm64
new file mode 100644
index 0000000000..3526faaa4d
--- /dev/null
+++ b/debian/linux-image-uc22-generic.docs.arm64
@@ -0,0 +1 @@
+debian/vmlinuz.stamp
diff --git a/debian/linux-image-uc22-generic.docs.armhf b/debian/linux-image-uc22-generic.docs.armhf
new file mode 100644
index 0000000000..3526faaa4d
--- /dev/null
+++ b/debian/linux-image-uc22-generic.docs.armhf
@@ -0,0 +1 @@
+debian/vmlinuz.stamp
diff --git a/debian/linux-image-uc22-lowlatency.docs.amd64 b/debian/linux-image-uc22-lowlatency.docs.amd64
new file mode 120000
index 0000000000..39896b1b12
--- /dev/null
+++ b/debian/linux-image-uc22-lowlatency.docs.amd64
@@ -0,0 +1 @@
+linux-image-uc22-generic.docs.amd64
\ No newline at end of file
diff --git a/debian/linux-image-uc22-lowlatency.docs.arm64 b/debian/linux-image-uc22-lowlatency.docs.arm64
new file mode 120000
index 0000000000..4387357538
--- /dev/null
+++ b/debian/linux-image-uc22-lowlatency.docs.arm64
@@ -0,0 +1 @@
+linux-image-uc22-generic.docs.arm64
\ No newline at end of file
diff --git a/debian/vmlinuz.stamp b/debian/vmlinuz.stamp
new file mode 100644
index 0000000000..d2ada6ddf9
--- /dev/null
+++ b/debian/vmlinuz.stamp
@@ -0,0 +1,2 @@
+# This file indicates that this architecture of UC22 kernel uses
+# vmlinuz to boot.
-- 
2.32.0




More information about the kernel-team mailing list