diff mbox series

[meta-ti,master] mesa-pvr: Fix llvm-config handling

Message ID 20260702020625.3004461-1-reatmon@ti.com
State New
Headers show
Series [meta-ti,master] mesa-pvr: Fix llvm-config handling | expand

Commit Message

Ryan Eatmon July 2, 2026, 2:06 a.m. UTC
A recent change in oe-core [1] for the mesa package introduced this
change to properly handle the llvm-config.  Since we have copied the
mesa.inc we now need to copy this change as well.

[1] https://git.openembedded.org/openembedded-core/commit/?id=8aace29b692a8f3902a675fb4c022c223ba49531

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 .../recipes-graphics/mesa/mesa-pvr-25.inc        | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Comments

PRC Automation July 2, 2026, 2:10 a.m. UTC | #1
meta-ti / na / 20260702020625.3004461-1-reatmon

PRC Results: FAIL

=========================================================
  check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
WARN - [meta-ti][master][PATCH] mesa-pvr: Fix llvm-config handling
    WARN: Commit message does not include file/recipe name: mesa-pvr: Fix llvm-config handling. (COMMIT-MESSAGE-2)
        patch
    
    For details on the above errors/warnings visit: https://lists.yoctoproject.org/g/meta-ti/wiki/40887



=========================================================
  apply-yocto-patch: PASS
=========================================================
master
=====================
Summary:
- Patch Series: [meta-ti][master][PATCH] mesa-pvr: Fix llvm-config handling
- Submitter: From: Ryan Eatmon <reatmon@ti.com>
- Date: Date: Wed, 1 Jul 2026 21:06:25 -0500
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: ab7cc89eab0e266307f51a45d0a446897690ecc6

Applied to:
- Repository: lcpd-prc-meta-ti
- Base Branch: master-wip
- Commit Author: Ryan Eatmon <reatmon@ti.com>
- Commit Subject: mesa-pvr: Fix llvm-config handling
- Commit SHA: e8e631a0897c65ed67e63b9b8c146a69d2d8cd85

Patches
----------------------------------------
All patches applied



=========================================================
  check-yocto-repo: FAIL
=========================================================
master
=====================
FAIL
    WARN: .bbappend files might need a guard to make them check-layer compliant. (GUARD-1)
        meta-ti-bsp/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
    
    For details on the above errors/warnings visit: https://lists.yoctoproject.org/g/meta-ti/wiki/40887
diff mbox series

Patch

diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-25.inc b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-25.inc
index 71e9895b..9c04fc57 100644
--- a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-25.inc
+++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-25.inc
@@ -41,6 +41,22 @@  ANY_OF_DISTRO_FEATURES = "opencl opengl vulkan"
 
 PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}"
 
+replace_llvm_config_path() {
+    if [ -f "${STAGING_BINDIR_CROSS}/llvm-config" ]; then
+        sed -i \
+            's#@LLVM_CONFIG_PATH@#${STAGING_BINDIR_NATIVE}/llvm-config#g' \
+            ${STAGING_BINDIR_CROSS}/llvm-config
+    fi
+}
+
+do_configure:prepend:class-target() {
+    replace_llvm_config_path
+}
+
+do_configure:prepend:class-nativesdk() {
+    replace_llvm_config_path
+}
+
 # set the MESA_BUILD_TYPE to either 'release' (default) or 'debug'
 # by default the upstream mesa sources build a debug release
 # here we assume the user will want a release build by default