From 37e5bcbec165cd95e8540a57d221047cb6832800 Mon Sep 17 00:00:00 2001 From: Darshan Manjrekar Date: Sat, 15 Jul 2017 20:24:27 +0200 Subject: [PATCH] land: Update IMS symlinks & symlink FP firmwares Signed-off-by: Darshan Manjrekar --- Android.mk | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/Android.mk b/Android.mk index 0caa558..41b783c 100644 --- a/Android.mk +++ b/Android.mk @@ -61,19 +61,43 @@ $(LOCAL_BUILT_MODULE): $(hide) ln -sf $(ACTUAL_DAT_FILE) $(WCNSS_DAT_SYMLINK) $(hide) touch $@ -include $(call all-makefiles-under,$(LOCAL_PATH)) - IMS_LIBS := libimscamera_jni.so libimsmedia_jni.so -IMS_SYMLINKS := $(addprefix $(TARGET_OUT)/app/ims/lib/arm64/,$(notdir $(IMS_LIBS))) +IMS_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR_APPS)/ims/lib/arm64/,$(notdir $(IMS_LIBS))) $(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE) @echo "IMS lib link: $@" @mkdir -p $(dir $@) @rm -rf $@ - $(hide) ln -sf /system/vendor/lib64/$(notdir $@) $@ + $(hide) ln -sf /system/lib64/$(notdir $@) $@ ALL_DEFAULT_INSTALLED_MODULES += $(IMS_SYMLINKS) +GOODIX_IMAGES := \ + goodixfp.b00 goodixfp.b01 goodixfp.b02 goodixfp.b03 \ + goodixfp.b04 goodixfp.b05 goodixfp.b06 goodixfp.mdt + +GOODIX_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(GOODIX_IMAGES))) +$(GOODIX_SYMLINKS): $(LOCAL_INSTALLED_MODULE) + @echo "Goodix firmware link: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf /firmware/image/$(notdir $@) $@ + +ALL_DEFAULT_INSTALLED_MODULES += $(GOODIX_SYMLINKS) + +FPC_IMAGES := \ + fpctzapp.b00 fpctzapp.b01 fpctzapp.b02 fpctzapp.b03 \ + fpctzapp.b04 fpctzapp.b05 fpctzapp.b06 fpctzapp.mdt + +FPC_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FPC_IMAGES))) +$(FPC_SYMLINKS): $(LOCAL_INSTALLED_MODULE) + @echo "Fpc firmware link: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf /firmware/image/$(notdir $@) $@ + +ALL_DEFAULT_INSTALLED_MODULES += $(FPC_SYMLINKS) + RFS_MSM_ADSP_SYMLINKS := $(TARGET_OUT)/rfs/msm/adsp/ $(RFS_MSM_ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE) @echo "Creating RFS MSM ADSP folder structure: $@"