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

Maxim Uvarov maxim.uvarov at linaro.org
Mon Jan 13 13:14:09 UTC 2020


Can this patch be applied without embedded test?

On Thu, 9 Jan 2020 at 14:47, Maxim Uvarov <maxim.uvarov at linaro.org> wrote:
>
> On Sun, 5 Jan 2020 at 17:52, Richard Purdie
> <richard.purdie at linuxfoundation.org> wrote:
> >
> > 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
> >
> I'm currently looking to zeus branch and it looks like test uses this file:
> openembedded-core/meta-selftest/./recipes-test/images/wic-image-minimal.wks
>
> I think it will be good to add test for --source bootimg-efi
> --sourceparams="loader=kernel".
> Do you want to change wic-image-minimal.wks? Or just put this file to
> openembedded-core/meta-selftest/wic/
> directory and somehow it will be tested?
>
> Maxim.


More information about the Openembedded-core mailing list