summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrii Beregovenko2013-03-06 08:35:48 -0600
committerAndrii Beregovenko2013-03-19 10:05:26 -0500
commite55416bf647b0333b37731f11c5b86ad9129f742 (patch)
tree91c22c3fa95eba5b253bb7595735ade097d508a9 /wl12xx/wpan/bluetooth/Android.mk
parent4fbba49fb3736ffd429fb028270f989c97264de0 (diff)
downloaddevice-ti-proprietary-open-e55416bf647b0333b37731f11c5b86ad9129f742.tar.gz
device-ti-proprietary-open-e55416bf647b0333b37731f11c5b86ad9129f742.tar.xz
device-ti-proprietary-open-e55416bf647b0333b37731f11c5b86ad9129f742.zip
wpan: rework rules for wpan firmware binaries
Organize prebuilt firmware binaries for WiLink's modules as regular Android prebuilts. Move corresponding rules to separate makefile. Change-Id: Ibc8b3531084530cda1388db15a5ab7b3fdec54bc Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
Diffstat (limited to 'wl12xx/wpan/bluetooth/Android.mk')
-rw-r--r--wl12xx/wpan/bluetooth/Android.mk96
1 files changed, 96 insertions, 0 deletions
diff --git a/wl12xx/wpan/bluetooth/Android.mk b/wl12xx/wpan/bluetooth/Android.mk
new file mode 100644
index 0000000..db63840
--- /dev/null
+++ b/wl12xx/wpan/bluetooth/Android.mk
@@ -0,0 +1,96 @@
1# Copyright (C) 2013 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_HAVE_BLUETOOTH_TI)),true)
18
19TI_WILINK_BT_FW_PATH := $(TARGET_OUT_ETC)/firmware
20
21WPAN_BT_FW_BINS := \
22 TIInit_7.2.31.bts \
23 TIInit_7.6.15.bts \
24 TIInit_10.6.15.bts \
25 TIInit_11.8.32.bts \
26 TIInit_12.7.27.bts \
27 TIInit_12.8.32.bts
28
29# path to BT fws (related to top dir)
30FW_BT_PATH := $(TARGET_EXTRACTED_FW)/bt
31
32# path related to current location
33FW_BT_FULL_PATH := ../../../../../../$(FW_BT_PATH)
34
35include $(CLEAR_VARS)
36LOCAL_MODULE := TIInit_7.2.31.bts
37LOCAL_SRC_FILES := $(FW_BT_FULL_PATH)/TIInit_7.2.31.bts
38LOCAL_MODULE_CLASS := FIRMWARE
39LOCAL_MODULE_PATH := $(TI_WILINK_BT_FW_PATH)
40LOCAL_MODULE_TAGS := optional
41LOCAL_MODULE_OWNER := ti
42include $(BUILD_PREBUILT)
43include $(CLEAR_VARS)
44LOCAL_MODULE := TIInit_7.6.15.bts
45LOCAL_SRC_FILES := $(FW_BT_FULL_PATH)/TIInit_7.6.15.bts
46LOCAL_MODULE_CLASS := FIRMWARE
47LOCAL_MODULE_PATH := $(TI_WILINK_BT_FW_PATH)
48LOCAL_MODULE_TAGS := optional
49LOCAL_MODULE_OWNER := ti
50include $(BUILD_PREBUILT)
51
52include $(CLEAR_VARS)
53LOCAL_MODULE := TIInit_10.6.15.bts
54LOCAL_SRC_FILES := $(FW_BT_FULL_PATH)/TIInit_10.6.15.bts
55LOCAL_MODULE_CLASS := FIRMWARE
56LOCAL_MODULE_PATH := $(TI_WILINK_BT_FW_PATH)
57LOCAL_MODULE_TAGS := optional
58LOCAL_MODULE_OWNER := ti
59include $(BUILD_PREBUILT)
60
61include $(CLEAR_VARS)
62LOCAL_MODULE := TIInit_11.8.32.bts
63LOCAL_SRC_FILES := $(FW_BT_FULL_PATH)/TIInit_11.8.32.bts
64LOCAL_MODULE_CLASS := FIRMWARE
65LOCAL_MODULE_PATH := $(TI_WILINK_BT_FW_PATH)
66LOCAL_MODULE_TAGS := optional
67LOCAL_MODULE_OWNER := ti
68include $(BUILD_PREBUILT)
69
70include $(CLEAR_VARS)
71LOCAL_MODULE := TIInit_12.7.27.bts
72LOCAL_SRC_FILES := $(FW_BT_FULL_PATH)/TIInit_12.7.27.bts
73LOCAL_MODULE_CLASS := FIRMWARE
74LOCAL_MODULE_PATH := $(TI_WILINK_BT_FW_PATH)
75LOCAL_MODULE_TAGS := optional
76LOCAL_MODULE_OWNER := ti
77include $(BUILD_PREBUILT)
78include $(CLEAR_VARS)
79LOCAL_MODULE := TIInit_12.8.32.bts
80LOCAL_SRC_FILES := $(FW_BT_FULL_PATH)/TIInit_12.8.32.bts
81LOCAL_MODULE_CLASS := FIRMWARE
82LOCAL_MODULE_PATH := $(TI_WILINK_BT_FW_PATH)
83LOCAL_MODULE_TAGS := optional
84LOCAL_MODULE_OWNER := ti
85include $(BUILD_PREBUILT)
86
87WPAN_BT_FW_FILES := $(addprefix $(LOCAL_PATH)/$(FW_BT_FULL_PATH)/, $(WPAN_BT_FW_BINS))
88.PHONY: $(WPAN_BT_FW_FILES)
89$(WPAN_BT_FW_FILES): $(FW_BT_FULL_PATH)
90 $(hide) tar -C $(FW_BT_PATH) --strip-components=2 \
91 -f $(WPAN_TGZ) -xzp wpan/bluetooth/$(notdir $@)
92
93$(FW_BT_FULL_PATH):
94 $(hide) mkdir -p $(FW_BT_PATH)
95
96endif