<div dir="auto"><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 27, 2020, 2:13 AM Richard Purdie <<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 2020-01-27 at 02:00 -0800, Alejandro Enedino Hernandez Samaniego wrote:<br>
> Create HelloWorld examples that run on several of the QEMU architectures<br>
> supported by the build system.<br>
> <br>
> This recipe can be used by anyone to understand how baremetal applications<br>
> can be built using OpenEmbedded and how the wiring to set them up could be.<br>
> <br>
> This should also facilitate creating/extending the OE testing infrastructure<br>
> to allow baremetal applications or RTOSs to be tested in the same way that<br>
> Linux currently is.<br>
> <br>
> This can easily be extended to work on other MACHINES in the future.<br>
> <br>
> To run this example:<br>
> <br>
> # Source the oe environment as usual<br>
> $ source oe-init-buildenv<br>
> <br>
> # Set TCLIBC to either newlib or baremetal<br>
> $ echo "TCLIBC = \"newlib\"" >> ./conf/local.conf<br>
> <br>
> # Use one of the supported architectures (qemuarm64, qemuarm or qemuarmv5)<br>
> $ echo "MACHINE = \"qemuarm64\"" >> ./conf/local.conf<br>
> <br>
> # Build<br>
> $ bitbake baremetal-helloworld<br>
> <br>
> # Launch QEMU<br>
> $ runqemu<br>
> <br>
> runqemu - INFO - Running bitbake -e ...<br>
> runqemu - INFO - Continuing with the following parameters:<br>
> KERNEL: [tmp/deploy/images/qemuarm64/baremetal-helloworld-qemuarm64.bin]<br>
> MACHINE: [qemuarm64]<br>
> FSTYPE: [bin]<br>
> ROOTFS: [tmp/deploy/images/qemuarm64/baremetal-helloworld-qemuarm64.bin]<br>
> CONFFILE: [tmp/deploy/images/qemuarm64/baremetal-helloworld-qemuarm64.qemuboot.conf]<br>
> <br>
> Hello OpenEmbedded!<br>
<br>
Looks good.<br>
<br>
Should this be in meta-skeleton? That sublayer generally has our<br>
configuration example tests in as far as I can tell...<br>
<br>
Do you plan to add an oe-selftest for this?<br>
<br>
Cheers,<br>
<br>
Richard<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif">Hey Richard,</span><br style="font-family:sans-serif"></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">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.</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Cheers,</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Alejandro</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
</blockquote></div></div></div>