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:
- scans the
bblayers.conf
looking for Seco layers (i.e. layers inmeta-seco
). - for each layer looks for files ending with
<whatever>-features.conf
. - 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 thelocal.conf
. - if a variable is defined both in
local.conf
and in the<whatever>-features.conf
files with the same value, remove it from thelocal.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]