lynx: Add HbmSVManager symlink

Change-Id: Ia8b630e71a3125a11e2aa9d3e731f36493a8de66
This commit is contained in:
Blaster4385 2023-06-16 22:52:33 +05:30 committed by Blaster4385
parent e0b7597a81
commit f2cd271e45

View file

@ -27,4 +27,15 @@ LOCAL_PATH := $(call my-dir)
ifneq (,$(filter $(TARGET_DEVICE),lynx)) ifneq (,$(filter $(TARGET_DEVICE),lynx))
include $(call all-makefiles-under,$(LOCAL_PATH)) include $(call all-makefiles-under,$(LOCAL_PATH))
HBM_LIBS := libhbmsvmanager_jni.so
HBM_SYMLINKS := $(addprefix $(TARGET_OUT_SYSTEM_EXT)/priv-app/HbmSVManager/lib/arm64/,$(notdir $(HBM_LIBS)))
$(HBM_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "HBM lib link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /system_ext/lib64/$(notdir $@) $@
ALL_DEFAULT_INSTALLED_MODULES += $(HBM_SYMLINKS)
endif endif