From: Denys Dmytriyenko Date: Tue, 28 Feb 2023 01:34:07 +0000 (+0000) Subject: python3-cantools: make bbappend changes conditional X-Git-Tag: 15.91.0~57 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=AGL%2Fmeta-agl-demo.git;a=commitdiff_plain;h=321be58ab8a59195bf8557175cb7f4698e1144a6 python3-cantools: make bbappend changes conditional Make bbappend changing RDEPENDS variable conditional on "agldemo" AGL_FEATURES flag. This resolved yocto-check-layer errors: INFO: test_signatures (common.CommonCheckLayer) INFO: ... FAIL AssertionError: Adding layer meta-agl-demo changed signatures, basehash changed Bug-AGL: SPEC-4685 Change-Id: I617a09bfaccdd0e69e064bec4ea749e08f2e1d74 Signed-off-by: Denys Dmytriyenko --- diff --git a/recipes-devtools/python/python3-cantools_37.0.7.bbappend b/recipes-devtools/python/python3-cantools_37.0.7.bbappend index a4c6aa3ab..17531c730 100644 --- a/recipes-devtools/python/python3-cantools_37.0.7.bbappend +++ b/recipes-devtools/python/python3-cantools_37.0.7.bbappend @@ -1,3 +1 @@ -RDEPENDS:${PN} += "\ - python3-argparse-addons \ -" +require ${@bb.utils.contains('AGL_FEATURES', 'agldemo', 'python3-cantools_agldemo.inc', '', d)} diff --git a/recipes-devtools/python/python3-cantools_agldemo.inc b/recipes-devtools/python/python3-cantools_agldemo.inc new file mode 100644 index 000000000..a4c6aa3ab --- /dev/null +++ b/recipes-devtools/python/python3-cantools_agldemo.inc @@ -0,0 +1,3 @@ +RDEPENDS:${PN} += "\ + python3-argparse-addons \ +"