lynx: Add DMService symlinks

Change-Id: I83a73157b5a9cc4359d79339df50c84e43bef53f
This commit is contained in:
Blaster4385 2023-06-22 13:18:13 +05:30 committed by Blaster4385
parent f2cd271e45
commit dc406318b9

View file

@ -28,6 +28,21 @@ LOCAL_PATH := $(call my-dir)
ifneq (,$(filter $(TARGET_DEVICE),lynx))
include $(call all-makefiles-under,$(LOCAL_PATH))
DM_LIBS := libdmengine.so libdmjavaplugin.so
DM_32_SYMLINKS := $(addprefix $(TARGET_OUT_PRODUCT)/priv-app/DMService/lib/arm/,$(notdir $(DM_LIBS)))
$(DM_32_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "DMService 32 lib link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /product/lib/$(notdir $@) $@
DM_64_SYMLINKS := $(addprefix $(TARGET_OUT_PRODUCT)/priv-app/DMService/lib/arm64/,$(notdir $(DM_LIBS)))
$(DM_64_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "DMService 64 lib link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /product/lib64/$(notdir $@) $@
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)
@ -36,6 +51,5 @@ $(HBM_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@rm -rf $@
$(hide) ln -sf /system_ext/lib64/$(notdir $@) $@
ALL_DEFAULT_INSTALLED_MODULES += $(HBM_SYMLINKS)
ALL_DEFAULT_INSTALLED_MODULES += $(DM_32_SYMLINKS) $(DM_64_SYMLINKS) $(HBM_SYMLINKS)
endif