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
This commit is contained in:
Sam Dolt 2023-11-13 16:09:03 +01:00
parent 02d512b09f
commit 761ff86d88
1 changed files with 2 additions and 2 deletions

View File

@ -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)}"