poky/scripts/lib/wic
Kristian Klausen b8c0f073f6 wic/bootimg-efi: Add Unified Kernel Image option
"A unified kernel image is a single EFI PE executable combining an EFI
stub loader, a kernel image, an initramfs image, and the kernel command
line.

[...]

Images of this type have the advantage that all metadata and payload
that makes up the boot entry is monopolized in a single PE file that can
be signed cryptographically as one for the purpose of EFI
SecureBoot."[1]

This commit adds a create-unified-kernel-image=true option to the
bootimg-efi plugin for creating a Unified Kernel Image[1] and installing
it into $BOOT/EFI/Linux/ with a .efi extension per the the Boot Loader
Specification[1][2]. This is useful for implementing Secure Boot.

systemd-boot is the only mainstream bootloader implementing the
specification, but GRUB should be able to boot the EFI binary, this
commit however doesn't implement the necessary changes to the GRUB
config generation logic to boot the Unified Kernel Image.

[1] https://systemd.io/BOOT_LOADER_SPECIFICATION/#type-2-efi-unified-kernel-images
[2] https://systemd.io/BOOT_LOADER_SPECIFICATION/

(From OE-Core rev: b0573f240525df561ddef6e47cb285b217d38487)

Signed-off-by: Kristian Klausen <kristian@klausen.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-10-04 15:03:53 +01:00
..
canned-wks wic: don't forcibly pass -T default 2021-08-12 06:26:15 +01:00
plugins wic/bootimg-efi: Add Unified Kernel Image option 2021-10-04 15:03:53 +01:00
__init__.py wic: python2 -> python3 2019-06-30 22:40:52 +01:00
engine.py wic: use Filesystem UUID when expand swap partition 2020-04-26 14:00:50 +01:00
filemap.py wic/filemap: Fall back to standard copy when no way to get the block map 2020-07-18 11:06:31 +01:00
help.py wic: Add --no-fstab-update part option 2021-08-20 08:53:03 +01:00
ksparser.py wic: Add --no-fstab-update part option 2021-08-20 08:53:03 +01:00
misc.py wic: Warn if an ext filesystem affected by the Y2038 problem is used 2021-02-26 15:21:21 +00:00
partition.py wic: keep rootfs_size as integer 2021-09-19 11:33:14 +01:00
pluginbase.py wic: align layer plugin path 2020-04-02 15:24:59 +01:00