[Mesa-dev] [PATCH] Android: use symlinks for driver loading

Eric Anholt eric at anholt.net
Wed Jun 28 16:46:31 UTC 2017


Rob Herring <robh at kernel.org> writes:

> Instead of having special driver loading logic for Android, create
> symlinks to gallium_dri.so so we can use the standard loading logic.
>
> Signed-off-by: Rob Herring <robh at kernel.org>


> diff --git a/src/gallium/drivers/freedreno/Android.mk b/src/gallium/drivers/freedreno/Android.mk
> index 330e82420426..7b543097987c 100644
> --- a/src/gallium/drivers/freedreno/Android.mk
> +++ b/src/gallium/drivers/freedreno/Android.mk
> @@ -50,6 +50,7 @@ include $(GALLIUM_COMMON_MK)
>  include $(BUILD_STATIC_LIBRARY)
>  
>  ifneq ($(HAVE_GALLIUM_FREEDRENO),)
> +GALLIUM_TARGET_DRIVERS += msm
>  $(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_freedreno)
>  $(eval GALLIUM_SHARED_LIBS += $(LOCAL_SHARED_LIBRARIES))
>  endif

Looks like the automake build also gives this one a symlink under "kgsl"

Other than that, nice cleanup:

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170628/b246bfbf/attachment.sig>


More information about the mesa-dev mailing list