sm8150-common: create symlinks for IMS and NxpNfcNci

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
This commit is contained in:
Omkar Chandorkar 2021-04-01 16:49:05 +05:30
parent 7e0b864a1f
commit 26ad8f20ca
No known key found for this signature in database
GPG Key ID: 95A33FD984777F70
1 changed files with 20 additions and 0 deletions

View File

@ -11,6 +11,26 @@ include $(call all-makefiles-under,$(LOCAL_PATH))
include $(CLEAR_VARS)
IMS_LIBS := libimscamera_jni.so libimsmedia_jni.so
IMS_SYMLINKS := $(addprefix $(TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED)/ims/lib/arm64/,$(notdir $(IMS_LIBS)))
$(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "IMS lib link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /system_ext/lib64/$(notdir $@) $@
ALL_DEFAULT_INSTALLED_MODULES += $(IMS_SYMLINKS)
NXP_LIB := libnxpnfc_nci_jni.so
NXP_SYMLINKS := $(addprefix $(TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED)/NxpNfcNci/lib/arm64/,$(notdir $(NXP_LIB)))
$(NXP_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "NXP lib link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /system_ext/lib64/$(notdir $@) $@
ALL_DEFAULT_INSTALLED_MODULES += $(NXP_SYMLINKS)
# A/B builds require us to create the mount points at compile time.
# Just creating it for all cases since it does not hurt.
FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware_mnt