Skip to content

Add flavours' features cross-check for local.conf

Add a check on the local.conf to double-check if the mandatory variables related to flavours' features have been configured correctly.

Each Seco layer that requires variables at specific values in order to work properly now need to have a file called "conf/-features.conf" storing those variables. At the very end of the creation of the build environment, the configurator:

  1. scans the bblayers.conf looking for Seco layers (i.e. layers in meta-seco).
  2. for each layer looks for files ending with <whatever>-features.conf.
  3. compares the variables in the local.conf and the <whatever>-features.conf files and:
  • if a variable is defined in the local.conf and not in the <whatever>-features.conf file, keep the variable in the local.conf.
  • if a variable is defined both in local.conf and in the <whatever>-features.conf files with the same value, remove it from the local.conf (and raise a warning).
  • if a variable is defined both in local.conf and in the <whatever>-features.conf files with a different value, stop the configurator and raise an error. This error tells the user that the configuration is not correct for the selected flavour.

Signed-off-by: default avatarNicola Sparnacci nicola.sparnacci@seco.com

VERSIONING Select one of the following version increments: Version bump type: [MINOR]

Merge request reports

Loading