From: Jiyu Yang Date: Fri, 6 Jul 2018 10:49:42 +0000 (+0800) Subject: gpu: add libOpenCL symbol link under Android X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2fa6c3287911be11daf6c7920adaf923246d3fd0;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_mali-driver.git gpu: add libOpenCL symbol link under Android PD#168676: add libOpenCL symbol link under Android Change-Id: Ibbad735a3786d7b8dab7c1d5261c73fc185dd354 --- diff --git a/lib/lib.mk b/lib/lib.mk index 3fe1d44..ee83e0b 100755 --- a/lib/lib.mk +++ b/lib/lib.mk @@ -31,7 +31,6 @@ endif TARGET:=$(TARGET)_ion GPU_TARGET_PLATFORM ?= default_7a -$(info Android.mk GPU_DRV_VERSION is ${GPU_DRV_VERSION}) ifeq ($(GPU_ARCH),midgard) GPU_DRV_VERSION?=r11p0 else @@ -60,7 +59,6 @@ ifeq ($(GRALLOC_USE_GRALLOC1_API),1) LOCAL_ANDROID_VERSION_NUM:=${LOCAL_ANDROID_VERSION_NUM}gralloc1 endif -#$(info source is $(LOCAL_ANDROID_VERSION_NUM)) LOCAL_MODULE := libGLES_mali LOCAL_MULTILIB := both LOCAL_MODULE_SUFFIX := .so @@ -81,6 +79,14 @@ else LOCAL_SRC_FILES_32 := $(TARGET)/libGLES_mali_$(GPU_TARGET_PLATFORM)_32-$(LOCAL_ANDROID_VERSION_NUM).so LOCAL_SRC_FILES_64 := $(TARGET)/libGLES_mali_$(GPU_TARGET_PLATFORM)_64-$(LOCAL_ANDROID_VERSION_NUM).so endif + +ifeq ($(BOARD_INSTALL_OPENCL),true) +LOCAL_POST_INSTALL_CMD = $(hide)\ + ln -sf egl/$(notdir $(LOCAL_INSTALLED_MODULE)) $(dir $(LOCAL_INSTALLED_MODULE))../libOpenCL.so.1.1;\ + ln -sf libOpenCL.so.1.1 $(dir $(LOCAL_INSTALLED_MODULE))../libOpenCL.so.1;\ + ln -sf libOpenCL.so.1 $(dir $(LOCAL_INSTALLED_MODULE))../libOpenCL.so +endif + include $(BUILD_PREBUILT) endif