• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH := $(my-dir)
2TARGET_OUT_WLAN_FW := $(TARGET_OUT_ETC)/firmware/ti-connectivity
3
4# WLAN FW file for wl1271
5include $(CLEAR_VARS)
6LOCAL_MODULE := wl1271-fw-2.bin
7LOCAL_MODULE_CLASS := ETC
8LOCAL_MODULE_PATH := $(TARGET_OUT_WLAN_FW)
9LOCAL_SRC_FILES := $(LOCAL_MODULE)
10LOCAL_MODULE_TAGS := optional
11include $(BUILD_PREBUILT)
12
13# WLAN NVS file for wl1271
14include $(CLEAR_VARS)
15LOCAL_MODULE := wl1271-nvs.bin
16LOCAL_MODULE_CLASS := ETC
17LOCAL_MODULE_PATH := $(TARGET_OUT_WLAN_FW)
18LOCAL_SRC_FILES := $(LOCAL_MODULE)
19LOCAL_MODULE_TAGS := optional
20include $(BUILD_PREBUILT)
21
22#############################################
23# Install from ti-wpan.tgz:
24# TIInit_10.6.15.bts
25# TIInit_7.2.31.bts
26# TIInit_7.6.15.bts
27
28ti-wpan.untarred_intermediates := $(call intermediates-dir-for, ETC, ti-wpan.untarred)
29ti-wpan.untarred_timestamp := $(ti-wpan.untarred_intermediates)/stamp
30ti-wpan.untarred_bluetooth_dir := $(ti-wpan.untarred_intermediates)/bluetooth
31
32$(ti-wpan.untarred_timestamp) : $(LOCAL_PATH)/ti-wpan.tgz
33	@echo "Unzip $(dir $@) <- $<)"
34	$(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
35	$(hide) tar -C $(dir $@) -zxf $<
36	$(hide) touch $@
37
38
39#############################################
40include $(CLEAR_VARS)
41LOCAL_MODULE := TIInit_10.6.15.bts
42LOCAL_MODULE_CLASS := ETC
43LOCAL_MODULE_TAGS := optional
44LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware
45
46include $(BUILD_SYSTEM)/base_rules.mk
47
48$(LOCAL_BUILT_MODULE): PRIVATE_SRC := $(ti-wpan.untarred_bluetooth_dir)/$(LOCAL_MODULE)
49$(LOCAL_BUILT_MODULE) : $(ti-wpan.untarred_timestamp) | $(ACP)
50	@echo "Copy $@ <- $(PRIVATE_SRC)"
51	@mkdir -p $(dir $@)
52	$(hide) $(ACP) -fp $(PRIVATE_SRC) $@
53
54#############################################
55include $(CLEAR_VARS)
56LOCAL_MODULE := TIInit_7.2.31.bts
57LOCAL_MODULE_CLASS := ETC
58LOCAL_MODULE_TAGS := optional
59LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware
60
61include $(BUILD_SYSTEM)/base_rules.mk
62
63$(LOCAL_BUILT_MODULE): PRIVATE_SRC := $(ti-wpan.untarred_bluetooth_dir)/$(LOCAL_MODULE)
64$(LOCAL_BUILT_MODULE) : $(ti-wpan.untarred_timestamp) | $(ACP)
65	@echo "Copy $@ <- $(PRIVATE_SRC)"
66	@mkdir -p $(dir $@)
67	$(hide) $(ACP) -fp $(PRIVATE_SRC) $@
68
69#############################################
70include $(CLEAR_VARS)
71LOCAL_MODULE := TIInit_7.6.15.bts
72LOCAL_MODULE_CLASS := ETC
73LOCAL_MODULE_TAGS := optional
74LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware
75
76include $(BUILD_SYSTEM)/base_rules.mk
77
78$(LOCAL_BUILT_MODULE): PRIVATE_SRC := $(ti-wpan.untarred_bluetooth_dir)/$(LOCAL_MODULE)
79$(LOCAL_BUILT_MODULE) : $(ti-wpan.untarred_timestamp) | $(ACP)
80	@echo "Copy $@ <- $(PRIVATE_SRC)"
81	@mkdir -p $(dir $@)
82	$(hide) $(ACP) -fp $(PRIVATE_SRC) $@
83
84#############################################
85
86# Clean up tmp vars
87ti-wpan.untarred_intermediates :=
88ti-wpan.untarred_timestamp :=
89ti-wpan.untarred_bluetooth_dir :=
90