[OE-core] [PATCH] wic: add UEFI kernel as UEFI stub

Richard Purdie richard.purdie at linuxfoundation.org
Sun Jan 5 14:52:35 UTC 2020


On Sat, 2020-01-04 at 23:07 +0300, Maxim Uvarov wrote:
> Linux kernel can be compiled as UEFI stub and loaded directly
> with UEFI firmware without grub or other UEFI shell.
> 
> Tested with wic file:
> bootloader  --ptable gpt --timeout=0  --append="rootwait"
> part /boot --source bootimg-efi --sourceparams="loader=kernel" \
>  --ondisk sda  --fstype=vfat --label bootfs \
>   --active --align 1024 --use-uuid
> part / --source rootfs --fstype=ext4 --label rootfs \
>   --align 1024 --exclude-path boot/ --use-label
> The same wic file for armv7, armv8 and x86_64.
> 
> Signed-off-by: Maxim Uvarov <maxim.uvarov at linaro.org>
> ---
>  scripts/lib/wic/plugins/source/bootimg-efi.py | 27
> +++++++++++++++++++
>  1 file changed, 27 insertions(+)

wic has fairly complete tests, do we need to add a test for the new
functionality?

("oe-selftest -r wic")

Cheers,

Richard



More information about the Openembedded-core mailing list