diff --git a/distributions/LibreELEC/options b/distributions/LibreELEC/options index dbf13ea55f..e1a4a708ae 100644 --- a/distributions/LibreELEC/options +++ b/distributions/LibreELEC/options @@ -278,3 +278,6 @@ # - mesa:host # - save-local (saves a copy in sources/reusable/ BUILD_REUSABLE="" + +# should reusable host tools be used (yes / no) + USE_REUSABLE="no" diff --git a/packages/graphics/mesa/package.mk b/packages/graphics/mesa/package.mk index acd5f15b21..2516a00e3b 100644 --- a/packages/graphics/mesa/package.mk +++ b/packages/graphics/mesa/package.mk @@ -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