land: Fix wifi symlinks

Change-Id: I0f88b006fa951e478ca0a94873203b0d8f1346cd
This commit is contained in:
Zhao Wei Liew 2016-11-03 17:41:16 +08:00
parent b0b7b26489
commit 4175330b51

View file

@ -38,12 +38,15 @@ LOCAL_MODULE_SUFFIX := -timestamp
include $(BUILD_SYSTEM)/base_rules.mk
$(LOCAL_BUILT_MODULE): ACTUAL_INI_FILE := /data/misc/wifi/WCNSS_qcom_cfg.ini
$(LOCAL_BUILT_MODULE): ACTUAL_INI_FILE := /system/etc/wifi/WCNSS_qcom_cfg.ini
$(LOCAL_BUILT_MODULE): WCNSS_INI_SYMLINK := $(TARGET_OUT)/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini
$(LOCAL_BUILT_MODULE): ACTUAL_BIN_FILE := /persist/WCNSS_qcom_wlan_nv.bin
$(LOCAL_BUILT_MODULE): WCNSS_BIN_SYMLINK := $(TARGET_OUT)/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
$(LOCAL_BUILT_MODULE): ACTUAL_DAT_FILE := /persist/WCNSS_wlan_dictionary.dat
$(LOCAL_BUILT_MODULE): WCNSS_DAT_SYMLINK := $(TARGET_OUT)/etc/firmware/wlan/prima/WCNSS_wlan_dictionary.dat
$(LOCAL_BUILT_MODULE): ACTUAL_MODULE_FILE := /system/lib/modules/pronto/pronto_wlan.ko
$(LOCAL_BUILT_MODULE): WCNSS_MODULE_SYMLINK := $(TARGET_OUT)/lib/modules/wlan.ko
@ -58,6 +61,8 @@ $(LOCAL_BUILT_MODULE):
$(hide) ln -sf $(ACTUAL_INI_FILE) $(WCNSS_INI_SYMLINK)
$(hide) rm -rf $(WCNSS_BIN_SYMLINK)
$(hide) ln -sf $(ACTUAL_BIN_FILE) $(WCNSS_BIN_SYMLINK)
$(hide) rm -rf $(WCNSS_DAT_SYMLINK)
$(hide) ln -sf $(ACTUAL_DAT_FILE) $(WCNSS_DAT_SYMLINK)
$(hide) rm -rf $(WCNSS_MODULE_SYMLINK)
$(hide) ln -sf $(ACTUAL_MODULE_FILE) $(WCNSS_MODULE_SYMLINK)
$(hide) touch $@