Table of Contents

multiconfig

13 Building Images for Multiple Targets With Multiconfig

With default - no multiconfig - usage bitbake works with one config local.conf. It is possible to use bitbake parallel tasks to build more targets and machines at the same time. When bitbake target is prefixed with special mc:configname:target then bitbake looks for configname.conf instead of local.conf. Default local.conf is still avail as empty config mc::target.

Bitbake looks for additional configs in multiconfig directory. This directory can be located in 2 places:

Pros:

Cons:

Example usage:

invoke bitbake target with prefix:

bitbake mc:configname:target1 mc:configname:target2

the default config - local.conf is still available - as unnamed config:

bitbake mc::target1
myconfig.yml
---
header:
  version: 18

target:
  - mc:genio-510-sbc:core-image-minimal
  - mc:genio-700-sbc:core-image-minimal
  - mc:genio-700-evb:core-image-minimal
...

TMPDIR

myconfig.conf
DISTRO = "poky"
 
# rename TMPDIR with option to override it:
MY_TMP_APPEND ?= "-poky"
TMPDIR:append = "${MY_TMP_APPEND}"

or

local.conf
TMPDIR = "${TOPDIR}/tmp-${DISTRO}"

[PATCH] multiconfig: use diferent TMPDIR for each machine

path: root/meta-ti-bsp/conf/multiconfig/k3r5.conf

references

“Multiconfig Inception” by Joshua Watt:

Use BB multiconfig with kas: