From 321be58ab8a59195bf8557175cb7f4698e1144a6 Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 28 Feb 2023 01:34:07 +0000 Subject: 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 --- recipes-devtools/python/python3-cantools_37.0.7.bbappend | 4 +--- recipes-devtools/python/python3-cantools_agldemo.inc | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 recipes-devtools/python/python3-cantools_agldemo.inc 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 \ +" -- cgit 1.2.3-korg