From 82aa6fa828bf94ed1636916b4ad67fb678a3c7bf Mon Sep 17 00:00:00 2001 From: Christian Leithner Date: Wed, 3 Jun 2026 14:12:20 +0000 Subject: [PATCH 1/3] Shell compatibility for barton-matter Barton-matter heavily depends on bash syntax, but yocto will just invoke `sh` for shell scripts. This could be non-bash shells. This commit attempts to make barton-matter more compatibile with non-bash shells. Change-Id: Idbda24886b5709c066a358b13e54d98a0c419b46 --- .../barton-matter/barton-matter_1.5.1.0.bb | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/recipes-matter/barton-matter/barton-matter_1.5.1.0.bb b/recipes-matter/barton-matter/barton-matter_1.5.1.0.bb index 7aba987..abee604 100644 --- a/recipes-matter/barton-matter/barton-matter_1.5.1.0.bb +++ b/recipes-matter/barton-matter/barton-matter_1.5.1.0.bb @@ -31,7 +31,7 @@ SRC_URI:append = " file://0009-pigweed-upgrade-setuptools-for-yocto.patch;patchd S = "${WORKDIR}/git" B = "${WORKDIR}/build" -PR = "r0" +PR = "r1" DEPENDS:append = " \ curl-native \ @@ -122,6 +122,20 @@ do_init_submodules() { addtask do_init_submodules after do_unpack before do_patch +# Source a bash-only script (bootstrap.sh / activate.sh) in a bash subprocess +# and import all new/changed environment variables back into the current shell. +# Usage: _matter_source_bash_env