This repo provides a simple workspace to compile the meta-swift layer for a sizeable set of supported Yocto machines for the purpose of evalulation and testing.
The following machines are supported and have been tested:
qemuarm
qemuarm64
qemux86-64
beaglebone-yocto
raspberrypi-armv7
raspberrypi-armv8
Others will likely also work, but have not been tested.
git clone https://github.com/swift-embedded-linux/meta-swift-examples.git --recurse-submodules
It is recommended to build and run the included Docker container for a working environment for building Yocto:
./build-docker.sh
./run-docker.sh
Build the core-image-minimal
for the default architecture (qemuarm
):
./build.sh
You may also customize the ./build.sh invocation by adding MACHINE=
and/or EXTRA_IMAGE_INSTALL=
:
MACHINE=beaglebone-yocto EXTRA_IMAGE_INSTALL="openssh" ./build.sh
Builds will be found under poky/build-$MACHINE. Downloads and sstate-cache are shared between builds to keep disk size down as much as possible.
Execute hello-world
for the default qemuarm
machine. This is an easy way to confirm that the meta-swift build worked correctly:
./execute.exp
If you built for a different machine, prefix the command with MACHINE=
like this:
MACHINE=beaglebone-yocto ./build.sh
Start runner and trigger job via Github API: