~acelankao/+git/kernel-snaps-uc20:master

Last commit made on 2020-12-22
Get this branch:
git clone -b master https://git.launchpad.net/~acelankao/+git/kernel-snaps-uc20
Only AceLan Kao can upload to this branch. If you are AceLan Kao please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~acelankao/+git/kernel-snaps-uc20

Recent commits

c86b892... by AceLan Kao

linux-adv-uno420

Signed-off-by: Chia-Lin Kao (AceLan) <email address hidden>

8553277... by AceLan Kao

modify for newparis

Signed-off-by: AceLan Kao <email address hidden>

0ee91d6... by Dimitri John Ledkov

efi: download wireless-regdb to ensure regulatory.db is in the snap

Makefile.vmlinuz uses apt to install dependencies, which recursively
resolves dependies when preparing chroot/. It installs
linux-modules-extra-$(KVER)-$(FLAVOUR) which depends on crda, which
depends on wireless-regdb, which installs /lib/firmware/regulatory.db.

Makefile.efi instead downloads and unpacks individual debs, ignoring
recursive dependencies. This resulted in wireless-regdb not getting
installed in the chroot, and thus UC20 efi based kernel snaps have no
wifi regulatory db.

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

Signed-off-by: Dimitri John Ledkov <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Seth Forshee <email address hidden>
Signed-off-by: Stefan Bader <email address hidden>

ec4ed8c... by Seth Forshee

efi: Ignore +N at the end of linux-image-uc20-efi-* package versions

The snap version is based off of the linux-uc20-efi version,
however the linux-image-uc20-efi-* packages come from the signed
source package which may have a +N on the version. Ignore the
+N for the version check.

Signed-off-by: Seth Forshee <email address hidden>

50a75b9... by Seth Forshee

Remove version/abi from linux-uc20-efi package name

The version/abi will be removed from the package names for the
next linux-uc20-efi upload. Update Makefile.efi accordingly.

Signed-off-by: Seth Forshee <email address hidden>

fa514f2... by Seth Forshee

Determine flavour from kernel package name

Signed-off-by: Seth Forshee <email address hidden>

be13dae... by Seth Forshee

vmlinuz: Update kernel version check for versioning changes

For pc-kernel the snap version is now based on the linux-uc20-efi
package version, so checking against SNAPCRAFT_PROJECT_VERSION
will fail. Instead, drive the expected kernel version from the
snap version and use that for the check instead.

Signed-off-by: Seth Forshee <email address hidden>

75d9307... by Seth Forshee

Move common install code to shared makefile

Now that use of $(KVER) has been eliminated, only the
installation of the kernel image and initrd differ between the
install targets of the two makefiles. Move the common code to a
common install target, and make this depend on an install-image
target which is defined in the format-specific makefiles.

Signed-off-by: Seth Forshee <email address hidden>

1eef4ea... by Seth Forshee

Eliminate the $(KVERS) variable

This varible prevents commonizing most of the install target,
and it works out to be the same thing as $(ABI)-$(FLAVOUR). Just
use that instead.

Signed-off-by: Seth Forshee <email address hidden>

d4b58aa... by Seth Forshee

Split Makefile into per-image-format files

Rather than cluttering the makefile with conditionals, split it
up into two makefiles, one for the "efi" image type and one for
the "vmlinuz" type. Keep common definitions in the top-level
makefile, and include the appropriate format-specific makefile
based on the value of KERNEL_IMAGE_FORMAT.

Note that we are left with no generic way to determine the kernel
flavour, not that we really had a good, generic way to do it
before. Recipes are now epected to specify FLAVOUR in the
make-parameters section of snapcraft.yaml.

Signed-off-by: Seth Forshee <email address hidden>