- Ubuntu 18.0+ or any other Linux distribution which is supported by Poky/OE
- Development packages for Yocto. Refer to [Yocto manual] (https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html#build-host-packages).
- You need
Moulin
of version 0.11 or newer installed in your PC. Recommended way is to install it for your user only:pip3 install --user git+https://github.com/xen-troops/moulin
. Make sure that yourPATH
environment variable includes${HOME}/.local/bin
. - Ninja build system:
sudo apt install ninja-build
on Ubuntu
You can fetch/clone this whole repository, but you actually only need one file from it: aos-vm.yaml
.
During the build moulin
will fetch this repository again into yocto/
directory. So, to reduce possible confuse,
we recommend to download only aos-vm.yaml
:
# curl -O https://raw.githubusercontent.com/aoscloud/meta-aos-vm/main/aos-vm.yaml
Moulin is used to generate Ninja build file: aos-vm.yaml. This project provides number of additional parameters. You can check them with
--help-config` command line option:
moulin aos-vm.yaml --help-config
usage: moulin aos-vm.yaml [--NODE1 {no,yes}] [--NODE2 {no,yes}] [--VIS_DATA_PROVIDER {renesassimulator,telemetryemulator}]
Config file description: Aos virtual development machine
options:
--NODE1 {no,yes} builds additional node 1
--NODE2 {no,yes} builds additional node 2
--VIS_DATA_PROVIDER {renesassimulator,telemetryemulator}
specifies plugin for VIS automotive data
By default the main node and one additional node are built. To add second additional node, --NODE2=yes
option shall
be used. To build only one main node, use the following options: --NODE1=no --NODE2=no
.
Moulin will generate build.ninja file. After that run ninja
to build the images. This will take some time and disk
space as it builds images for each VM dev node.
sudo yocto/meta-aos-vm/doc/run_aos_vm.sh image/