summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames W. Mills2012-04-12 14:06:05 -0500
committerJames W. Mills2012-04-17 16:36:53 -0500
commit8d06bbd40d35d9daee544d338f81bde0e6f58158 (patch)
treeefb19c1acf4d4cc902659770c2262fbaa60c41a1 /Android.mk
parent2efc270e4334ba0ea551b8f406d84bb047d715ad (diff)
downloaddevice-ti-proprietary-open-8d06bbd40d35d9daee544d338f81bde0e6f58158.tar.gz
device-ti-proprietary-open-8d06bbd40d35d9daee544d338f81bde0e6f58158.tar.xz
device-ti-proprietary-open-8d06bbd40d35d9daee544d338f81bde0e6f58158.zip
Updated Ducati installation logic
This patch moves the ducati installation logic into the top-level Android.mk for proprietary-open, and generalizes the procedure so that new devices can be added easily. Benefis include: * Unpacking into an intermediate location * Only unpacked if enabled for a specific device * All devices can use the same PRODUCT_PACKAGE definition * User-defined ducati TGZ location Change-Id: I48314920b138230e73b3a56e1ff899ad82289b59 Signed-off-by: James W. Mills <jameswmills@ti.com>
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index c477016..009ccae 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,4 +1,33 @@
1LOCAL_PATH := $(my-dir) 1LOCAL_PATH := $(my-dir)
2$(hide $(shell $(LOCAL_PATH)/untar.sh $(LOCAL_PATH)/omap4 sgx $(LOCAL_PATH)/omap4/sgx.tgz)) 2$(hide $(shell $(LOCAL_PATH)/untar.sh $(LOCAL_PATH)/omap4 sgx $(LOCAL_PATH)/omap4/sgx.tgz))
3$(hide $(shell $(LOCAL_PATH)/untar.sh $(LOCAL_PATH)/wl12xx wpan $(LOCAL_PATH)/wl12xx/wpan.tgz)) 3$(hide $(shell $(LOCAL_PATH)/untar.sh $(LOCAL_PATH)/wl12xx wpan $(LOCAL_PATH)/wl12xx/wpan.tgz))
4
5# Install Ducati from the TGZ defined in the device-inherited mk file
6#############################################
7ifneq ($(DUCATI_TGZ),)
8ti-ducati.untarred_intermediates := $(call intermediates-dir-for, FAKE, ti-ducati.untarred)
9ti-ducati.untarred_timestamp := $(ti-ducati.untarred_intermediates)/stamp
10
11$(ti-ducati.untarred_timestamp) : $(DUCATI_TGZ)
12 @echo "Unzip $(dir $@) <- $<)"
13 $(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
14 $(hide) tar -C $(dir $@) -zxf $<
15 $(hide) touch $@
16
17include $(CLEAR_VARS)
18LOCAL_MODULE := ducati-m3.bin
19LOCAL_MODULE_CLASS := FAKE
20LOCAL_MODULE_TAGS := optional
21LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
22
23include $(BUILD_SYSTEM)/base_rules.mk
24
25$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(ti-ducati.untarred_intermediates)/ducati-m3.bin
26$(LOCAL_BUILT_MODULE) : $(ti-ducati.untarred_timestamp) | $(ACP)
27 @echo "Copy $@ <- $(PRIVATE_SRC)"
28 @mkdir -p $(dir $@)
29 $(hide) $(ACP) -fp $(PRIVATE_SRC) $@
30endif
31#############################################
32
4include $(call all-subdir-makefiles) 33include $(call all-subdir-makefiles)