summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrii Beregovenko2013-02-25 13:02:11 -0600
committerAndrii Beregovenko2013-03-19 10:03:04 -0500
commit4fbba49fb3736ffd429fb028270f989c97264de0 (patch)
tree962c5043377e05eeb0c1b26b552ef5f065ed149f
parentbafb46256331fa06c5cbd92936dac13a5d5fc128 (diff)
downloaddevice-ti-proprietary-open-4fbba49fb3736ffd429fb028270f989c97264de0.tar.gz
device-ti-proprietary-open-4fbba49fb3736ffd429fb028270f989c97264de0.tar.xz
device-ti-proprietary-open-4fbba49fb3736ffd429fb028270f989c97264de0.zip
wlan: rework rules for wlan firmware binaries
Organize prebuilt firmware binaries for WiLink's WiFi as regular Android prebuilts. Move corresponding rules to separate makefile. Change-Id: I5e1b95dfe9092f67f00b47e15a6507891c262e93 Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
-rw-r--r--Android.mk156
-rw-r--r--wl12xx/Android.mk23
-rw-r--r--wl12xx/wlan/Android.mk133
3 files changed, 156 insertions, 156 deletions
diff --git a/Android.mk b/Android.mk
index c17647d..26a1a6b 100644
--- a/Android.mk
+++ b/Android.mk
@@ -72,162 +72,6 @@ endif
72 72
73############################################# 73#############################################
74 74
75###############################################################################
76# Install WLAN firmware files
77###############################################################################
78
79ifneq ($(WLAN_TGZ),)
80wl12xx-wlan.untarred_intermediates := $(call intermediates-dir-for, FAKE, wl12xx-wlan.untarred)
81wl12xx-wlan.untarred_timestamp := $(wl12xx-wlan.untarred_intermediates)/stamp
82
83$(wl12xx-wlan.untarred_timestamp) : $(WLAN_TGZ)
84 @echo "Unzip $(dir $@) <- $<)"
85 $(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
86 $(hide) tar -C $(dir $@) -zxf $<
87 $(hide) touch $@
88
89include $(CLEAR_VARS)
90LOCAL_MODULE := wl1271-nvs.bin
91LOCAL_MODULE_CLASS := FAKE
92LOCAL_MODULE_TAGS := optional
93LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware/ti-connectivity
94
95include $(BUILD_SYSTEM)/base_rules.mk
96
97$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(wl12xx-wlan.untarred_intermediates)/wlan/wl1271-nvs.bin
98$(LOCAL_BUILT_MODULE) : $(wl12xx-wlan.untarred_timestamp) | $(ACP)
99 @echo "Copy $@ <- $(PRIVATE_SRC)"
100 @mkdir -p $(dir $@)
101 $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
102
103include $(CLEAR_VARS)
104LOCAL_MODULE := wl1271-nvs_127x.bin
105LOCAL_MODULE_CLASS := FAKE
106LOCAL_MODULE_TAGS := optional
107LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware/ti-connectivity
108
109include $(BUILD_SYSTEM)/base_rules.mk
110
111$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(wl12xx-wlan.untarred_intermediates)/wlan/wl1271-nvs_127x.bin
112$(LOCAL_BUILT_MODULE) : $(wl12xx-wlan.untarred_timestamp) | $(ACP)
113 @echo "Copy $@ <- $(PRIVATE_SRC)"
114 @mkdir -p $(dir $@)
115 $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
116
117include $(CLEAR_VARS)
118LOCAL_MODULE := wl128x-fw-4-sr.bin
119LOCAL_MODULE_CLASS := FAKE
120LOCAL_MODULE_TAGS := optional
121LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware/ti-connectivity
122
123include $(BUILD_SYSTEM)/base_rules.mk
124
125$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(wl12xx-wlan.untarred_intermediates)/wlan/wl128x-fw-4-sr.bin
126$(LOCAL_BUILT_MODULE) : $(wl12xx-wlan.untarred_timestamp) | $(ACP)
127 @echo "Copy $@ <- $(PRIVATE_SRC)"
128 @mkdir -p $(dir $@)
129 $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
130
131include $(CLEAR_VARS)
132LOCAL_MODULE := wl128x-fw-4-mr.bin
133LOCAL_MODULE_CLASS := FAKE
134LOCAL_MODULE_TAGS := optional
135LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware/ti-connectivity
136
137include $(BUILD_SYSTEM)/base_rules.mk
138
139$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(wl12xx-wlan.untarred_intermediates)/wlan/wl128x-fw-4-mr.bin
140$(LOCAL_BUILT_MODULE) : $(wl12xx-wlan.untarred_timestamp) | $(ACP)
141 @echo "Copy $@ <- $(PRIVATE_SRC)"
142 @mkdir -p $(dir $@)
143 $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
144
145include $(CLEAR_VARS)
146LOCAL_MODULE := wl128x-fw-4-plt.bin
147LOCAL_MODULE_CLASS := FAKE
148LOCAL_MODULE_TAGS := optional
149LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware/ti-connectivity
150
151include $(BUILD_SYSTEM)/base_rules.mk
152
153$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(wl12xx-wlan.untarred_intermediates)/wlan/wl128x-fw-4-plt.bin
154$(LOCAL_BUILT_MODULE) : $(wl12xx-wlan.untarred_timestamp) | $(ACP)
155 @echo "Copy $@ <- $(PRIVATE_SRC)"
156 @mkdir -p $(dir $@)
157 $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
158
159include $(CLEAR_VARS)
160LOCAL_MODULE := wl127x-fw-4-sr.bin
161LOCAL_MODULE_CLASS := FAKE
162LOCAL_MODULE_TAGS := optional
163LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware/ti-connectivity
164
165include $(BUILD_SYSTEM)/base_rules.mk
166
167$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(wl12xx-wlan.untarred_intermediates)/wlan/wl127x-fw-4-sr.bin
168$(LOCAL_BUILT_MODULE) : $(wl12xx-wlan.untarred_timestamp) | $(ACP)
169 @echo "Copy $@ <- $(PRIVATE_SRC)"
170 @mkdir -p $(dir $@)
171 $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
172
173include $(CLEAR_VARS)
174LOCAL_MODULE := wl127x-fw-4-mr.bin
175LOCAL_MODULE_CLASS := FAKE
176LOCAL_MODULE_TAGS := optional
177LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware/ti-connectivity
178
179include $(BUILD_SYSTEM)/base_rules.mk
180
181$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(wl12xx-wlan.untarred_intermediates)/wlan/wl127x-fw-4-mr.bin
182$(LOCAL_BUILT_MODULE) : $(wl12xx-wlan.untarred_timestamp) | $(ACP)
183 @echo "Copy $@ <- $(PRIVATE_SRC)"
184 @mkdir -p $(dir $@)
185 $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
186
187include $(CLEAR_VARS)
188LOCAL_MODULE := wl127x-fw-4-plt.bin
189LOCAL_MODULE_CLASS := FAKE
190LOCAL_MODULE_TAGS := optional
191LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware/ti-connectivity
192
193include $(BUILD_SYSTEM)/base_rules.mk
194
195$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(wl12xx-wlan.untarred_intermediates)/wlan/wl127x-fw-4-plt.bin
196$(LOCAL_BUILT_MODULE) : $(wl12xx-wlan.untarred_timestamp) | $(ACP)
197 @echo "Copy $@ <- $(PRIVATE_SRC)"
198 @mkdir -p $(dir $@)
199 $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
200
201include $(CLEAR_VARS)
202LOCAL_MODULE := wl18xx-fw-mc.bin
203LOCAL_MODULE_CLASS := FAKE
204LOCAL_MODULE_TAGS := optional
205LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware/ti-connectivity
206
207include $(BUILD_SYSTEM)/base_rules.mk
208
209$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(wl12xx-wlan.untarred_intermediates)/wlan/wl18xx-fw-mc.bin
210$(LOCAL_BUILT_MODULE) : $(wl12xx-wlan.untarred_timestamp) | $(ACP)
211 @echo "Copy $@ <- $(PRIVATE_SRC)"
212 @mkdir -p $(dir $@)
213 $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
214
215include $(CLEAR_VARS)
216LOCAL_MODULE := wl18xx-conf.bin
217LOCAL_MODULE_CLASS := FAKE
218LOCAL_MODULE_TAGS := optional
219LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/firmware/ti-connectivity
220
221include $(BUILD_SYSTEM)/base_rules.mk
222
223$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(wl12xx-wlan.untarred_intermediates)/wlan/wl18xx-conf.bin
224$(LOCAL_BUILT_MODULE) : $(wl12xx-wlan.untarred_timestamp) | $(ACP)
225 @echo "Copy $@ <- $(PRIVATE_SRC)"
226 @mkdir -p $(dir $@)
227 $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
228
229endif
230
231################################################################################ 75################################################################################
232# Install WPAN firmware files 76# Install WPAN firmware files
233############################################################################### 77###############################################################################
diff --git a/wl12xx/Android.mk b/wl12xx/Android.mk
new file mode 100644
index 0000000..f24f118
--- /dev/null
+++ b/wl12xx/Android.mk
@@ -0,0 +1,23 @@
1# Copyright (C) 2011 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16LOCAL_PATH := $(call my-dir)
17
18TARGET_EXTRACTED_FW := $(PRODUCT_OUT)/extracted_firmwares
19
20ifeq ($(strip $(USES_TI_MAC80211)),true)
21include $(call all-makefiles-under, $(LOCAL_PATH))
22endif
23
diff --git a/wl12xx/wlan/Android.mk b/wl12xx/wlan/Android.mk
new file mode 100644
index 0000000..30465f7
--- /dev/null
+++ b/wl12xx/wlan/Android.mk
@@ -0,0 +1,133 @@
1# Copyright (C) 2008 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
17ifeq ($(strip $(BOARD_WLAN_DEVICE)),wl12xx_mac80211)
18
19TI_WILINK_FW_PATH := $(TARGET_OUT_ETC)/firmware/ti-connectivity
20
21WLAN_FW_BINS := \
22 wl128x-fw-4-mr.bin \
23 wl128x-fw-4-plt.bin \
24 wl128x-fw-4-sr.bin \
25 wl127x-fw-4-mr.bin \
26 wl127x-fw-4-plt.bin \
27 wl127x-fw-4-sr.bin \
28 wl18xx-fw-mc.bin \
29 wl18xx-conf.bin \
30 wl1271-nvs.bin \
31 wl1271-nvs_127x.bin
32
33# path to FM fws (related to top dir)
34FW_WLAN_PATH := $(TARGET_EXTRACTED_FW)/wlan
35
36# path related to current location
37FW_WLAN_FULL_PATH := ../../../../../$(FW_WLAN_PATH)
38
39include $(CLEAR_VARS)
40LOCAL_MODULE := wl128x-fw-4-mr.bin
41LOCAL_SRC_FILES := $(FW_WLAN_FULL_PATH)/wl128x-fw-4-mr.bin
42LOCAL_MODULE_CLASS := FIRMWARE
43LOCAL_MODULE_PATH := $(TI_WILINK_FW_PATH)
44LOCAL_MODULE_TAGS := optional
45LOCAL_MODULE_OWNER := ti
46include $(BUILD_PREBUILT)
47include $(CLEAR_VARS)
48LOCAL_MODULE := wl128x-fw-4-plt.bin
49LOCAL_SRC_FILES := $(FW_WLAN_FULL_PATH)/wl128x-fw-4-plt.bin
50LOCAL_MODULE_CLASS := FIRMWARE
51LOCAL_MODULE_PATH := $(TI_WILINK_FW_PATH)
52LOCAL_MODULE_TAGS := optional
53LOCAL_MODULE_OWNER := ti
54include $(BUILD_PREBUILT)
55include $(CLEAR_VARS)
56LOCAL_MODULE := wl128x-fw-4-sr.bin
57LOCAL_SRC_FILES := $(FW_WLAN_FULL_PATH)/wl128x-fw-4-sr.bin
58LOCAL_MODULE_CLASS := FIRMWARE
59LOCAL_MODULE_PATH := $(TI_WILINK_FW_PATH)
60LOCAL_MODULE_TAGS := optional
61LOCAL_MODULE_OWNER := ti
62include $(BUILD_PREBUILT)
63
64include $(CLEAR_VARS)
65LOCAL_MODULE := wl127x-fw-4-mr.bin
66LOCAL_SRC_FILES := $(FW_WLAN_FULL_PATH)/wl127x-fw-4-mr.bin
67LOCAL_MODULE_CLASS := FIRMWARE
68LOCAL_MODULE_PATH := $(TI_WILINK_FW_PATH)
69LOCAL_MODULE_TAGS := optional
70LOCAL_MODULE_OWNER := ti
71include $(BUILD_PREBUILT)
72include $(CLEAR_VARS)
73LOCAL_MODULE := wl127x-fw-4-plt.bin
74LOCAL_SRC_FILES := $(FW_WLAN_FULL_PATH)/wl127x-fw-4-plt.bin
75LOCAL_MODULE_CLASS := FIRMWARE
76LOCAL_MODULE_PATH := $(TI_WILINK_FW_PATH)
77LOCAL_MODULE_TAGS := optional
78LOCAL_MODULE_OWNER := ti
79include $(BUILD_PREBUILT)
80include $(CLEAR_VARS)
81LOCAL_MODULE := wl127x-fw-4-sr.bin
82LOCAL_SRC_FILES := $(FW_WLAN_FULL_PATH)/wl127x-fw-4-sr.bin
83LOCAL_MODULE_CLASS := FIRMWARE
84LOCAL_MODULE_PATH := $(TI_WILINK_FW_PATH)
85LOCAL_MODULE_TAGS := optional
86LOCAL_MODULE_OWNER := ti
87include $(BUILD_PREBUILT)
88
89include $(CLEAR_VARS)
90LOCAL_MODULE := wl18xx-fw-mc.bin
91LOCAL_SRC_FILES := $(FW_WLAN_FULL_PATH)/wl18xx-fw-mc.bin
92LOCAL_MODULE_CLASS := FIRMWARE
93LOCAL_MODULE_PATH := $(TI_WILINK_FW_PATH)
94LOCAL_MODULE_TAGS := optional
95LOCAL_MODULE_OWNER := ti
96include $(BUILD_PREBUILT)
97include $(CLEAR_VARS)
98LOCAL_MODULE := wl18xx-conf.bin
99LOCAL_SRC_FILES := $(FW_WLAN_FULL_PATH)/wl18xx-conf.bin
100LOCAL_MODULE_CLASS := FIRMWARE
101LOCAL_MODULE_PATH := $(TI_WILINK_FW_PATH)
102LOCAL_MODULE_TAGS := optional
103LOCAL_MODULE_OWNER := ti
104include $(BUILD_PREBUILT)
105
106include $(CLEAR_VARS)
107LOCAL_MODULE := wl1271-nvs.bin
108LOCAL_SRC_FILES := $(FW_WLAN_FULL_PATH)/wl1271-nvs.bin
109LOCAL_MODULE_CLASS := FIRMWARE
110LOCAL_MODULE_PATH := $(TI_WILINK_FW_PATH)
111LOCAL_MODULE_TAGS := optional
112LOCAL_MODULE_OWNER := ti
113include $(BUILD_PREBUILT)
114include $(CLEAR_VARS)
115LOCAL_MODULE := wl1271-nvs_127x.bin
116LOCAL_SRC_FILES := $(FW_WLAN_FULL_PATH)/wl1271-nvs_127x.bin
117LOCAL_MODULE_CLASS := FIRMWARE
118LOCAL_MODULE_PATH := $(TI_WILINK_FW_PATH)
119LOCAL_MODULE_TAGS := optional
120LOCAL_MODULE_OWNER := ti
121include $(BUILD_PREBUILT)
122
123WLAN_FW_FILES := $(addprefix $(LOCAL_PATH)/$(FW_WLAN_FULL_PATH)/, $(WLAN_FW_BINS))
124.PHONY: $(WLAN_FW_FILES)
125$(WLAN_FW_FILES): $(FW_WLAN_FULL_PATH)
126 $(hide) tar -C $(FW_WLAN_PATH) --strip-components=1 \
127 -f $(WLAN_TGZ) -xzp wlan/$(notdir $@)
128
129$(FW_WLAN_FULL_PATH):
130 $(hide) mkdir -p $(FW_WLAN_PATH)
131
132endif
133