blob: 048077a223703a919f7c44f4819ce1baf16511ee [file] [log] [blame]
Dees_Troy51a0e822012-09-05 15:24:24 -04001LOCAL_PATH := $(call my-dir)
2
3RELINK := $(LOCAL_PATH)/relink.sh
4
5#dummy file to trigger required modules
6include $(CLEAR_VARS)
7LOCAL_MODULE := teamwin
8LOCAL_MODULE_TAGS := eng
9LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
10LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
11
12# Manage list
13RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dump_image
14RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/flash_image
15RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/erase_image
16RELINK_SOURCE_FILES += $(TARGET_OUT_OPTIONAL_EXECUTABLES)/busybox
17RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/pigz
18RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/e2fsck
19RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mke2fs
20RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/tune2fs
21RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/linker
22RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libc.so
23RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcutils.so
24RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdl.so
25RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_blkid.so
26RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_com_err.so
27RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_e2p.so
28RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so
29RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_profile.so
30RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_uuid.so
31RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblog.so
32RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libm.so
33RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstdc++.so
34RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libz.so
35#RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so
36#RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmtdutils.so
37RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmmcutils.so
38RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbmlutils.so
39RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libflashutils.so
40RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstlport.so
Dees_Troyb9d88ac2012-09-14 14:34:19 -040041RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmincrypt.so
Dees_Troy43d8b002012-09-17 16:00:01 -040042RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so
Dees_Troy51a0e822012-09-05 15:24:24 -040043ifeq ($(TW_INCLUDE_BLOBPACK), true)
44 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/blobpack
45endif
46ifeq ($(TW_INCLUDE_INJECTTWRP), true)
47 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/injecttwrp
48endif
49ifeq ($(TW_INCLUDE_DUMLOCK), true)
50 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/htcdumlock
51endif
52ifeq ($(TW_INCLUDE_CRYPTO), true)
53 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so
54endif
55ifeq ($(TW_INCLUDE_JB_CRYPTO), true)
56 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so
57endif
Dees_Troy38bd7602012-09-14 13:33:53 -040058ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
59 RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/make_ext4fs
60endif
Dees_Troy51a0e822012-09-05 15:24:24 -040061
62TWRP_AUTOGEN := $(intermediates)/teamwin
63
64GEN := $(intermediates)/teamwin
65$(GEN): $(RELINK)
66$(GEN): $(RELINK_SOURCE_FILES) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery
67 $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/sbin $(RELINK_SOURCE_FILES)
68 $(RELINK) $(call intermediates-dir-for,EXECUTABLES,recovery) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery
69
70LOCAL_GENERATED_SOURCES := $(GEN)
71LOCAL_SRC_FILES := teamwin $(GEN)
72include $(BUILD_PREBUILT)
73
Dees_Troy51a0e822012-09-05 15:24:24 -040074#fix_permissions
75include $(CLEAR_VARS)
76LOCAL_MODULE := fix_permissions.sh
77LOCAL_MODULE_TAGS := eng
78LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
79LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
80LOCAL_SRC_FILES := $(LOCAL_MODULE)
81include $(BUILD_PREBUILT)
82
Dees_Troy51a0e822012-09-05 15:24:24 -040083#mke2fs.conf
84include $(CLEAR_VARS)
85LOCAL_MODULE := mke2fs.conf
86LOCAL_MODULE_TAGS := eng
87LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
88LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc
89LOCAL_SRC_FILES := $(LOCAL_MODULE)
90include $(BUILD_PREBUILT)
91
92ifeq ($(BOARD_HAS_NO_REAL_SDCARD),)
93 #parted
94 include $(CLEAR_VARS)
95 LOCAL_MODULE := parted
96 LOCAL_MODULE_TAGS := eng
97 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
98 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
99 LOCAL_SRC_FILES := $(LOCAL_MODULE)
100 include $(BUILD_PREBUILT)
Dees_Troy51a0e822012-09-05 15:24:24 -0400101endif
102
103ifeq ($(TW_INCLUDE_DUMLOCK), true)
104 #htcdumlock for /system for dumlock
105 include $(CLEAR_VARS)
106 LOCAL_MODULE := htcdumlocksys
107 LOCAL_MODULE_TAGS := eng
108 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
109 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
110 LOCAL_SRC_FILES := $(LOCAL_MODULE)
111 include $(BUILD_PREBUILT)
112
113 #flash_image for /system for dumlock
114 include $(CLEAR_VARS)
115 LOCAL_MODULE := flash_imagesys
116 LOCAL_MODULE_TAGS := eng
117 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
118 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
119 LOCAL_SRC_FILES := $(LOCAL_MODULE)
120 include $(BUILD_PREBUILT)
121
122 #dump_image for /system for dumlock
123 include $(CLEAR_VARS)
124 LOCAL_MODULE := dump_imagesys
125 LOCAL_MODULE_TAGS := eng
126 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
127 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
128 LOCAL_SRC_FILES := $(LOCAL_MODULE)
129 include $(BUILD_PREBUILT)
130
131 #libbmlutils for /system for dumlock
132 include $(CLEAR_VARS)
133 LOCAL_MODULE := libbmlutils.so
134 LOCAL_MODULE_TAGS := eng
135 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
136 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
137 LOCAL_SRC_FILES := $(LOCAL_MODULE)
138 include $(BUILD_PREBUILT)
139
140 #libflashutils for /system for dumlock
141 include $(CLEAR_VARS)
142 LOCAL_MODULE := libflashutils.so
143 LOCAL_MODULE_TAGS := eng
144 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
145 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
146 LOCAL_SRC_FILES := $(LOCAL_MODULE)
147 include $(BUILD_PREBUILT)
148
149 #libmmcutils for /system for dumlock
150 include $(CLEAR_VARS)
151 LOCAL_MODULE := libmmcutils.so
152 LOCAL_MODULE_TAGS := eng
153 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
154 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
155 LOCAL_SRC_FILES := $(LOCAL_MODULE)
156 include $(BUILD_PREBUILT)
157
158 #libmtdutils for /system for dumlock
159 include $(CLEAR_VARS)
160 LOCAL_MODULE := libmtdutils.so
161 LOCAL_MODULE_TAGS := eng
162 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
163 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
164 LOCAL_SRC_FILES := $(LOCAL_MODULE)
165 include $(BUILD_PREBUILT)
166
167 #HTCDumlock.apk
168 include $(CLEAR_VARS)
169 LOCAL_MODULE := HTCDumlock.apk
170 LOCAL_MODULE_TAGS := eng
171 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
172 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
173 LOCAL_SRC_FILES := $(LOCAL_MODULE)
174 include $(BUILD_PREBUILT)
175endif