diff options
author | Rob Herring <[email protected]> | 2017-05-22 19:04:48 -0500 |
---|---|---|
committer | Rob Herring <[email protected]> | 2017-06-29 09:09:49 -0500 |
commit | a3d98ca62febdfbe035d655cb7c1f849bccfa105 (patch) | |
tree | 32cc3dfc003beb4715e1ad4eeb034d45582fc4fd /src/gallium/drivers | |
parent | 4aaa21d12e1d7449a228e37ee3c502fbf159610a (diff) |
Android: use symlinks for driver loading
Instead of having special driver loading logic for Android, create
symlinks to gallium_dri.so so we can use the standard loading logic.
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/freedreno/Android.mk | 1 | ||||
-rw-r--r-- | src/gallium/drivers/i915/Android.mk | 1 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/Android.mk | 1 | ||||
-rw-r--r-- | src/gallium/drivers/pl111/Android.mk | 1 | ||||
-rw-r--r-- | src/gallium/drivers/r300/Android.mk | 1 | ||||
-rw-r--r-- | src/gallium/drivers/r600/Android.mk | 1 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/Android.mk | 1 | ||||
-rw-r--r-- | src/gallium/drivers/softpipe/Android.mk | 1 | ||||
-rw-r--r-- | src/gallium/drivers/svga/Android.mk | 1 | ||||
-rw-r--r-- | src/gallium/drivers/vc4/Android.mk | 1 | ||||
-rw-r--r-- | src/gallium/drivers/virgl/Android.mk | 1 |
11 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/Android.mk b/src/gallium/drivers/freedreno/Android.mk index 330e8242042..7b543097987 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 diff --git a/src/gallium/drivers/i915/Android.mk b/src/gallium/drivers/i915/Android.mk index 6860770167f..f00915473ba 100644 --- a/src/gallium/drivers/i915/Android.mk +++ b/src/gallium/drivers/i915/Android.mk @@ -36,5 +36,6 @@ include $(GALLIUM_COMMON_MK) include $(BUILD_STATIC_LIBRARY) ifneq ($(HAVE_GALLIUM_I915),) +GALLIUM_TARGET_DRIVERS += i915 $(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_i915) endif diff --git a/src/gallium/drivers/nouveau/Android.mk b/src/gallium/drivers/nouveau/Android.mk index af379bcc4b3..2de22e73ec1 100644 --- a/src/gallium/drivers/nouveau/Android.mk +++ b/src/gallium/drivers/nouveau/Android.mk @@ -43,6 +43,7 @@ include $(GALLIUM_COMMON_MK) include $(BUILD_STATIC_LIBRARY) ifneq ($(HAVE_GALLIUM_NOUVEAU),) +GALLIUM_TARGET_DRIVERS += nouveau $(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_nouveau) $(eval GALLIUM_SHARED_LIBS += $(LOCAL_SHARED_LIBRARIES)) endif diff --git a/src/gallium/drivers/pl111/Android.mk b/src/gallium/drivers/pl111/Android.mk index 0b00b4e9ce0..00a123ed7a5 100644 --- a/src/gallium/drivers/pl111/Android.mk +++ b/src/gallium/drivers/pl111/Android.mk @@ -34,5 +34,6 @@ include $(GALLIUM_COMMON_MK) include $(BUILD_STATIC_LIBRARY) ifneq ($(HAVE_GALLIUM_PL111),) +GALLIUM_TARGET_DRIVERS += pl111 $(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_pl111) endif diff --git a/src/gallium/drivers/r300/Android.mk b/src/gallium/drivers/r300/Android.mk index 0c89cdbb147..7b1c1055ef4 100644 --- a/src/gallium/drivers/r300/Android.mk +++ b/src/gallium/drivers/r300/Android.mk @@ -42,6 +42,7 @@ include $(GALLIUM_COMMON_MK) include $(BUILD_STATIC_LIBRARY) ifneq ($(HAVE_GALLIUM_R300),) +GALLIUM_TARGET_DRIVERS += r300 $(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_radeon) $(eval GALLIUM_SHARED_LIBS += $(LOCAL_SHARED_LIBRARIES)) endif diff --git a/src/gallium/drivers/r600/Android.mk b/src/gallium/drivers/r600/Android.mk index 2d89f49cd5a..1683cfa09c9 100644 --- a/src/gallium/drivers/r600/Android.mk +++ b/src/gallium/drivers/r600/Android.mk @@ -49,6 +49,7 @@ include $(GALLIUM_COMMON_MK) include $(BUILD_STATIC_LIBRARY) ifneq ($(HAVE_GALLIUM_R600),) +GALLIUM_TARGET_DRIVERS += r600 $(eval GALLIUM_LIBS += \ $(LOCAL_MODULE) \ libmesa_winsys_radeon) diff --git a/src/gallium/drivers/radeonsi/Android.mk b/src/gallium/drivers/radeonsi/Android.mk index 5676c55983f..6fff91f6f75 100644 --- a/src/gallium/drivers/radeonsi/Android.mk +++ b/src/gallium/drivers/radeonsi/Android.mk @@ -49,6 +49,7 @@ include $(GALLIUM_COMMON_MK) include $(BUILD_STATIC_LIBRARY) ifneq ($(HAVE_GALLIUM_RADEONSI),) +GALLIUM_TARGET_DRIVERS += radeonsi $(eval GALLIUM_LIBS += \ $(LOCAL_MODULE) \ $(LOCAL_STATIC_LIBRARIES) \ diff --git a/src/gallium/drivers/softpipe/Android.mk b/src/gallium/drivers/softpipe/Android.mk index dc0fe9dcdbd..29cc317327c 100644 --- a/src/gallium/drivers/softpipe/Android.mk +++ b/src/gallium/drivers/softpipe/Android.mk @@ -37,5 +37,6 @@ include $(GALLIUM_COMMON_MK) include $(BUILD_STATIC_LIBRARY) ifneq ($(HAVE_GALLIUM_SOFTPIPE),) +GALLIUM_TARGET_DRIVERS += swrast $(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_sw_dri) endif diff --git a/src/gallium/drivers/svga/Android.mk b/src/gallium/drivers/svga/Android.mk index 9ed837fb22a..154cfc4c596 100644 --- a/src/gallium/drivers/svga/Android.mk +++ b/src/gallium/drivers/svga/Android.mk @@ -40,5 +40,6 @@ include $(GALLIUM_COMMON_MK) include $(BUILD_STATIC_LIBRARY) ifneq ($(HAVE_GALLIUM_VMWGFX),) +GALLIUM_TARGET_DRIVERS := vmwgfx $(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_svga) endif diff --git a/src/gallium/drivers/vc4/Android.mk b/src/gallium/drivers/vc4/Android.mk index 0dd70e5a0a5..715c021afb8 100644 --- a/src/gallium/drivers/vc4/Android.mk +++ b/src/gallium/drivers/vc4/Android.mk @@ -38,5 +38,6 @@ include $(GALLIUM_COMMON_MK) include $(BUILD_STATIC_LIBRARY) ifneq ($(HAVE_GALLIUM_VC4),) +GALLIUM_TARGET_DRIVERS += vc4 $(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_vc4) endif diff --git a/src/gallium/drivers/virgl/Android.mk b/src/gallium/drivers/virgl/Android.mk index 010e15144c9..0067dfa702e 100644 --- a/src/gallium/drivers/virgl/Android.mk +++ b/src/gallium/drivers/virgl/Android.mk @@ -34,5 +34,6 @@ include $(GALLIUM_COMMON_MK) include $(BUILD_STATIC_LIBRARY) ifneq ($(HAVE_GALLIUM_VIRGL),) +GALLIUM_TARGET_DRIVERS += virtio_gpu $(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_virgl libmesa_winsys_virgl_vtest) endif |