mesa: allow use of mesa-reusable host tools

This commit is contained in:
Rudi Heitbaum 2025-05-17 05:44:18 +00:00
parent 5b2ceba7f2
commit 1c2dc44437
2 changed files with 8 additions and 1 deletions

View File

@ -278,3 +278,6 @@
# - mesa:host
# - save-local (saves a copy in sources/reusable/<package>
BUILD_REUSABLE=""
# should reusable host tools be used (yes / no)
USE_REUSABLE="no"

View File

@ -64,7 +64,11 @@ if listcontains "${GRAPHIC_DRIVERS}" "etnaviv"; then
fi
if listcontains "${GRAPHIC_DRIVERS}" "(iris|panfrost)"; then
PKG_DEPENDS_TARGET+=" mesa:host"
if [ "${USE_REUSABLE}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" mesa-reusable"
else
PKG_DEPENDS_TARGET+=" mesa:host"
fi
PKG_MESON_OPTS_TARGET+=" -Dmesa-clc=system -Dprecomp-compiler=system"
fi