From: Jan Altensen Date: Tue, 8 Sep 2020 18:09:26 +0000 (+0200) Subject: exynos9610: copy libGLES_mali.so to vulkan.exynos9610.so X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e59aee7d73753e9e944839a4a34324d98d7a0225;p=GitHub%2FLineageOS%2Fandroid_device_motorola_exynos9610-common.git exynos9610: copy libGLES_mali.so to vulkan.exynos9610.so * symlinks arent working for some reason Change-Id: Ic0b8f5158577447bdfd23d3fa7499fc70bb73f33 --- 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