From: Bruno Martins Date: Fri, 29 Sep 2023 16:11:24 +0000 (+0100) Subject: g12-common: Fix Vulkan support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=308eaf1943ba0b7e7ea00ad8860e7b634fc9cd5e;p=GitHub%2FLineageOS%2FG12%2Fandroid_device_amlogic_g12-common.git g12-common: Fix Vulkan support Quite funny, the lib is actually a symlink to ../egl/libGLES_mali.so. Change-Id: Ib185c9acb14e15fa358becd3973afeb0a4e8ad28 --- 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