From e59aee7d73753e9e944839a4a34324d98d7a0225 Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Tue, 8 Sep 2020 20:09:26 +0200 Subject: [PATCH] exynos9610: copy libGLES_mali.so to vulkan.exynos9610.so * symlinks arent working for some reason Change-Id: Ic0b8f5158577447bdfd23d3fa7499fc70bb73f33 --- Android.mk | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Android.mk b/Android.mk index fa07806..687b2c7 100644 --- a/Android.mk +++ b/Android.mk @@ -22,7 +22,7 @@ include $(call all-makefiles-under,$(LOCAL_PATH)) include $(CLEAR_VARS) -EGL_LIBS := libOpenCL.so libOpenCL.so.1 libOpenCL.so.1.1 hw/vulkan.exynos9610.so +EGL_LIBS := libOpenCL.so libOpenCL.so.1 libOpenCL.so.1.1 EGL_32_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/lib/,$(EGL_LIBS)) $(EGL_32_SYMLINKS): $(LOCAL_INSTALLED_MODULE) @@ -38,6 +38,22 @@ $(EGL_64_SYMLINKS): $(LOCAL_INSTALLED_MODULE) @rm -rf $@ $(hide) ln -sf /vendor/lib64/egl/libGLES_mali.so $@ -ALL_DEFAULT_INSTALLED_MODULES += $(EGL_32_SYMLINKS) $(EGL_64_SYMLINKS) +VULKAN_LIBS := vulkan.exynos9610.so + +VULKAN_32_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/lib/hw/,$(VULKAN_LIBS)) +$(VULKAN_32_SYMLINKS): $(LOCAL_INSTALLED_MODULE) + @echo "Copy Vulkan lib: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) cp $(TARGET_OUT_VENDOR)/lib/egl/libGLES_mali.so $@ + +VULKAN_64_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/lib64/hw/,$(VULKAN_LIBS)) +$(VULKAN_64_SYMLINKS): $(LOCAL_INSTALLED_MODULE) + @echo "Copy Vulkan lib: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) cp $(TARGET_OUT_VENDOR)/lib64/egl/libGLES_mali.so $@ + +ALL_DEFAULT_INSTALLED_MODULES += $(EGL_32_SYMLINKS) $(EGL_64_SYMLINKS) $(VULKAN_32_SYMLINKS) $(VULKAN_64_SYMLINKS) endif -- 2.20.1