[OE-core] [PATCH 1/2] baremetal-helloworld: Create recipe for baremetal examples on QEMU

Alejandro Enedino Hernandez Samaniego alejandro at enedino.org
Mon Jan 27 15:44:07 UTC 2020


On Mon, Jan 27, 2020, 2:13 AM Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:

> On Mon, 2020-01-27 at 02:00 -0800, Alejandro Enedino Hernandez Samaniego
> wrote:
> > Create HelloWorld examples that run on several of the QEMU architectures
> > supported by the build system.
> >
> > This recipe can be used by anyone to understand how baremetal
> applications
> > can be built using OpenEmbedded and how the wiring to set them up could
> be.
> >
> > This should also facilitate creating/extending the OE testing
> infrastructure
> > to allow baremetal applications or RTOSs to be tested in the same way
> that
> > Linux currently is.
> >
> > This can easily be extended to work on other MACHINES in the future.
> >
> > To run this example:
> >
> > # Source the oe environment as usual
> > $ source oe-init-buildenv
> >
> > # Set TCLIBC to either newlib or baremetal
> > $ echo "TCLIBC = \"newlib\"" >> ./conf/local.conf
> >
> > # Use one of the supported architectures (qemuarm64, qemuarm or
> qemuarmv5)
> > $ echo "MACHINE = \"qemuarm64\"" >> ./conf/local.conf
> >
> > # Build
> > $ bitbake baremetal-helloworld
> >
> > # Launch QEMU
> > $ runqemu
> >
> > runqemu - INFO - Running bitbake -e ...
> > runqemu - INFO - Continuing with the following parameters:
> > KERNEL: [tmp/deploy/images/qemuarm64/baremetal-helloworld-qemuarm64.bin]
> > MACHINE: [qemuarm64]
> > FSTYPE: [bin]
> > ROOTFS: [tmp/deploy/images/qemuarm64/baremetal-helloworld-qemuarm64.bin]
> > CONFFILE:
> [tmp/deploy/images/qemuarm64/baremetal-helloworld-qemuarm64.qemuboot.conf]
> >
> > Hello OpenEmbedded!
>
> Looks good.
>
> Should this be in meta-skeleton? That sublayer generally has our
> configuration example tests in as far as I can tell...
>
> Do you plan to add an oe-selftest for this?
>
> Cheers,
>
> Richard
>

Hey Richard,

I do, that's exactly the plan, I'm working on both oe-selftest and runtime
testing cases for this, I'm just doing it in chunks.

Cheers,

Alejandro


>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20200127/f03d084b/attachment.html>


More information about the Openembedded-core mailing list