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 /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 'Android.mk')
-rw-r--r--Android.mk31
1 files changed, 0 insertions, 31 deletions
diff --git a/Android.mk b/Android.mk
index 26a1a6b..ecdaafa 100644
--- a/Android.mk
+++ b/Android.mk
@@ -71,34 +71,3 @@ $(LOCAL_BUILT_MODULE) : $(ti-tesla.untarred_timestamp) | $(ACP)
71endif 71endif
72 72
73############################################# 73#############################################
74
75################################################################################
76# Install WPAN firmware files
77###############################################################################
78WPAN_TGZ := device/ti/proprietary-open/wl12xx/wpan.tgz
79
80ifneq ($(WPAN_TGZ),)
81include $(CLEAR_VARS)
82
83wpan.untarred_intermediates := $(call intermediates-dir-for, FAKE, wpan.untarred)
84wpan.untarred_timestamp := $(wpan.untarred_intermediates)/stamp
85
86WPAN_FW_LOCAL_PATH:= device/ti/proprietary-open/wl12xx/
87LOCAL_MODULE := ti-wpan-fw
88LOCAL_MODULE_CLASS := FAKE
89LOCAL_MODULE_TAGS := optional
90
91include $(BUILD_SYSTEM)/base_rules.mk
92
93$(LOCAL_BUILT_MODULE) : $(WPAN_TGZ)
94 echo "Unzip $(wpan.untarred_intermediates) <- $<"
95 $(hide) rm -rvf $(wpan.untarred_intermediates)/wpan
96 $(hide) mkdir -p $(wpan.untarred_intermediates)
97 $(hide) tar -C $(wpan.untarred_intermediates) -zvxf $<
98 $(hide) touch $(wpan.untarred_intermediates)
99
100$(LOCAL_INSTALLED_MODULE) : $(LOCAL_BUILT_MODULE) | $(ACP)
101 @echo "Copying wpan firmware ..."
102 @mkdir -p $(PRODUCT_OUT)/system/etc/firmware
103 $(hide) $(ACP) -rfpv $(wpan.untarred_intermediates)/wpan/*/*.bts $(PRODUCT_OUT)/system/etc/firmware/
104endif