img-sgx.untarred_intermediates := $(call intermediates-dir-for, FAKE, img-sgx.untarred)
img-sgx.untarred_timestamp := $(img-sgx.untarred_intermediates)/stamp
img-sgx.untarred_bin := $(img-sgx.untarred_intermediates)/sgx
img-sgx.tar := $(LOCAL_PATH)/$(TARGET_BOARD_PLATFORM)/sgx.tgz
include $(call all-subdir-makefiles)
$(img-sgx.untarred_timestamp) : $(img-sgx.tar)
@echo "Unzip $(dir $@) <- $<"
$(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
$(hide) tar -C $(dir $@) -xzf $<
# Install Ducati from the TGZ defined in the device-inherited mk file
#############################################
ti-ducati.untarred_intermediates := $(call intermediates-dir-for, FAKE, ti-ducati.untarred)
ti-ducati.untarred_timestamp := $(ti-ducati.untarred_intermediates)/stamp
$(ti-ducati.untarred_timestamp) : $(DUCATI_TGZ)
@echo "Unzip $(dir $@) <- $<)"
$(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
$(hide) tar -C $(dir $@) -zxf $<
LOCAL_MODULE := ducati-m3.bin
LOCAL_MODULE_CLASS := FAKE
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware
include $(BUILD_SYSTEM)/base_rules.mk
$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(ti-ducati.untarred_intermediates)/ducati-m3.bin
$(LOCAL_BUILT_MODULE) : $(ti-ducati.untarred_timestamp) | $(ACP)
@echo "Copy $@ <- $(PRIVATE_SRC)"
$(hide) $(ACP) -fp $(PRIVATE_SRC) $@
#############################################
#############################################
# Install Tesla-binary FW
#############################################
ti-tesla.untarred_intermediates := $(call intermediates-dir-for, FAKE, ti-tesla.untarred)
ti-tesla.untarred_timestamp := $(ti-tesla.untarred_intermediates)/stamp
$(ti-tesla.untarred_timestamp) : $(TESLA_TGZ)
@echo "Unzip $(dir $@) <- $<)"
$(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
$(hide) tar -C $(dir $@) -zxf $<
LOCAL_MODULE := tesla-dsp.bin
LOCAL_MODULE_CLASS := FAKE
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware