g12-common: Fix Vulkan support
authorBruno Martins <bgcngm@gmail.com>
Fri, 29 Sep 2023 16:11:24 +0000 (17:11 +0100)
committerBruno Martins <bgcngm@gmail.com>
Fri, 29 Sep 2023 16:36:50 +0000 (17:36 +0100)
Quite funny, the lib is actually a symlink to ../egl/libGLES_mali.so.

Change-Id: Ib185c9acb14e15fa358becd3973afeb0a4e8ad28

Android.mk
proprietary-files.txt

index af44c0025c207629915b1208ef2a1597bc5bb1db..8a7b77cb38c2fc5bbf63ccc7f6008ec7a3460d9a 100644 (file)
@@ -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
index 6000986a5f33a3694e3fac1777d257e16fb8d052..021cfc3c5e895c5eed4eb818bca58936c068f456 100644 (file)
@@ -246,9 +246,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