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/targets/dri/Android.mk | |
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/targets/dri/Android.mk')
-rw-r--r-- | src/gallium/targets/dri/Android.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/targets/dri/Android.mk b/src/gallium/targets/dri/Android.mk index 8c8fb5d3d1c..f16391daa4c 100644 --- a/src/gallium/targets/dri/Android.mk +++ b/src/gallium/targets/dri/Android.mk @@ -58,5 +58,15 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \ # sort GALLIUM_SHARED_LIBS to remove any duplicates LOCAL_SHARED_LIBRARIES += $(sort $(GALLIUM_SHARED_LIBS)) +ifneq ($(filter 5 6 7, $(MESA_ANDROID_MAJOR_VERSION)),) +LOCAL_POST_INSTALL_CMD := \ + $(foreach l, lib lib64, \ + mkdir -p $(TARGET_OUT_SHARED_LIBRARIES)/$(l)/$(MESA_DRI_MODULE_REL_PATH); \ + $(foreach d, $(GALLIUM_TARGET_DRIVERS), ln -sf gallium_dri.so $(TARGET_OUT)/$(l)/$(MESA_DRI_MODULE_REL_PATH)/$(d)_dri.so;) \ + ) +else +LOCAL_MODULE_SYMLINKS := $(foreach d, $(GALLIUM_TARGET_DRIVERS), $(d)_dri.so) +endif + include $(GALLIUM_COMMON_MK) include $(BUILD_SHARED_LIBRARY) |