summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavan Savoy2012-08-03 16:02:16 -0500
committerJames W. Mills2012-08-10 11:51:47 -0500
commitdf066b4cfd4a76244cb4b1110fe341816e57b62c (patch)
tree39dc72766cb0e4cbf2260ad95203cdd80deac557 /Android.mk
parent66c8011f07b79382091e6cb893971b6e9a80a65b (diff)
downloaddevice-ti-proprietary-open-df066b4cfd4a76244cb4b1110fe341816e57b62c.tar.gz
device-ti-proprietary-open-df066b4cfd4a76244cb4b1110fe341816e57b62c.tar.xz
device-ti-proprietary-open-df066b4cfd4a76244cb4b1110fe341816e57b62c.zip
proprietary-open: rule to install wpan fw
Use this rule to install all wpan related firmware files. The wpan archive needs to maintain the folder structure of wl12xx/wpan/<technology>/.bts Patch modified from original - Mark Lifshits <lifshitsm@ti.com> Signed-off-by: Pavan Savoy <pavan_savoy@ti.com> Modified to install only in the intermediates directory, and not to remove artifacts from the intermediates directory. Change-Id: I26a0669eea1a7b7b26ad6a2a780ad0d098f477d0 Signed-off-by: James W. Mills <jameswmills@ti.com>
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk31
1 files changed, 29 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index 96a5cf3..1f38990 100644
--- a/Android.mk
+++ b/Android.mk
@@ -4,8 +4,6 @@ img-sgx.untarred_timestamp := $(img-sgx.untarred_intermediates)/stamp
4img-sgx.untarred_bin := $(img-sgx.untarred_intermediates)/sgx 4img-sgx.untarred_bin := $(img-sgx.untarred_intermediates)/sgx
5img-sgx.tar := $(LOCAL_PATH)/$(TARGET_BOARD_PLATFORM)/sgx.tgz 5img-sgx.tar := $(LOCAL_PATH)/$(TARGET_BOARD_PLATFORM)/sgx.tgz
6 6
7$(hide $(shell $(LOCAL_PATH)/untar.sh $(LOCAL_PATH)/wl12xx wpan $(LOCAL_PATH)/wl12xx/wpan.tgz))
8
9include $(call all-subdir-makefiles) 7include $(call all-subdir-makefiles)
10 8
11$(img-sgx.untarred_timestamp) : $(img-sgx.tar) 9$(img-sgx.untarred_timestamp) : $(img-sgx.tar)
@@ -173,3 +171,32 @@ $(LOCAL_BUILT_MODULE) : $(wl12xx-wlan.untarred_timestamp) | $(ACP)
173endif 171endif
174 172
175################################################################################ 173################################################################################
174# Install WPAN firmware files
175###############################################################################
176WPAN_TGZ := device/ti/proprietary-open/wl12xx/wpan.tgz
177
178ifneq ($(WPAN_TGZ),)
179include $(CLEAR_VARS)
180
181wpan.untarred_intermediates := $(call intermediates-dir-for, FAKE, wpan.untarred)
182wpan.untarred_timestamp := $(wpan.untarred_intermediates)/stamp
183
184WPAN_FW_LOCAL_PATH:= device/ti/proprietary-open/wl12xx/
185LOCAL_MODULE := ti-wpan-fw
186LOCAL_MODULE_CLASS := FAKE
187LOCAL_MODULE_TAGS := optional
188
189include $(BUILD_SYSTEM)/base_rules.mk
190
191$(LOCAL_BUILT_MODULE) : $(WPAN_TGZ)
192 echo "Unzip $(wpan.untarred_intermediates) <- $<"
193 $(hide) rm -rvf $(wpan.untarred_intermediates)/wpan
194 $(hide) mkdir -p $(wpan.untarred_intermediates)
195 $(hide) tar -C $(wpan.untarred_intermediates) -zvxf $<
196 $(hide) touch $(wpan.untarred_intermediates)
197
198$(LOCAL_INSTALLED_MODULE) : $(LOCAL_BUILT_MODULE) | $(ACP)
199 @echo "Copying wpan firmware ..."
200 @mkdir -p $(PRODUCT_OUT)/system/etc/firmware
201 $(hide) $(ACP) -rfpv $(wpan.untarred_intermediates)/wpan/*/*.bts $(PRODUCT_OUT)/system/etc/firmware/
202endif