added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
# The goal of this class are to check if the layers are compatible with OpenSTLinux version.
# The verification are based on ST_OSTL_COMPATIBILTY_VERSION variable defined on layer.conf
def check_sanity_ostl(data):
ref_layer = "st-openstlinux"
ref_version = data.getVar("ST_OSTL_COMPATIBILITY_VERSION_%s" % ref_layer, None)
#bb.warn("OSTL: reference version: %s" % ref_version)
layerlist = set((data.getVar("BBFILE_COLLECTIONS") or "").split())
for layername in layerlist:
versions = data.getVar("ST_OSTL_COMPATIBILITY_VERSION_%s" % layername)
if versions is None:
versions = data.getVar("ST_OSTL_COMPATIBILTY_VERSION_%s" % layername)
if versions is not None:
if not ref_version in versions:
raise_sanity_error("OSTL: layer %s (ver = %s) are not compatible with OpenSTlinux (Version = %s)" % (layername, versions, ref_version), data)
os._exit(1)
addhandler check_sanity_ostl_version_eventhandler
check_sanity_ostl_version_eventhandler[eventmask] = "bb.event.SanityCheck"
python check_sanity_ostl_version_eventhandler() {
check_sanity_ostl(e.data)
}