Skip to content

EvgeniyRub/meta-aos-vm

 
 

Repository files navigation

meta-aos-vm

Build VM

Requirements

  1. Ubuntu 18.0+ or any other Linux distribution which is supported by Poky/OE
  2. Development packages for Yocto. Refer to [Yocto manual] (https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html#build-host-packages).
  3. 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 your PATH environment variable includes ${HOME}/.local/bin.
  4. Ninja build system: sudo apt install ninja-build on Ubuntu

Fetching

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

Building

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.

Launch VM

sudo yocto/meta-aos-vm/doc/run_aos_vm.sh image/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 51.9%
  • BitBake 44.3%
  • Shell 3.2%
  • C++ 0.6%