APPLIED: [kernel-snaps-uc20:intel][PATCH] intel: repack intel-kernel snap from intel-iotg-kernel snap
Dimitri John Ledkov
dimitri.ledkov at canonical.com
Thu Sep 29 14:15:07 UTC 2022
Applied, tweaked to use 20/edge however, after more discussions with a
stable team.
This means we build/crank intel-kernel, only when intel-iotg-kernel is
published in 20/edge (not currently enforced), and then promote them
as normal.
On Mon, 5 Sept 2022 at 08:17, Jian Hui Lee <jianhui.lee at canonical.com> wrote:
>
> This patch rewrites intel-kernel snapcraft.yaml packaging to repack from intel-iotg-kernel snap by using stag-snaps.
>
> Signed-off-by: Jian Hui Lee <jianhui.lee at canonical.com>
> ---
> kernel-info.yaml | 2 +-
> snapcraft.yaml | 26 +++++++++++---------------
> 2 files changed, 12 insertions(+), 16 deletions(-)
>
> diff --git a/kernel-info.yaml b/kernel-info.yaml
> index 986c92c..acaad8c 100644
> --- a/kernel-info.yaml
> +++ b/kernel-info.yaml
> @@ -2,5 +2,5 @@
> # Kernel Source Information
> #
> series: focal
> -source: linux-uc20-intel
> +source: linux-uc20-intel-iotg
> version: 5.13.0-1017.19.1
> diff --git a/snapcraft.yaml b/snapcraft.yaml
> index 9a2b636..1b03d8b 100644
> --- a/snapcraft.yaml
> +++ b/snapcraft.yaml
> @@ -1,24 +1,20 @@
> name: intel-kernel
> -version: 5.13.0-1017.19.1
> +adopt-info: kernel
> summary: generic linux kernel
> description: The Intel Ubuntu kernel package as a snap
> type: kernel
> +grade: stable
> confinement: strict
> build-base: core20
>
> parts:
> kernel:
> - source: git://git.launchpad.net/~canonical-kernel-snaps/+git/kernel-snaps-uc20
> - source-type: git
> - source-branch: master
> - plugin: make
> - make-parameters:
> - - KERNEL_SOURCE=focal:linux-uc20-intel
> - - KERNEL=linux-image-uc20-intel
> - - KERNEL_IMAGE_FORMAT=efi
> - - PROPOSED=true
> - build-packages:
> - - debootstrap
> - - gnupg
> - - kmod
> - - lsb-release
> + plugin: nil
> + # Set this snap version to the meta version of kernel.efi
> + override-pull: |
> + snapcraftctl pull
> + snapcraftctl set-version "$(snap info intel-iotg-kernel | yq '.channels.20/stable | split(" ").0')"
> + build-snaps:
> + - yq
> + stage-snaps:
> + - intel-iotg-kernel/20/stable
> --
> 2.34.1
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
--
okurrr,
Dimitri
More information about the kernel-team
mailing list