Updated Ducati installation logic
[android-sdk/device-ti-proprietary-open.git] / Android.mk
1 LOCAL_PATH := $(my-dir)
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))
5 # Install Ducati from the TGZ defined in the device-inherited mk file
6 #############################################
7 ifneq ($(DUCATI_TGZ),)
8 ti-ducati.untarred_intermediates := $(call intermediates-dir-for, FAKE, ti-ducati.untarred)
9 ti-ducati.untarred_timestamp := $(ti-ducati.untarred_intermediates)/stamp
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 $@
17 include $(CLEAR_VARS)
18 LOCAL_MODULE := ducati-m3.bin
19 LOCAL_MODULE_CLASS := FAKE
20 LOCAL_MODULE_TAGS := optional
21 LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
23 include $(BUILD_SYSTEM)/base_rules.mk
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) $@
30 endif
31 #############################################
33 include $(call all-subdir-makefiles)