cni: add SRCREV_FORMAT

recipes that use multiple SCMs in the SRC_URI, must supply
SRCREV_FORMAT or SRCPV triggers an expansion error. While
this isn't fatal during the build, it can cause issues with
setscene (and possibly) other tasks failing, which then
leads to no sstate re-use, etc.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2021-10-19 23:18:11 -04:00
parent c85ca05fe9
commit 6990172643

View File

@ -16,6 +16,7 @@ SRC_URI = "\
git://github.com/containernetworking/cni.git;nobranch=1;name=cni \
git://github.com/containernetworking/plugins.git;nobranch=1;destsuffix=${S}/src/github.com/containernetworking/plugins;name=plugins \
"
SRCREV_FORMAT = "cni_plugins"
RPROVIDES_${PN} += "kubernetes-cni"
@ -71,4 +72,4 @@ INSANE_SKIP_${PN} += "ldflags already-stripped"
deltask compile_ptest_base
RDEPENDS_${PN} += " ca-certificates"
RDEPENDS_${PN} += " ca-certificates"