Skip to content

Setup build environment for the Yocto Project with ansible

License

Notifications You must be signed in to change notification settings

crgwilson/ansible-role-yocto

Repository files navigation

Ansible role: Yocto

Molecule Test

Install all the necessary components for a build environment using the Yocto Project.

Variables

yocto root directory

The root of our yocto workspace. After setup you'll often want to source the oe-init-build-env script from "{{ yocto_root_directory }}/layers/poky/oe-init-build-env"

yocto_version

The default git ref we will be checking out after cloning poky and any other layers. Defaults to the dunfell tag as that is the latest official release.

yocto_layers_info

Nested dictionary containing info necessary to be able to clone other OpenEmbedded layers into our project. Each of these layers are required to provide a source_uri and version key, mapping to the target git repo, and the ref to clone respectively.

Comes populated with a handful of layers by default, but other layers may be provided as well.

yocto_layers

A list of OpenEmbedded layers to install using info found the the (above) yocto_layers_info variable. Any layer present in this list is expected to be available within yocto_layers_info with both a source_uri and a version.

Testing

Testing for this project is setup using Molecule & Docker. Unit tests can be run using the below command:

foo@bar:~$ molecule test --all

Dependencies

About

Setup build environment for the Yocto Project with ansible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages