Source
64
64
include $(BUILD_SYSTEM)/base_rules.mk
65
65
66
66
$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(ti-tesla.untarred_intermediates)/tesla-dsp.bin
67
67
$(LOCAL_BUILT_MODULE) : $(ti-tesla.untarred_timestamp) | $(ACP)
68
68
@echo "Copy $@ <- $(PRIVATE_SRC)"
69
69
@mkdir -p $(dir $@)
70
70
$(hide) $(ACP) -fp $(PRIVATE_SRC) $@
71
71
endif
72
72
73
73
#############################################
74
-
75
-
################################################################################
76
-
# Install WPAN firmware files
77
-
###############################################################################
78
-
WPAN_TGZ := device/ti/proprietary-open/wl12xx/wpan.tgz
79
-
80
-
ifneq ($(WPAN_TGZ),)
81
-
include $(CLEAR_VARS)
82
-
83
-
wpan.untarred_intermediates := $(call intermediates-dir-for, FAKE, wpan.untarred)
84
-
wpan.untarred_timestamp := $(wpan.untarred_intermediates)/stamp
85
-
86
-
WPAN_FW_LOCAL_PATH:= device/ti/proprietary-open/wl12xx/
87
-
LOCAL_MODULE := ti-wpan-fw
88
-
LOCAL_MODULE_CLASS := FAKE
89
-
LOCAL_MODULE_TAGS := optional
90
-
91
-
include $(BUILD_SYSTEM)/base_rules.mk
92
-
93
-
$(LOCAL_BUILT_MODULE) : $(WPAN_TGZ)
94
-
echo "Unzip $(wpan.untarred_intermediates) <- $<"
95
-
$(hide) rm -rvf $(wpan.untarred_intermediates)/wpan
96
-
$(hide) mkdir -p $(wpan.untarred_intermediates)
97
-
$(hide) tar -C $(wpan.untarred_intermediates) -zvxf $<
98
-
$(hide) touch $(wpan.untarred_intermediates)
99
-
100
-
$(LOCAL_INSTALLED_MODULE) : $(LOCAL_BUILT_MODULE) | $(ACP)
101
-
@echo "Copying wpan firmware ..."
102
-
@mkdir -p $(PRODUCT_OUT)/system/etc/firmware
103
-
$(hide) $(ACP) -rfpv $(wpan.untarred_intermediates)/wpan/*/*.bts $(PRODUCT_OUT)/system/etc/firmware/
104
-
endif