diff options
author | Bruno Martins <bgcngm@gmail.com> | 2016-12-03 14:35:17 +0000 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-04-30 00:48:54 +0300 |
commit | adf3beb26f4c6cb1aec827e8a3a9ae4937da3d44 (patch) | |
tree | e1bfe98d840d90de15a368884ba2e1ca81a654c7 | |
parent | c6351ec79ff010c6c79090f1c56ec581f23264a9 (diff) |
sdm660-common: Rewrite build-time symlinks creation
Change-Id: I28b52a20cea1af45d65af88b36467a6dacc655bb
-rw-r--r-- | Android.mk | 39 |
1 files changed, 15 insertions, 24 deletions
@@ -20,30 +20,21 @@ ifneq ($(filter jasmine_sprout jason twolip wayne,$(TARGET_DEVICE)),) include $(CLEAR_VARS) -LOCAL_MODULE := wifi_symlinks -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := FAKE -LOCAL_MODULE_SUFFIX := -timestamp - -include $(BUILD_SYSTEM)/base_rules.mk - -$(LOCAL_BUILT_MODULE): ACTUAL_INI_FILE := /vendor/etc/wifi/WCNSS_qcom_cfg.ini -$(LOCAL_BUILT_MODULE): WCNSS_INI_SYMLINK := $(TARGET_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini - -$(LOCAL_BUILT_MODULE): ACTUAL_BIN_FILE := /persist/wlan_mac.bin -$(LOCAL_BUILT_MODULE): WCNSS_BIN_SYMLINK := $(TARGET_OUT_VENDOR)/firmware/wlan/qca_cld/wlan_mac.bin - -$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/Android.mk -$(LOCAL_BUILT_MODULE): - $(hide) echo "Making symlinks for wifi" - $(hide) mkdir -p $(dir $@) - $(hide) mkdir -p $(dir $(WCNSS_INI_SYMLINK)) - $(hide) rm -rf $@ - $(hide) rm -rf $(WCNSS_INI_SYMLINK) - $(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) touch $@ +WCNSS_INI_SYMLINK := $(TARGET_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini +$(WCNSS_INI_SYMLINK): $(LOCAL_INSTALLED_MODULE) + @echo "WCNSS config ini link: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf /vendor/etc/wifi/$(notdir $@) $@ + +WCNSS_MAC_SYMLINK := $(TARGET_OUT_VENDOR)/firmware/wlan/qca_cld/wlan_mac.bin +$(WCNSS_MAC_SYMLINK): $(LOCAL_INSTALLED_MODULE) + @echo "WCNSS MAC bin link: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf /mnt/vendor/persist/$(notdir $@) $@ + +ALL_DEFAULT_INSTALLED_MODULES += $(WCNSS_INI_SYMLINK) $(WCNSS_MAC_SYMLINK) # A/B builds require us to create the mount points at compile time. # Just creating it for all cases since it does not hurt. |