poky/meta-skeleton
Alejandro Enedino Hernandez Samaniego 2534c1379c baremetal-helloworld: Create recipe for baremetal examples on QEMU
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 oe-init-buildenv

$ bitbake-layers add-layer ../meta-skeleton

# TCLIBC="baremetal" would work as well
$ echo "TCLIBC = \"newlib\"" >> ./conf/local.conf

$ echo "MACHINE = \"qemuarm64\"" >> ./conf/local.conf

$ bitbake baremetal-helloworld

$ 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!

(From OE-Core rev: b314e9a0923c8aa95a2f2c3f48d956206e9885a7)

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-05 12:00:34 +00:00
..
conf layer.conf: Update for zeus series 2019-10-08 20:47:34 +01:00
recipes-baremetal/baremetal-examples baremetal-helloworld: Create recipe for baremetal examples on QEMU 2020-02-05 12:00:34 +00:00
recipes-core/busybox meta-skeleton: rename busybox's bbappend file 2014-02-02 11:22:12 +00:00
recipes-kernel hello-mod_0.1.bb: add RPROVIDES 2018-04-07 11:44:50 +01:00
recipes-multilib/images core-image-multilib-example: Location of core-image-sato.bb changed 2013-03-20 17:26:16 +00:00
recipes-skeleton useradd-example: exclude from world 2017-01-09 13:39:11 +00:00