• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Create links from /vendor to /system for AOSP without vendor builds
2ifneq (,$(filter aosp_angler, $(TARGET_PRODUCT)))
3
4LOCAL_PATH := $(call my-dir)
5
6include $(CLEAR_VARS)
7
8LOCAL_MODULE := AOSPLinks
9LOCAL_MODULE_OWNER := google
10LOCAL_MODULE_TAGS := optional
11
12LOCAL_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
30include $(BUILD_PHONY_PACKAGE)
31
32endif # aosp_angler
33