mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-16 06:17:51 +00:00
mesa-pvr: Fix llvm-config handling
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user