Skip to content
Snippets Groups Projects
Verified Commit f64a9420 authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

Align ONIRO_LAYERS_CONF_VERSION/ONIRO_REQUIRED_LAYERS_CONF_VERSION


We define the initial value for these variables as being 1. We also need
to set a default value for ONIRO_LAYERS_CONF_VERSION because the check
will not be triggered when ONIRO_LAYERS_CONF_VERSION is not defined
(builds before this check is introduced).

Finally, we drop POKY_BBLAYERS_CONF_VERSION as it is  an artefact from
when the project was using the poky distro.

Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent 0738ecd3
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,10 @@
#
# SPDX-License-Identifier: Apache-2.0
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
# Bump this each time bblayers.conf.sample changes incompatibly. For example,
# when integrating new layers. It needs to be in sync with
# ONIRO_REQUIRED_LAYERS_CONF_VERSION for associated sanity check to pass.
ONIRO_LAYERS_CONF_VERSION = "1"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
......
......@@ -15,3 +15,13 @@ PREFERRED_PROVIDER_virtual/java-initial-native ?= "cacao-initial-native"
PREFERRED_PROVIDER_virtual/java-native ?= "cacao-native"
BB_DANGLINGAPPENDS_WARNONLY:forcevariable = "0"
# Bump this each time bblayers.conf.sample changes incompatibly. For example,
# when integrating new layers.
ONIRO_REQUIRED_LAYERS_CONF_VERSION = "1"
# oe-core's sanity check sanity_check_conffiles function only runs the
# functions in BBLAYERS_CONF_UPDATE_FUNCS when the associated variable is not
# None. Making sure this variable has a default value, we force running the
# check even when ONIRO_LAYERS_CONF_VERSION is not defined - providing the
# relevant error message.
ONIRO_LAYERS_CONF_VERSION ??= "-1"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment