From 308eaf1943ba0b7e7ea00ad8860e7b634fc9cd5e Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Fri, 29 Sep 2023 17:11:24 +0100 Subject: [PATCH] g12-common: Fix Vulkan support Quite funny, the lib is actually a symlink to ../egl/libGLES_mali.so. Change-Id: Ib185c9acb14e15fa358becd3973afeb0a4e8ad28 --- Android.mk | 12 +++++++++++- proprietary-files.txt | 3 --- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Android.mk b/Android.mk index af44c00..8a7b77c 100644 --- a/Android.mk +++ b/Android.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2021 The LineageOS Project +# Copyright (C) 2021-2023 The LineageOS Project # # SPDX-License-Identifier: Apache-2.0 # @@ -9,4 +9,14 @@ ifneq ($(filter g12a g12b sm1,$(TARGET_AMLOGIC_SOC)),) LOCAL_PATH := $(call my-dir) include $(call all-makefiles-under,$(LOCAL_PATH)) +include $(CLEAR_VARS) + +VULKAN_SYMLINK := $(TARGET_OUT_VENDOR)/lib/hw +$(VULKAN_SYMLINK): $(LOCAL_INSTALLED_MODULE) + @echo "Vulkan lib link: $@" + @mkdir -p $@ + $(hide) ln -sf /vendor/lib/egl/libGLES_mali.so $@/vulkan.amlogic.so + +ALL_DEFAULT_INSTALLED_MODULES += $(VULKAN_SYMLINK) + endif diff --git a/proprietary-files.txt b/proprietary-files.txt index 01b95a3..156381d 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -260,9 +260,6 @@ vendor/bin/hw/android.hardware.usb.gadget@1.2-service.droidlogic vendor/etc/init/android.hardware.usb.gadget@1.2-service.droidlogic.rc vendor/etc/vintf/manifest/android.hardware.usb.gadget@1.2-service.droidlogic.xml -# Vulkan -vendor/lib/hw/vulkan.amlogic.so - # Widevine vendor/bin/hw/android.hardware.drm@1.4-service.widevine vendor/etc/init/android.hardware.drm@1.4-service.widevine.rc -- 2.20.1