oeqa selftest uki.py: add tests for uki.bbclass

Tests builds and boots qemu into uki binary with systemd and sysvinit.
Due to depedency to x86 specific ovmf UEFI firmware, tests
are specific to x86 curently. UEFI firmware for ARM can be generated
via qemuarm64-secureboot machine in meta-arm and similar tests
on qemu will pass.

(From OE-Core rev: 8a3cb17876dbcaf07696a4bcd454e2f9a444fb1b)

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mikko Rapeli
2024-10-23 15:08:34 +03:00
committed by Richard Purdie
parent 2f0ef8cd0e
commit 5fe59b3144
2 changed files with 145 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
bootloader --ptable gpt --timeout=5
part /boot --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --label boot --active --align 1024 --use-uuid --part-name="ESP" --part-type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B --fixed-size 512M
part / --source rootfs --fstype=ext4 --label root --align 1024 --exclude-path boot/