We are using the Yocto Project as a build system.
We are using set of the publicly available layers, but also our custom layer
meta-rte
, which is described there.
The most important repository, which defines a release of the RTE Yocto BSP
is the repository where you currently are - meta-rte
repository. Tags in this repository correspond to the releases of the whole
RTE Yocto BSP
. The content (meta layers and their revisions) of given
RTE Yocto BSP
release is defined by the
kas file.
Description of kas file add project configuration can be found
here.
Prerequisites for the host PC to run the RTE Yocto BSP
.
Minimal recommended hardware is:
- 4 core CPU,
- 8GB memory,
- 100G storage.
- Linux distribution with Docker installed
- kas installed. The preferred way is to use it inside container, via the kas-docker script. Check meta-rte prerequisites for more details.
Given release of the RTE Yocto BSP
can be set up by checkout to proper tag
in meta-rte
repository.
mkdir rte-sdk
cd rte-sdk
git clone [email protected]:3mdeb/rte/meta-rte.git
kas-docker --ssh-dir ~/ssh-keys build meta-rte/kas.yml
It will clone layers defined in kas file
, set up everything and build
recipes defined in target
section in kas file. After the RTE Yocto BSP
has
been set up, the rte-sdk
content can look like:
rte-sdk
├── build
├── meta-openembedded
├── meta-rte
├── meta-sunxi
├── meta-swupdate
└── poky
build
directory contains a set of sub-directories with configuration data
(conf
directory) and build results (tmp
directory). Output files (e.g.
built images) can be found in build/tmp/deploy/images/orange-pi-zero
.
A recipe is a set of metadata to build given component. A recipe can build be used to build a small package, Linux kernel, or even the whole image.
Alternatively, you can invoke usual bitbake steps manually, e.g.:
SHELL=bash kas-docker --ssh-dir ~/.ssh/ssh-keys shell meta-rte/kas.yml -c 'bitbake core-image-minimal-swu'
When bash is your default shell, you don't have to set SHELL=bash
like it was
shown above.
Once you are familiar with the RTE Yocto - Development process description
,
you can continue with the: