diff mbox series

[meta-arago,master,11/26] cmake: Wrap the bbappend in a compliant manner

Message ID 20250320181047.18035-12-reatmon@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series Wrap bbappends in a compliant manner | expand

Commit Message

Ryan Eatmon March 20, 2025, 6:10 p.m. UTC
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.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 .../cmake/{cmake_%.bbappend => cmake-arago.inc}              | 2 +-
 meta-arago-distro/recipes-devtools/cmake/cmake_%.bbappend    | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
 copy meta-arago-distro/recipes-devtools/cmake/{cmake_%.bbappend => cmake-arago.inc} (59%)
diff mbox series

Patch

diff --git a/meta-arago-distro/recipes-devtools/cmake/cmake_%.bbappend b/meta-arago-distro/recipes-devtools/cmake/cmake-arago.inc
similarity index 59%
copy from meta-arago-distro/recipes-devtools/cmake/cmake_%.bbappend
copy to meta-arago-distro/recipes-devtools/cmake/cmake-arago.inc
index da36370f..73489874 100644
--- a/meta-arago-distro/recipes-devtools/cmake/cmake_%.bbappend
+++ b/meta-arago-distro/recipes-devtools/cmake/cmake-arago.inc
@@ -1,3 +1,3 @@ 
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+FILESEXTRAPATHS:prepend := "${THISDIR}/cmake:"
 
 FILES:${PN}-doc += "${datadir}/cmake-${CMAKE_MAJOR_VERSION}/Help/"
diff --git a/meta-arago-distro/recipes-devtools/cmake/cmake_%.bbappend b/meta-arago-distro/recipes-devtools/cmake/cmake_%.bbappend
index da36370f..2d3a43e8 100644
--- a/meta-arago-distro/recipes-devtools/cmake/cmake_%.bbappend
+++ b/meta-arago-distro/recipes-devtools/cmake/cmake_%.bbappend
@@ -1,3 +1,4 @@ 
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+CMAKE_ARAGO = ""
+CMAKE_ARAGO:arago = "cmake-arago.inc"
 
-FILES:${PN}-doc += "${datadir}/cmake-${CMAKE_MAJOR_VERSION}/Help/"
+require ${CMAKE_ARAGO}