[Mesa-dev] [PATCH] targets/dri-ilo: make the driver installable

Kenneth Graunke kenneth at whitecape.org
Sat Mar 15 12:33:52 PDT 2014


On 03/15/2014 08:46 AM, Chia-I Wu wrote:
> install-gallium-links.mk fails to create the compat link for ilo_dri.so
> because it looks for dri_LTLIBRARIES instead of noinst_LTLIBRARIES.  Fix this
> by switching to dri_LTLIBRARIES (and make the driver installable).
> 
> Since pci_id_driver_map.h and the DDX both tell libGL.so to look for "i965",
> ilo_dri.so will never be loaded even enabled and installed.  The change should
> not create any more confusion.
> 
> Signed-off-by: Chia-I Wu <olvaffe at gmail.com>
> Cc: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>  src/gallium/targets/dri-ilo/Makefile.am | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/src/gallium/targets/dri-ilo/Makefile.am b/src/gallium/targets/dri-ilo/Makefile.am
> index 18d3c44..20f45a2 100644
> --- a/src/gallium/targets/dri-ilo/Makefile.am
> +++ b/src/gallium/targets/dri-ilo/Makefile.am
> @@ -30,13 +30,12 @@ AM_CPPFLAGS = \
>  	-DGALLIUM_TRACE \
>  	-DGALLIUM_GALAHAD
>  
> -noinst_LTLIBRARIES = ilo_dri.la
> +dridir = $(DRI_DRIVER_INSTALL_DIR)
> +dri_LTLIBRARIES = ilo_dri.la
>  
>  ilo_dri_la_SOURCES = target.c
>  
> -# need -rpath to create a noinst shared library
> -ilo_dri_la_LDFLAGS = $(GALLIUM_DRI_LINKER_FLAGS) \
> -		     -rpath $(abs_builddir)
> +ilo_dri_la_LDFLAGS = $(GALLIUM_DRI_LINKER_FLAGS)
>  
>  ilo_dri_la_LIBADD = \
>  	$(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \
> 

Acked-by: Kenneth Graunke <kenneth at whitecape.org>

I don't see any reason to keep it non-installable, especially given that
it's named ilo_dri.so and not i965_dri.so.  Users still have to
explicitly opt-in to get it.

--Ken

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140315/26275da0/attachment.sig>


More information about the mesa-dev mailing list