g12-common: Fix Vulkan support
authorBruno Martins <bgcngm@gmail.com>
Fri, 29 Sep 2023 16:11:24 +0000 (17:11 +0100)
committerNolen Johnson <johnsonnolen@gmail.com>
Sat, 30 Sep 2023 17:28:25 +0000 (17:28 +0000)
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 01b95a35bb5fc8d7f38d77ca716ff6c09e7caadf..156381de21873428adf8ff8cae7e4bde9bd149e4 100644 (file)
@@ -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