summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2021-11-02 12:19:58 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2021-11-02 12:19:59 +0100
commite994b77922227912138ed1d7a59b4a03b10d1027 (patch)
tree7567967457f203d94dd5799fe01eaa424e48beac
parentdf210352954c0e3be731ed71a072e33d6da07d05 (diff)
downloadptxdist-2021.11.0.tar.gz
ptxdist-2021.11.0.tar.xz
mesalib: add sanity check for gallium driversptxdist-2021.11.0
All gallium drivers are hard-links of the same binary. We use soft-links instead. This has the downside that we don't check if the corresponding driver is actually built. So add an explicit check to ensure that a hard-link exists for every soft-link that we create. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/mesalib.make2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/mesalib.make b/rules/mesalib.make
index 4a126aa13..8b218673a 100644
--- a/rules/mesalib.make
+++ b/rules/mesalib.make
@@ -248,6 +248,8 @@ ifneq ($(strip $(MESALIB_DRI_GALLIUM_LIBS-y)),)
/usr/lib/dri/gallium_dri.so)
@$(foreach lib, $(MESALIB_DRI_GALLIUM_LIBS-y), \
+ test -f $(MESALIB_PKGDIR)/usr/lib/dri/$(lib)_dri.so || \
+ ptxd_bailout "missing gallium driver $(lib)_dri.so"$(ptx/nl) \
$(call install_link, mesalib, gallium_dri.so, \
/usr/lib/dri/$(lib)_dri.so)$(ptx/nl))
endif