mesa: for host builds always build panfrost_compile

This commit is contained in:
Rudi Heitbaum 2025-05-11 23:24:15 +00:00
parent f239887292
commit be180fa505

View File

@ -24,7 +24,8 @@ PKG_MESON_OPTS_HOST="-Dglvnd=disabled \
-Dplatforms= \
-Dglx=disabled \
-Dvulkan-drivers= \
-Dshared-llvm=disabled"
-Dshared-llvm=disabled \
-Dtools=panfrost"
PKG_MESON_OPTS_TARGET="-Dgallium-drivers=${GALLIUM_DRIVERS// /,} \
-Dgallium-extra-hud=false \
@ -62,15 +63,9 @@ if listcontains "${GRAPHIC_DRIVERS}" "etnaviv"; then
PKG_DEPENDS_TARGET+=" pycparser:host"
fi
if listcontains "${GRAPHIC_DRIVERS}" "iris"; then
if listcontains "${GRAPHIC_DRIVERS}" "(iris|panfrost)"; then
PKG_DEPENDS_TARGET+=" mesa:host"
PKG_MESON_OPTS_TARGET+=" -Dmesa-clc=system"
fi
if listcontains "${GRAPHIC_DRIVERS}" "panfrost"; then
PKG_DEPENDS_TARGET+=" mesa:host"
PKG_MESON_OPTS_HOST+=" -Dtools=panfrost"
PKG_MESON_OPTS_TARGET+=" -Dprecomp-compiler=system -Dmesa-clc=system"
PKG_MESON_OPTS_TARGET+=" -Dmesa-clc=system -Dprecomp-compiler=system"
fi
if listcontains "${GRAPHIC_DRIVERS}" "(nvidia|nvidia-ng)" ||
@ -124,11 +119,8 @@ else
fi
makeinstall_host() {
mkdir -p "${TOOLCHAIN}/bin"
cp -a src/compiler/clc/mesa_clc "${TOOLCHAIN}/bin"
cp -a src/compiler/spirv/vtn_bindgen2 "${TOOLCHAIN}/bin"
host_files="src/compiler/clc/mesa_clc src/compiler/spirv/vtn_bindgen2 src/panfrost/clc/panfrost_compile"
if listcontains "${GRAPHIC_DRIVERS}" "panfrost"; then
cp -a src/panfrost/clc/panfrost_compile "${TOOLCHAIN}/bin"
fi
mkdir -p "${TOOLCHAIN}/bin"
cp -a ${host_files} "${TOOLCHAIN}/bin"
}