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 /wl12xx/wlan/Android.mk
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>
Diffstat (limited to 'wl12xx/wlan/Android.mk')
-rw-r--r--wl12xx/wlan/Android.mk133
1 files changed, 133 insertions, 0 deletions
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