Android: generate symlinks for all enabled gallium drivers
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 1 Jul 2017 15:52:49 +0000 (17:52 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 5 Jul 2017 14:10:42 +0000 (15:10 +0100)
Current post install command relies on GALLIUM_TARGET_DRIVERS variable,
however variable needs to be initialized in src/gallium/Android.mk
in order that all enabled gallium drivers symlinks are correctly generated.

At the moment due to sorting of INC_DIRS and variable set with svga (vmwgfx)
only vmwgfx_dri.so and virtio_gpu_dri.so symlinks are generated.

Fixes: a3d98ca62f ("Android: use symlinks for driver loading")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/Android.mk
src/gallium/drivers/svga/Android.mk

index 8743dd6d26bd52829e4e12f003b007535ac41140..8be365a550426ac17f0a2984d737d62c8d428c9e 100644 (file)
@@ -25,6 +25,7 @@
 
 GALLIUM_TOP := $(call my-dir)
 GALLIUM_COMMON_MK := $(GALLIUM_TOP)/Android.common.mk
+GALLIUM_TARGET_DRIVERS :=
 
 SUBDIRS := auxiliary
 SUBDIRS += auxiliary/pipe-loader
index 154cfc4c5969c84e5f935420a629fe69a635fea3..edb69bf2bfdea814ebb793a4d0b43e6ff7a5920e 100644 (file)
@@ -40,6 +40,6 @@ include $(GALLIUM_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)
 
 ifneq ($(HAVE_GALLIUM_VMWGFX),)
-GALLIUM_TARGET_DRIVERS := vmwgfx
+GALLIUM_TARGET_DRIVERS += vmwgfx
 $(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_svga)
 endif