common: fix symlinks once and for all

Change-Id: I62a35417df0cf7a257f8f941d7579d861f712f43
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
This commit is contained in:
Omkar Chandorkar 2022-06-29 13:05:12 +09:00
parent a2fec66f99
commit 27c0cb34ce
No known key found for this signature in database
GPG Key ID: 95A33FD984777F70
3 changed files with 14 additions and 10 deletions

View File

@ -18,13 +18,13 @@ ifneq (,$(filter telephony, $(TARGET_COMMON_QTI_COMPONENTS)))
include $(CLEAR_VARS)
IMS_LIBS := libimscamera_jni.so libimsmedia_jni.so
IMS_LIBRARIES := libimscamera_jni.so libimsmedia_jni.so
IMS_SYMLINKS := $(addprefix $(TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED)/ims/lib/arm64/,$(notdir $(IMS_LIBS)))
IMS_SYMLINKS := $(addprefix $(TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED)/ims/lib/arm64/,$(notdir $(IMS_LIBRARIES)))
$(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@rm -rf $@
@mkdir -p $(dir $@)
$(hide) ln -sf $(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/$(notdir $@) $@
@rm -rf $@
$(hide) ln -sf /system/system_ext/lib64/$(notdir $@) $@
ALL_DEFAULT_INSTALLED_MODULES += $(IMS_SYMLINKS)

View File

@ -18,11 +18,13 @@ ifneq (,$(filter wfd, $(TARGET_COMMON_QTI_COMPONENTS)))
include $(CLEAR_VARS)
WFDSERVICE_SYMLINKS := $(TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED)/WfdService/lib/arm64/
WFDSERVICE_LIBRARIES := libwfdnative.so
WFDSERVICE_SYMLINKS := $(addprefix $(TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED)/WfdService/lib/arm64/,$(notdir $(WFDSERVICE_LIBRARIES)))
$(WFDSERVICE_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@rm -rf $@
@mkdir -p $(dir $@)
$(hide) ln -sf $(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/libwfdnative.so $@/libwfdnative.so
@rm -rf $@
$(hide) ln -sf /system/system_ext/lib64/$(notdir $@) $@
ALL_DEFAULT_INSTALLED_MODULES += $(WFDSERVICE_SYMLINKS)

View File

@ -18,11 +18,13 @@ ifneq (,$(filter telephony, $(TARGET_COMMON_QTI_COMPONENTS)))
include $(CLEAR_VARS)
CNE_SYMLINKS := $(TARGET_OUT_VENDOR_APPS)/CneApp/lib/arm64/
CNE_LIBRARIES := libvndfwk_detect_jni.qti.so
CNE_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR_APPS)/CneApp/lib/arm64/,$(notdir $(CNE_LIBRARIES)))
$(CNE_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@rm -rf $@
@mkdir -p $(dir $@)
$(hide) ln -sf $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/libvndfwk_detect_jni.qti.so $@/libvndfwk_detect_jni.qti.so
@rm -rf $@
$(hide) ln -sf /vendor/lib64/$(notdir $@) $@
ALL_DEFAULT_INSTALLED_MODULES += $(CNE_SYMLINKS)