[OE-core] [PATCH 1/2] baremetal-helloworld: Create recipe for baremetal examples on QEMU
Richard Purdie
richard.purdie at linuxfoundation.org
Mon Jan 27 10:13:18 UTC 2020
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
More information about the Openembedded-core
mailing list