Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Devoogdt <thomas@devoogdt.com>
To: buildroot@buildroot.org
Cc: bernd@kuhls.net, romain.naour@gmail.com,
	thomas.devoogdt@barco.com, thomas.petazzoni@bootlin.com,
	thomas@devoogdt.com
Subject: [Buildroot] [PATCH v2 1/2] package/mesa3d: explicitly enable llvm for host-mesa3d
Date: Sat,  3 Jan 2026 09:40:01 +0100	[thread overview]
Message-ID: <20260103084002.2045193-1-thomas@devoogdt.com> (raw)
In-Reply-To: <20251226101445.2b29f439@windsurf>

LLVM is already implicitly enabled for host-mesa3d when
BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER is selected. This blind
option is automatically enabled when LLVM is required by drivers such
as intel-iris, panfrost, imagination, or intel-vulkan.

The BR2_PACKAGE_MESA3D_LLVM option also independently selects host-llvm,
but this change makes the dependency more explicit for host-mesa3d
builds.

Note that disabling LLVM is not possible for host-mesa3d, as the build
will fail with:
../../../br-test-pkg/bootlin-armv5-uclibc/build/host-mesa3d-25.3.2/meson.build:847:3: ERROR: Feature llvm cannot be disabled: CLC requires LLVM

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
---
v2: Explicitly added the llvm flag to host-mesa3d configuration,
    see https://lore.kernel.org/buildroot/20251226101445.2b29f439@windsurf/.
    @bkuhls, I can see that CLC support is needed to compile the intel-iris
    driver, (commit 317260f "package/{mesa3d, mesa3d-headers}: bump version to
    25.0.6") but can you elaborate why this is required for the generic
    host-mesa3d? Perhaps some llvm related logic should be added for the host.
---
 package/mesa3d/mesa3d.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index e41bf68d8ec..09b098628ab 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -297,6 +297,7 @@ HOST_MESA3D_CONF_OPTS = \
 	-Dgallium-drivers=$(subst $(space),$(comma),$(HOST_MESA3D_GALLIUM_DRIVERS-y)) \
 	-Dtools=$(subst $(space),$(comma),$(HOST_MESA3D_TOOLS)) \
 	-Dinstall-mesa-clc=true \
+	-Dllvm=enabled \
 	-Dmesa-clc=enabled \
 	-Dplatforms= \
 	-Dprecomp-compiler=enabled \
@@ -306,6 +307,7 @@ HOST_MESA3D_CONF_OPTS = \
 HOST_MESA3D_DEPENDENCIES = \
 	host-libclc \
 	host-libdrm \
+	host-llvm \
 	host-python-mako \
 	host-python-pyyaml \
 	host-spirv-tools
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2026-01-03  8:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-18 12:50 [Buildroot] [PATCH] package/mesa3d: fix compilation with host-llvm enabled Thomas Devoogdt
2025-12-26  9:14 ` Thomas Petazzoni via buildroot
2026-01-03  8:40   ` Thomas Devoogdt [this message]
2026-01-03  8:40     ` [Buildroot] [PATCH v2 2/2] " Thomas Devoogdt
2026-02-03 17:50       ` Romain Naour via buildroot
2026-02-04  6:11         ` Thomas Devoogdt
2026-02-04  8:54           ` Romain Naour via buildroot
2026-02-04 12:27             ` Thomas Devoogdt
2026-02-04 12:36               ` [Buildroot] [PATCH v3] " Thomas Devoogdt
2026-02-04 13:41                 ` Thomas Devoogdt
2026-02-04 18:32                   ` Romain Naour via buildroot
2026-02-05 10:08                     ` Thomas Devoogdt
2026-02-05 11:28                       ` Romain Naour via buildroot
2026-02-03 17:04     ` [Buildroot] [PATCH v2 1/2] package/mesa3d: explicitly enable llvm for host-mesa3d Romain Naour via buildroot
2026-02-13 19:36     ` Thomas Perale via buildroot
     [not found]   ` <31717e07-e32d-43c5-9a78-e2e6b7b3f3b5@kuhls.net>
2026-01-03 10:51     ` [Buildroot] [PATCH v2 1/2] package/mesa3d: explicitly enable llvm for Thomas Devoogdt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260103084002.2045193-1-thomas@devoogdt.com \
    --to=thomas@devoogdt.com \
    --cc=bernd@kuhls.net \
    --cc=buildroot@buildroot.org \
    --cc=romain.naour@gmail.com \
    --cc=thomas.devoogdt@barco.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox