[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
> > 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
> > can be built using OpenEmbedded and how the wiring to set them up could
> > This should also facilitate creating/extending the OE testing
> > to allow baremetal applications or RTOSs to be tested in the same way
> > 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
> > $ 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:
> > 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?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openembedded-core