meta-erlang / kas-meta-erlang

canned kas config files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kas setup for meta-erlang

kas is a setup tool for bitbake based projects. This repository has a set of kas configuration files aim to help meta-erlang tests.

In order to use, kas tool need to be installed on your system. Check the kas user guide.

The following canned kas files exist in order to test the combinations between Yocto Project, Erlang and Elixir versions:

default configuration:

  • base

releases:

  • master
  • mickledore
  • langdale
  • dunfell
  • gatesgarth
  • hardknott
  • honister

targets:

  • meta-erlang
  • meta-erlang-sdk

erlang versions:

  • erlang-maint-24
  • erlang-maint-23
  • erlang-maint-22
  • erlang-maint-21
  • erlang-maint-20

elixir versions:

  • elixir-1.12
  • elixir-1.11
  • elixir-1.10
  • elixir-1.9

machines:

  • qemux86
  • qemux86-64
  • qemuarm
  • qemuarm64

So, to use the above files the usual kas command line could be like one of the following:

KAS_WORK_DIR=build/honister KAS_BUILD_DIR=honister ~/work/opensource/kas/kas-container shell  erlang-maint-24.yml:elixir-1.12.yml:honister.yml:meta-erlang.yml:base.yml:qemuarm64.yml:local-dev.yml

Where, the environment variable KAS_WORK_DIR points to a local directory where kas will clone the repositories and build.

Using kas and the canned configuration files, we can cover most of the combinations provide by meta-erlang layer.

It is also possible to call kas-container and run the YP/OE inside docker containers, like that:

KAS_WORK_DIR=build KAS_BUILD_DIR=honister kas-container shell erlang-maint-24.yml:elixir-1.12.yml:honister.yml:meta-erlang.yml:base.yml:qemuarm64.yml:local-dev.yml:local-image-install.yml

KAS_WORK_DIR=build KAS_BUILD_DIR=hardknott kas-container shell erlang-maint-24.yml:elixir-1.12.yml:hardknott.yml:meta-erlang.yml:base.yml:qemuarm64.yml:local-dev.yml:local-image-install.yml

KAS_WORK_DIR=build KAS_BUILD_DIR=dunfell kas-container shell erlang-maint-24.yml:elixir-1.12.yml:dunfell.yml:meta-erlang.yml:base.yml:qemuarm64.yml:local-dev.yml:local-image-install.yml

development

When developing meta-erlang, an additional file is created locally to hold all local configuration:

header:
  version: 10
repos:
  meta-erlang:
    path: /home/joaohf/work/opensource/meta-erlang
  poky:
    path: /home/joaohf/work/opensource/poky
    layers:
      meta:
      meta-poky:
      meta-yocto-bsp:

local_conf_header:
  local: |
    DL_DIR = "/home/joaohf/work/yocto/downloads"
    SSTATE_DIR = "/home/joaohf/work/yocto/sstate-cache"
    CONNECTIVITY_CHECK_URIS = "https://www.google.com/"

A typical kas command line for development purposes is like this:

KAS_WORK_DIR=$(pwd)/devel kas shell local-dev.yml:meta-erlang.yml:base.yml:qemuarm.yml

About

canned kas config files

License:Other


Languages

Language:Makefile 100.0%