From 761ff86d889dc0185e6885b054fda2c4ec9026d0 Mon Sep 17 00:00:00 2001 From: Sam Dolt Date: Mon, 13 Nov 2023 16:09:03 +0100 Subject: [PATCH] fix(coreos_metadata_scm.bbclass): fix function to work with OE Master Function to handle git were moved from the metadata_scm class to a python library in OE. This convert the coreos_metadata_scm class to use thoses function as the old one are not available anymore --- layers/meta-belden-coreos/classes/coreos_metadata_scm.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layers/meta-belden-coreos/classes/coreos_metadata_scm.bbclass b/layers/meta-belden-coreos/classes/coreos_metadata_scm.bbclass index 64eebbf..7698b98 100644 --- a/layers/meta-belden-coreos/classes/coreos_metadata_scm.bbclass +++ b/layers/meta-belden-coreos/classes/coreos_metadata_scm.bbclass @@ -9,11 +9,11 @@ def coreos_get_scmbasepath(d): def coreos_detect_revision(d): path = coreos_get_scmbasepath(d) - return base_get_metadata_git_revision(path, d) + return oe.buildcfg.get_metadata_git_revision(path) def coreos_detect_branch(d): path = coreos_get_scmbasepath(d) - return base_get_metadata_git_branch(path, d) + return oe.buildcfg.get_metadata_git_branch(path) COREOS_METADATA_BRANCH := "${@coreos_detect_branch(d)}" COREOS_METADATA_REVISION := "${@coreos_detect_revision(d)}"