diff options
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -42,6 +42,35 @@ endif | |||
42 | ############################################# | 42 | ############################################# |
43 | 43 | ||
44 | ############################################# | 44 | ############################################# |
45 | # Install J6Entry touch firmware | ||
46 | ############################################# | ||
47 | ifneq ($(TOUCH_TGZ),) | ||
48 | ti-touch.untarred_intermediates := $(call intermediates-dir-for, FAKE, ti-touch.untarred) | ||
49 | ti-touch.untarred_timestamp := $(ti-touch.untarred_intermediates)/stamp | ||
50 | |||
51 | $(ti-touch.untarred_timestamp) : $(TOUCH_TGZ) | ||
52 | @echo "Unzip $(dir $@) <- $<)" | ||
53 | $(hide) rm -rf $(dir $@) && mkdir -p $(dir $@) | ||
54 | $(hide) tar -C $(dir $@) -zxf $< | ||
55 | $(hide) touch $@ | ||
56 | |||
57 | include $(CLEAR_VARS) | ||
58 | LOCAL_MODULE := $(TOUCH_BINARY) | ||
59 | LOCAL_MODULE_CLASS := FAKE | ||
60 | LOCAL_MODULE_TAGS := optional | ||
61 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware | ||
62 | |||
63 | include $(BUILD_SYSTEM)/base_rules.mk | ||
64 | |||
65 | $(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $(ti-touch.untarred_intermediates)/$(TOUCH_BINARY) | ||
66 | $(LOCAL_BUILT_MODULE) : $(ti-touch.untarred_timestamp) | $(ACP) | ||
67 | @echo "Copy $@ <- $(PRIVATE_SRC)" | ||
68 | @mkdir -p $(dir $@) | ||
69 | $(hide) $(ACP) -fp $(PRIVATE_SRC) $@ | ||
70 | endif | ||
71 | ############################################# | ||
72 | |||
73 | ############################################# | ||
45 | # Install Tesla-binary FW | 74 | # Install Tesla-binary FW |
46 | ############################################# | 75 | ############################################# |
47 | 76 | ||