panfrost: build panfrost_compile for -Dtools=panfrost

This allows building tools for cross-compiling without building gallium
or vulkan drivers unnecessarily.

Backport-to: 25.1
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Janne Grunau <j@jannau.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34693>
This commit is contained in:
Janne Grunau 2025-04-12 13:26:52 +02:00 committed by Marge Bot
parent a228d715b6
commit 674c96ad0a
2 changed files with 6 additions and 3 deletions

View file

@ -60,8 +60,8 @@ LLVM is required by Panfrost's compilers at build time.
In case of cross compilation without LLVM,
you can build and install the required tools on the host (with LLVM installed) with
``meson . build-host/ -Dvulkan-drivers=panfrost -Dgallium-drivers=panfrost
-Dmesa-clc=enabled -Dinstall-mesa-clc=true -Dprecomp-compiler=enabled -Dinstall-precomp-compiler=true``
``meson . build-host/ -Dtools=panfrost -Dmesa-clc=enabled -Dinstall-mesa-clc=true
-Dprecomp-compiler=enabled -Dinstall-precomp-compiler=true``
and then use ``-Dmesa-clc=system -Dprecomp-compiler=system`` on the cross compile side.
For general information on building Mesa, read :doc:`the install documentation

View file

@ -15,9 +15,12 @@ subdir('util')
subdir('midgard')
subdir('compiler')
if with_gallium_panfrost or with_panfrost_vk
if with_gallium_panfrost or with_panfrost_vk or with_tools.contains('panfrost')
subdir('lib')
subdir('clc')
endif
if with_gallium_panfrost or with_panfrost_vk
subdir('libpan')
subdir('perf')
endif