Home | History | Annotate | Download | only in aosp
      1 # Create links from /vendor to /system for AOSP without vendor builds
      2 ifneq (,$(filter aosp_angler, $(TARGET_PRODUCT)))
      3 
      4 LOCAL_PATH := $(call my-dir)
      5 
      6 include $(CLEAR_VARS)
      7 
      8 LOCAL_MODULE := AOSPLinks
      9 LOCAL_MODULE_OWNER := google
     10 LOCAL_MODULE_TAGS := optional
     11 
     12 LOCAL_POST_INSTALL_CMD := \
     13     test -s vendor/huawei/angler/proprietary/prebuilt/target/product/msm8994/system/etc/izat.conf || { \
     14     mkdir -p $(PRODUCT_OUT)/system/etc; \
     15     ln -sf /vendor/etc/izat.conf $(PRODUCT_OUT)/system/etc/izat.conf; \
     16     ln -sf /vendor/etc/flp.conf $(PRODUCT_OUT)/system/etc/flp.conf; \
     17     ln -sf /vendor/etc/sap.conf $(PRODUCT_OUT)/system/etc/sap.conf; \
     18     ln -sf /vendor/etc/pp_calib_data_SAMSUNG_S6E3HA3X01_5P7_1440P_CMD_DUAL0.xml $(PRODUCT_OUT)/system/etc/pp_calib_data_SAMSUNG_S6E3HA3X01_5P7_1440P_CMD_DUAL0.xml; \
     19     mkdir -p $(PRODUCT_OUT)/system/etc/data; \
     20     ln -sf /vendor/etc/data/dsi_config.xml $(PRODUCT_OUT)/system/etc/data/dsi_config.xml; \
     21     ln -sf /vendor/etc/data/netmgr_config.xml $(PRODUCT_OUT)/system/etc/data/netmgr_config.xml; \
     22     mkdir -p $(PRODUCT_OUT)/system/etc/cne; \
     23     ln -sf /vendor/etc/cne/profile.txt $(PRODUCT_OUT)/system/etc/cne/profile.txt; \
     24     mkdir -p $(PRODUCT_OUT)/system/bin; \
     25     ln -sf /vendor/bin/imscmservice $(PRODUCT_OUT)/system/bin/imscmservice; \
     26     ln -sf /vendor/bin/imsdatadaemon $(PRODUCT_OUT)/system/bin/imsdatadaemon; \
     27     ln -sf /vendor/bin/imsqmidaemon $(PRODUCT_OUT)/system/bin/imsqmidaemon; \
     28     ln -sf /vendor/bin/ims_rtp_daemon $(PRODUCT_OUT)/system/bin/ims_rtp_daemon; }
     29 
     30 include $(BUILD_PHONY_PACKAGE)
     31 
     32 endif # aosp_angler
     33