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:
qemuarmqemuarm64qemux86-64beaglebone-yoctoraspberrypi-armv7raspberrypi-armv8
Others will likely also work, but have not been tested.
git clone https://github.com/swift-embedded-linux/meta-swift-examples.git --recurse-submodulesIt is recommended to build and run the included Docker container for a working environment for building Yocto:
./build-docker.sh
./run-docker.shBuild the core-image-minimal for the default architecture (qemuarm):
./build.shYou may also customize the ./build.sh invocation by adding MACHINE= and/or EXTRA_IMAGE_INSTALL=:
MACHINE=beaglebone-yocto EXTRA_IMAGE_INSTALL="openssh" ./build.shBuilds 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.expIf you built for a different machine, prefix the command with MACHINE= like this:
MACHINE=beaglebone-yocto ./build.shStart runner and trigger job via Github API: