Wrap bbappends in a
cover Wrap bbappends in a
We are moving to make the meta-arago layers Yocto Project Compatible.
https://www.yoctoproject.org/development/yocto-project-compatible-layers/
We have been cleaning up the layer according to the yocto-check-layer tool. This series address the idea that simply adding a layer into a build (but not referencing anything from that layer), should not change the builds in any way. The main source for violating this check is having a "naked" bbappend file that just blindly makes changes to a recipe from another layer.
To address this we are wrapping our bbappends behind a guard. We move the contents of the bbappend into a .inc file, and change the bbappend to only load that .inc if we are building something related to the layer. In some cases is that is basing it off of building Arago as the distro, in others it is based on if we are build a TI SOC from meta-ti.
Ryan Eatmon (10):
irqbalance: Wrap the bbappend in a compliant manner
pm-qa: Wrap the bbappend in a compliant manner
piglit: Wrap the bbappend in a compliant manner
mtd-utils: Wrap the bbappend in a compliant manner
v4l-utils: Wrap the bbappend in a compliant manner gstreamer1.0-plugins-good: Wrap the bbappend in a compliant manner
wayland-protocols: Wrap the bbappend in a compliant manner
glfw: Wrap the bbappend in a compliant manner
open62541: Wrap the bbappend in a compliant manner
open62541: Fix Upstream-Status typo in patch
.../{pm-qa_%.bbappend => pm-qa-arago.inc} | 5 +-
.../recipes-devtools/pm-qa/pm-qa_%.bbappend | 10 ++--
...ance_git.bbappend => irqbalance-arago.inc} | 0
.../irqbalance/irqbalance_git.bbappend | 8 ++--
...en62541_%.bbappend => open62541-arago.inc} | 8 ++--
...Lists-do-not-install-git-directories.patch | 2 +-
.../open62541/open62541_%.bbappend | 42 ++---------------
.../glfw/{glfw_%.bbappend => glfw-arago.inc} | 0
.../recipes-graphics/glfw/glfw_%.bbappend | 10 ++--
...%.bbappend => wayland-protocols-arago.inc} | 2 +-
.../wayland/wayland-protocols_%.bbappend | 15 ++----
... gstreamer1.0-plugins-good_1.24-arago.inc} | 2 +-
.../gstreamer1.0-plugins-good_1.24.%.bbappend | 12 ++---
...l-utils_%.bbappend => v4l-utils-arago.inc} | 2 +-
.../v4l2apps/v4l-utils_%.bbappend | 9 ++--
.../recipes-core/packagegroups/ti-test.bb | 5 +-
...{mtd-utils_%.bbappend => mtd-utils-ti.inc} | 0
.../recipes-devtools/mtd/mtd-utils_%.bbappend | 47 ++-----------------
.../{piglit_%.bbappend => piglit-ti.inc} | 0
.../recipes-graphics/piglit/piglit_%.bbappend | 32 ++-----------
20 files changed, 44 insertions(+), 167 deletions(-)
copy meta-arago-distro/recipes-devtools/pm-qa/{pm-qa_%.bbappend => pm-qa-arago.inc} (62%)
copy meta-arago-distro/recipes-extended/irqbalance/{irqbalance_git.bbappend => irqbalance-arago.inc} (100%)
copy meta-arago-extras/recipes-connectivity/open62541/{open62541_%.bbappend => open62541-arago.inc} (83%)
copy meta-arago-extras/recipes-graphics/glfw/{glfw_%.bbappend => glfw-arago.inc} (100%)
copy meta-arago-extras/recipes-graphics/wayland/{wayland-protocols_%.bbappend => wayland-protocols-arago.inc} (85%)
copy meta-arago-extras/recipes-multimedia/gstreamer/{gstreamer1.0-plugins-good_1.24.%.bbappend => gstreamer1.0-plugins-good_1.24-arago.inc} (83%)
copy meta-arago-extras/recipes-multimedia/v4l2apps/{v4l-utils_%.bbappend => v4l-utils-arago.inc} (69%)
copy meta-arago-test/recipes-devtools/mtd/{mtd-utils_%.bbappend => mtd-utils-ti.inc} (100%)
copy meta-arago-test/recipes-graphics/piglit/{piglit_%.bbappend => piglit-ti.inc} (100%)Signature · 1 line
2.17.1
PATCH 1/10 irqbalance: Wrap the bbappend in a compliant manner
Wrap the bbappend in a yocto-check-layer compliant manner so that only if you are building this recipe under meta-arago-distro with the arago DISTRO_OVERRIDE would the bbappend apply.
---
.../{irqbalance_git.bbappend => irqbalance-arago.inc} | 0
.../recipes-extended/irqbalance/irqbalance_git.bbappend | 8 +++++---
2 files changed, 5 insertions(+), 3 deletions(-)
copy meta-arago-distro/recipes-extended/irqbalance/{irqbalance_git.bbappend => irqbalance-arago.inc} (100%)meta-arago-distro/recipes-extended/irqbalance/irqbalance-arago.inc renamed from meta-arago-distro/recipes-extended/irqbalance/irqbalance_git.bbappend +0 -0
meta-arago-distro/recipes-extended/irqbalance/irqbalance_git.bbappend +5 -3
@@ -1,4 +1,6 @@ -SRCREV = "c24ed221e9e82faf1ad22de133c3c97a0117c5d7" -PV = "1.9.2+git" -PR:append = ".arago3" +IRQBALANCE_ARAGO = "" +IRQBALANCE_ARAGO:arago = "irqbalance-arago.inc" + +require ${IRQBALANCE_ARAGO} +
Signature · 1 line
2.17.1
PATCH 2/10 pm-qa: Wrap the bbappend in a compliant manner
In reply to Ryan EatmonWrap the bbappend in a yocto-check-layer compliant manner so that only if you are building this recipe under meta-arago-distro with the arago DISTRO_OVERRIDE would the bbappend apply.
---
.../pm-qa/{pm-qa_%.bbappend => pm-qa-arago.inc} | 5 +++--
.../recipes-devtools/pm-qa/pm-qa_%.bbappend | 10 +++-------
2 files changed, 6 insertions(+), 9 deletions(-)
copy meta-arago-distro/recipes-devtools/pm-qa/{pm-qa_%.bbappend => pm-qa-arago.inc} (62%)meta-arago-distro/recipes-devtools/pm-qa/pm-qa-arago.inc renamed from meta-arago-distro/recipes-devtools/pm-qa/pm-qa_%.bbappend +3 -2
@@ -1,10 +1,11 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +FILESEXTRAPATHS:prepend := "${THISDIR}/pm-qa:" # Bump to 0.5.0+ SRCREV = "e66966ef6a08cd3b491ee1df5c6c5d33baaf1f1c" SRC_URI += " \ file://0001-Return-non-zero-value-on-test-failure.patch \ - file://0002-cpuidle-Avoid-relative-paths.patch" + file://0002-cpuidle-Avoid-relative-paths.patch \ +" PR:append = ".arago0"
meta-arago-distro/recipes-devtools/pm-qa/pm-qa_%.bbappend +3 -7
@@ -1,10 +1,6 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" -# Bump to 0.5.0+ -SRCREV = "e66966ef6a08cd3b491ee1df5c6c5d33baaf1f1c" +PM_QA_ARAGO = "" +PM_QA_ARAGO:arago = "pm-qa-arago.inc" -SRC_URI += " \ - file://0001-Return-non-zero-value-on-test-failure.patch \ - file://0002-cpuidle-Avoid-relative-paths.patch" +require ${PM_QA_ARAGO} -PR:append = ".arago0"
Signature · 1 line
2.17.1
PATCH 3/10 piglit: Wrap the bbappend in a compliant manner
In reply to Ryan EatmonWrap the bbappend in a yocto-check-layer compliant manner so that only if you are building this recipe under meta-ti-bsp with ti-soc in the MACHINE_OVERRIDES would the bbappend apply.
---
.../{piglit_%.bbappend => piglit-ti.inc} | 0
.../recipes-graphics/piglit/piglit_%.bbappend | 32 ++-----------------
2 files changed, 3 insertions(+), 29 deletions(-)
copy meta-arago-test/recipes-graphics/piglit/{piglit_%.bbappend => piglit-ti.inc} (100%)meta-arago-test/recipes-graphics/piglit/piglit-ti.inc renamed from meta-arago-test/recipes-graphics/piglit/piglit_%.bbappend +0 -0
meta-arago-test/recipes-graphics/piglit/piglit_%.bbappend +3 -29
@@ -1,30 +1,4 @@ -# add a config to point piglit at the default install location for deqp tests -# if they are selected +PIGLIT_TI = "" +PIGLIT_TI:ti-soc = "piglit-ti.inc" -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" - -PACKAGECONFIG[deqp-gles] = ",,,opengl-es-cts" -PACKAGECONFIG[deqp-vk] = ",,,vulkan-cts" - -do_install:append() { - if ${@bb.utils.contains('PACKAGECONFIG', 'deqp-gles', 'true', 'false', d)}; then - printf "%s\n" \ - "[deqp-egl]" \ - "bin=/usr/lib/opengl-es-cts/deqp-egl" \ - "[deqp-gles2]" \ - "bin=/usr/lib/opengl-es-cts/deqp-gles2" \ - "[deqp-gles3]" \ - "bin=/usr/lib/opengl-es-cts/deqp-gles3" \ - "[deqp-gles31]" \ - "bin=/usr/lib/opengl-es-cts/deqp-gles31" \ - >> ${D}/${libdir}/piglit/piglit.conf - fi - if ${@bb.utils.contains('PACKAGECONFIG', 'deqp-vk', 'true', 'false', d)}; then - printf "%s\n" \ - "[deqp-vk]" \ - "bin=/usr/lib/vulkan-cts/deqp-vk" \ - "[deqp-vksc]" \ - "bin=/usr/lib/vulkan-cts/deqp-vksc" \ - >> ${D}/${libdir}/piglit/piglit.conf - fi -} +require ${PIGLIT_TI}
Signature · 1 line
2.17.1
PATCH 4/10 mtd-utils: Wrap the bbappend in a compliant manner
In reply to Ryan EatmonWrap the bbappend in a yocto-check-layer compliant manner so that only if you are building this recipe under meta-ti-bsp with ti-soc in the MACHINE_OVERRIDES would the bbappend apply.
---
.../recipes-core/packagegroups/ti-test.bb | 5 +-
...{mtd-utils_%.bbappend => mtd-utils-ti.inc} | 0
.../recipes-devtools/mtd/mtd-utils_%.bbappend | 47 ++-----------------
3 files changed, 7 insertions(+), 45 deletions(-)
copy meta-arago-test/recipes-devtools/mtd/{mtd-utils_%.bbappend => mtd-utils-ti.inc} (100%)meta-arago-test/recipes-core/packagegroups/ti-test.bb +4 -1
@@ -38,7 +38,6 @@ TI_TEST_BASE = "\ mstpd \ mtd-utils \ mtd-utils-ubifs \ - mtd-utils-ubifs-tests \ nbench-byte \ netperf \ openntpd \
@@ -59,6 +58,10 @@ TI_TEST_BASE = "\ yavta \ " +TI_TEST_BASE:ti-soc:append = " \ + mtd-utils-ubifs-tests \ +" + TI_TEST_EXTRAS = " \ python3-pillow \ pytesseract \
meta-arago-test/recipes-devtools/mtd/mtd-utils-ti.inc renamed from meta-arago-test/recipes-devtools/mtd/mtd-utils_%.bbappend +0 -0
meta-arago-test/recipes-devtools/mtd/mtd-utils_%.bbappend +3 -44
48 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH 5/10 v4l-utils: Wrap the bbappend in a compliant manner
In reply to Ryan EatmonWrap the bbappend in a yocto-check-layer compliant manner so that only if you are building this recipe under meta-arago-distro with the arago DISTRO_OVERRIDE would the bbappend apply.
---
.../{v4l-utils_%.bbappend => v4l-utils-arago.inc} | 2 +-
.../recipes-multimedia/v4l2apps/v4l-utils_%.bbappend | 9 +++------
2 files changed, 4 insertions(+), 7 deletions(-)
copy meta-arago-extras/recipes-multimedia/v4l2apps/{v4l-utils_%.bbappend => v4l-utils-arago.inc} (69%)meta-arago-extras/recipes-multimedia/v4l2apps/v4l-utils-arago.inc renamed from meta-arago-extras/recipes-multimedia/v4l2apps/v4l-utils_%.bbappend +1 -1
@@ -1,4 +1,4 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +FILESEXTRAPATHS:prepend := "${THISDIR}/v4l-utils:" SRC_URI:append = " \ file://0001-media-ctl-add-support-for-RGBIr-bayer-formats.patch \
meta-arago-extras/recipes-multimedia/v4l2apps/v4l-utils_%.bbappend +3 -6
@@ -1,7 +1,4 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +V4L_UTILS_ARAGO = "" +V4L_UTILS_ARAGO:arago = "v4l-utils-arago.inc" -SRC_URI:append = " \ - file://0001-media-ctl-add-support-for-RGBIr-bayer-formats.patch \ -" - -PR:append = ".arago0" +require ${V4L_UTILS_ARAGO}
Signature · 1 line
2.17.1
PATCH 6/10 gstreamer1.0-plugins-good: Wrap the bbappend in a compliant manner
In reply to Ryan EatmonWrap the bbappend in a yocto-check-layer compliant manner so that only if you are building this recipe under meta-arago-distro with the arago DISTRO_OVERRIDE would the bbappend apply.
---
...pend => gstreamer1.0-plugins-good_1.24-arago.inc} | 2 +-
.../gstreamer1.0-plugins-good_1.24.%.bbappend | 12 +++---------
2 files changed, 4 insertions(+), 10 deletions(-)
copy meta-arago-extras/recipes-multimedia/gstreamer/{gstreamer1.0-plugins-good_1.24.%.bbappend => gstreamer1.0-plugins-good_1.24-arago.inc} (83%)meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.24-arago.inc renamed from meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.24.%.bbappend +1 -1
@@ -1,4 +1,4 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +FILESEXTRAPATHS:prepend := "${THISDIR}/gstreamer1.0-plugins-good:" SRC_URI:append = " \ file://0002-Adding-support-for-bayer-formats-with-IR-component.patch \
meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.24.%.bbappend +3 -9
@@ -1,10 +1,4 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +GSTREAMER1p0_PLUGINS_GOOD_1p24_ARAGO = "" +GSTREAMER1p0_PLUGINS_GOOD_1p24_ARAGO:arago = "gstreamer1.0-plugins-good_1.24-arago.inc" -SRC_URI:append = " \ - file://0002-Adding-support-for-bayer-formats-with-IR-component.patch \ - file://0003-v4l2-Changes-for-DMA-Buf-import-j721s2.patch \ - file://0004-v4l2-Give-preference-to-contiguous-format-if-support.patch \ - file://0005-HACK-gstv4l2object-Increase-min-buffers-for-CSI-capt.patch \ -" - -PR:append = ".arago0" +require ${GSTREAMER1p0_PLUGINS_GOOD_1p24_ARAGO}
Signature · 1 line
2.17.1
PATCH 7/10 wayland-protocols: Wrap the bbappend in a compliant manner
In reply to Ryan EatmonWrap the bbappend in a yocto-check-layer compliant manner so that only if you are building this recipe under meta-arago-distro with the arago DISTRO_OVERRIDE would the bbappend apply.
---
...ols_%.bbappend => wayland-protocols-arago.inc} | 2 +-
.../wayland/wayland-protocols_%.bbappend | 15 +++------------
2 files changed, 4 insertions(+), 13 deletions(-)
copy meta-arago-extras/recipes-graphics/wayland/{wayland-protocols_%.bbappend => wayland-protocols-arago.inc} (85%)meta-arago-extras/recipes-graphics/wayland/wayland-protocols-arago.inc renamed from meta-arago-extras/recipes-graphics/wayland/wayland-protocols_%.bbappend +1 -1
@@ -1,4 +1,4 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +FILESEXTRAPATHS:prepend := "${THISDIR}/wayland-protocols:" PR:append = ".arago2"
meta-arago-extras/recipes-graphics/wayland/wayland-protocols_%.bbappend +3 -12
@@ -1,13 +1,4 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +WAYLAND_PROTOCOLS_ARAGO = "" +WAYLAND_PROTOCOLS_ARAGO:arago = "wayland-protocols-arago.inc" -PR:append = ".arago2" - -SRC_URI += " \ - file://0001-wayland-drm-Add-wayland-drm-protocol-to-stable.patch \ - file://0002-wayland-drm-Update-to-version-2.patch \ -" - -do_install:append() { - install -d ${D}${datadir}/wayland-protocols/stable/wayland-drm - cp ${S}/stable/wayland-drm/wayland-drm.xml ${D}${datadir}/wayland-protocols/stable/wayland-drm/ -} +require ${WAYLAND_PROTOCOLS_ARAGO}
Signature · 1 line
2.17.1
PATCH 8/10 glfw: Wrap the bbappend in a compliant manner
In reply to Ryan EatmonWrap the bbappend in a yocto-check-layer compliant manner so that only if you are building this recipe under meta-arago-distro with the arago DISTRO_OVERRIDE would the bbappend apply.
---
.../glfw/{glfw_%.bbappend => glfw-arago.inc} | 0
.../recipes-graphics/glfw/glfw_%.bbappend | 10 +++-------
2 files changed, 3 insertions(+), 7 deletions(-)
copy meta-arago-extras/recipes-graphics/glfw/{glfw_%.bbappend => glfw-arago.inc} (100%)meta-arago-extras/recipes-graphics/glfw/glfw-arago.inc renamed from meta-arago-extras/recipes-graphics/glfw/glfw_%.bbappend +0 -0
meta-arago-extras/recipes-graphics/glfw/glfw_%.bbappend +3 -7
@@ -1,8 +1,4 @@ -# Add some wayland configuration options until meta-oe adds some good -# PACKAGECONFIGS +GLFW_ARAGO = "" +GLFW_ARAGO:arago = "glfw-arago.inc" -PR:append = ".arago1" - -PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland wayland-native wayland-protocols extra-cmake-modules libxkbcommon" - -PACKAGECONFIG += " wayland" +require ${GLFW_ARAGO}
Signature · 1 line
2.17.1
PATCH 9/10 open62541: Wrap the bbappend in a compliant manner
In reply to Ryan EatmonWrap the bbappend in a yocto-check-layer compliant manner so that only if you are building this recipe under meta-arago-distro with the arago DISTRO_OVERRIDE would the bbappend apply.
---
...en62541_%.bbappend => open62541-arago.inc} | 8 ++--
.../open62541/open62541_%.bbappend | 42 ++-----------------
2 files changed, 7 insertions(+), 43 deletions(-)
copy meta-arago-extras/recipes-connectivity/open62541/{open62541_%.bbappend => open62541-arago.inc} (83%)meta-arago-extras/recipes-connectivity/open62541/open62541-arago.inc renamed from meta-arago-extras/recipes-connectivity/open62541/open62541_%.bbappend +4 -4
@@ -1,7 +1,8 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/open62541:" -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" -SRC_URI:append = " file://0001-examples-client-allow-configurable-server.patch \ - file://0001-examples-Remove-sys-io.h.patch \ +SRC_URI:append = " \ + file://0001-examples-client-allow-configurable-server.patch \ + file://0001-examples-Remove-sys-io.h.patch \ " EXTRA_OECMAKE = "-DUA_BUILD_EXAMPLES=1"
@@ -37,4 +38,3 @@ ALLOW_EMPTY:${PN}-staticdev = "1" ALLOW_EMPTY:${PN}-tests = "1" BBCLASSEXTEND = "native nativesdk" -
meta-arago-extras/recipes-connectivity/open62541/open62541_%.bbappend +3 -39
43 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH 10/10 open62541: Fix Upstream-Status typo in patch
In reply to Ryan EatmonWe had a typo in the Upstream-Status for this patch.
--- .../0001-CMakeLists-do-not-install-git-directories.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-extras/recipes-connectivity/open62541/open62541/0001-CMakeLists-do-not-install-git-directories.patch +1 -1
@@ -5,7 +5,7 @@ Subject: [PATCH] CMakeLists: do not install git directories Signed-off-by: Jacob Stiffler <[email protected]> -Upstream-status: Pending +Upstream-Status: Pending --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+)
Signature · 1 line
2.17.1