poky/scripts/lib/wic/plugins/source
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
..
bootimg-biosplusefi.py wic/plugins: Source that support both EFI and BIOS 2019-07-23 22:26:28 +01:00
bootimg-efi.py wic/bootimg-efi: Add Unified Kernel Image option 2021-10-04 15:03:53 +01:00
bootimg-partition.py wic: fix typo 2020-08-06 15:12:39 +01:00
bootimg-pcbios.py Use the label provided when formating a dos partition 2021-06-29 22:18:56 +01:00
empty.py wic: Introduce empty plugin to create unformatted empty partitions 2020-12-15 22:51:56 +00:00
isoimage-isohybrid.py isoimage-isohybrid.py: Support adding files/dirs 2020-11-08 14:03:20 +00:00
rawcopy.py Add support for erofs filesystems 2021-05-31 14:31:01 +01:00
rootfs.py wic: Add --no-fstab-update part option 2021-08-20 08:53:03 +01:00