blob: 650a6a057437e026e737d09baa488bf40699323d [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
74#bbinstall.sh
75include $(CLEAR_VARS)
76LOCAL_MODULE := bbinstall.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
83#fix_permissions
84include $(CLEAR_VARS)
85LOCAL_MODULE := fix_permissions.sh
86LOCAL_MODULE_TAGS := eng
87LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
88LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
89LOCAL_SRC_FILES := $(LOCAL_MODULE)
90include $(BUILD_PREBUILT)
91
92#fs
93include $(CLEAR_VARS)
94LOCAL_MODULE := fs
95LOCAL_MODULE_TAGS := eng
96LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
97LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
98LOCAL_SRC_FILES := $(LOCAL_MODULE)
99include $(BUILD_PREBUILT)
100
101#mke2fs.conf
102include $(CLEAR_VARS)
103LOCAL_MODULE := mke2fs.conf
104LOCAL_MODULE_TAGS := eng
105LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
106LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc
107LOCAL_SRC_FILES := $(LOCAL_MODULE)
108include $(BUILD_PREBUILT)
109
110ifeq ($(BOARD_HAS_NO_REAL_SDCARD),)
111 #parted
112 include $(CLEAR_VARS)
113 LOCAL_MODULE := parted
114 LOCAL_MODULE_TAGS := eng
115 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
116 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
117 LOCAL_SRC_FILES := $(LOCAL_MODULE)
118 include $(BUILD_PREBUILT)
119
120 #sdparted
121 include $(CLEAR_VARS)
122 LOCAL_MODULE := sdparted
123 LOCAL_MODULE_TAGS := eng
124 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
125 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
126 LOCAL_SRC_FILES := $(LOCAL_MODULE)
127 include $(BUILD_PREBUILT)
128endif
129
130ifeq ($(TW_INCLUDE_DUMLOCK), true)
131 #htcdumlock for /system for dumlock
132 include $(CLEAR_VARS)
133 LOCAL_MODULE := htcdumlocksys
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 #flash_image for /system for dumlock
141 include $(CLEAR_VARS)
142 LOCAL_MODULE := flash_imagesys
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 #dump_image for /system for dumlock
150 include $(CLEAR_VARS)
151 LOCAL_MODULE := dump_imagesys
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 #libbmlutils for /system for dumlock
159 include $(CLEAR_VARS)
160 LOCAL_MODULE := libbmlutils.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 #libflashutils for /system for dumlock
168 include $(CLEAR_VARS)
169 LOCAL_MODULE := libflashutils.so
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)
175
176 #libmmcutils for /system for dumlock
177 include $(CLEAR_VARS)
178 LOCAL_MODULE := libmmcutils.so
179 LOCAL_MODULE_TAGS := eng
180 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
181 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
182 LOCAL_SRC_FILES := $(LOCAL_MODULE)
183 include $(BUILD_PREBUILT)
184
185 #libmtdutils for /system for dumlock
186 include $(CLEAR_VARS)
187 LOCAL_MODULE := libmtdutils.so
188 LOCAL_MODULE_TAGS := eng
189 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
190 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
191 LOCAL_SRC_FILES := $(LOCAL_MODULE)
192 include $(BUILD_PREBUILT)
193
194 #HTCDumlock.apk
195 include $(CLEAR_VARS)
196 LOCAL_MODULE := HTCDumlock.apk
197 LOCAL_MODULE_TAGS := eng
198 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
199 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
200 LOCAL_SRC_FILES := $(LOCAL_MODULE)
201 include $(BUILD_PREBUILT)
202endif