blob: 86db949acfe6642ed8ae652f2270ffb5d3991661 [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
Matt Mowerfb1c4ff2014-04-16 13:43:36 -050012# Manage list
Dees_Troy51a0e822012-09-05 15:24:24 -040013RELINK_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
Ethan Yonker5c933692014-04-04 11:26:32 -050016ifneq ($(TW_USE_TOOLBOX), true)
17 RELINK_SOURCE_FILES += $(TARGET_OUT_OPTIONAL_EXECUTABLES)/busybox
18else
Ethan Yonkerbcc502c2014-11-10 11:22:10 -060019 RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/sh
20 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so
Ethan Yonker5c933692014-04-04 11:26:32 -050021endif
Dees_Troy51a0e822012-09-05 15:24:24 -040022RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/pigz
Ethan Yonker2d11d492014-12-12 11:43:21 -060023RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dosfsck
24RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dosfslabel
25RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkdosfs
Dees_Troy51a0e822012-09-05 15:24:24 -040026RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/e2fsck
27RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mke2fs
28RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/tune2fs
29RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/linker
Ethan Yonker1902c792014-12-03 16:48:36 -060030ifeq ($(TARGET_ARCH), arm64)
31 RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/linker64
32endif
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -040033#RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/twrpmtp
Dees_Troy51a0e822012-09-05 15:24:24 -040034RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libc.so
35RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcutils.so
Ethan Yonkerbcc502c2014-11-10 11:22:10 -060036RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrecovery.so
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -040037RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libusbhost.so
38RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libgccdemangle.so
39RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libutils.so
Dees_Troy51a0e822012-09-05 15:24:24 -040040RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdl.so
Dees_Troy51a0e822012-09-05 15:24:24 -040041RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_com_err.so
42RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_e2p.so
43RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so
44RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_profile.so
45RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_uuid.so
Ethan Yonker38c2ff82014-12-09 13:42:10 -060046ifneq ($(wildcard external/e2fsprogs/lib/quota/Android.mk),)
47 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_quota.so
48endif
Vojtech Bocek76ee9032014-09-07 15:01:56 +020049RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpng.so
Dees_Troy51a0e822012-09-05 15:24:24 -040050RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblog.so
51RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libm.so
52RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstdc++.so
53RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libz.so
Dees_Troy2673cec2013-04-02 20:22:16 +000054RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminuitwrp.so
55RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminadbd.so
56RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminzip.so
57RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmtdutils.so
bigbiff bigbiff9c754052013-01-09 09:09:08 -050058RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtar.so
bigbiff7b4c7a62015-01-01 19:44:14 -050059RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libutil-linux.so
60RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libuuid.so
61RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libfdisk.so
Vojtech Bocek7cc278b2013-02-24 01:40:19 +010062RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libblkid.so
Dees_Troy51a0e822012-09-05 15:24:24 -040063RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmmcutils.so
64RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbmlutils.so
65RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libflashutils.so
66RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstlport.so
Ethan Yonker67eb72a2014-11-07 10:44:37 -060067RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libfusesideload.so
Ethan Yonker738be7a2014-12-10 11:40:43 -060068ifeq ($(PLATFORM_SDK_VERSION), 21)
Ethan Yonker75bf0412014-11-21 13:54:27 -060069 # libraries from lollipop
70 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbacktrace.so
71 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libunwind.so
72 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libunwind-ptrace.so
73else
74 # Not available in lollipop
75 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcorkscrew.so
76endif
Ethan Yonker560e65f2014-11-17 11:37:00 -060077RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmincrypttwrp.so
Dees Troy8d66f8b2013-10-08 14:04:55 +000078RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/toolbox
Ethan Yonker03a42f62014-08-08 11:03:51 -050079ifneq ($(TW_OEM_BUILD),true)
80 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/twrp
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -040081else
82 TW_EXCLUDE_MTP := true
83endif
84ifneq ($(TW_EXCLUDE_MTP), true)
85 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwrpmtp.so
Ethan Yonker03a42f62014-08-08 11:03:51 -050086endif
Dees_Troya95f55c2013-08-17 13:14:43 +000087ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
88 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so
89endif
Dees_Troy2673cec2013-04-02 20:22:16 +000090RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libaosprecovery.so
Dees_Troy930bf012013-08-10 22:19:03 +000091RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so
Dees Troy4bf3b0d2013-09-11 19:12:49 +000092ifeq ($(TWHAVE_SELINUX), true)
Dees_Troyf2280ff2013-08-06 18:01:12 +000093 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libselinux.so
Dees_Troye3850a32013-08-29 18:33:47 +000094 ifneq ($(TARGET_USERIMAGES_USE_EXT4), true)
95 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so
96 endif
Dees_Troyf2280ff2013-08-06 18:01:12 +000097endif
Vojtech Bocek7cc278b2013-02-24 01:40:19 +010098ifeq ($(BUILD_ID), GINGERBREAD)
99 TW_NO_EXFAT := true
100endif
Dees_Troyb05ddee2013-01-28 20:24:50 +0000101ifneq ($(TW_NO_EXFAT), true)
Dees_Troyb05ddee2013-01-28 20:24:50 +0000102 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkexfatfs
Vojtech Bocek7cc278b2013-02-24 01:40:19 +0100103 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libexfat.so
Dees Troyb4bd6972014-10-09 18:47:00 +0000104else
Captain Throwback6a1acf22014-09-18 12:46:35 -0400105 TW_NO_EXFAT_FUSE := true
106endif
107ifneq ($(TW_NO_EXFAT_FUSE), true)
108 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/exfat-fuse
bigbiff bigbiff9c754052013-01-09 09:09:08 -0500109endif
Dees_Troy51a0e822012-09-05 15:24:24 -0400110ifeq ($(TW_INCLUDE_BLOBPACK), true)
111 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/blobpack
112endif
113ifeq ($(TW_INCLUDE_INJECTTWRP), true)
114 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/injecttwrp
115endif
116ifeq ($(TW_INCLUDE_DUMLOCK), true)
117 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/htcdumlock
118endif
119ifeq ($(TW_INCLUDE_CRYPTO), true)
Ethan Yonker4eca40d2014-11-11 14:52:28 -0600120 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcryptfslollipop.so
121 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so
Ethan Yonker4eca40d2014-11-11 14:52:28 -0600122 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhardware.so
Ethan Yonker4eca40d2014-11-11 14:52:28 -0600123endif
Dees_Troy38bd7602012-09-14 13:33:53 -0400124ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
125 RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/make_ext4fs
126endif
Dees_Troy4546fe72013-01-10 14:33:27 +0000127ifneq ($(wildcard system/core/libsparse/Android.mk),)
128 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsparse.so
129endif
Dees_Troy83bd4832013-05-04 12:39:56 +0000130ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true)
131 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/openaes
132 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libopenaes.so
133endif
Dees_Troye5017042013-08-29 16:38:55 +0000134ifeq ($(TARGET_USERIMAGES_USE_F2FS), true)
Ethan Yonker738be7a2014-12-10 11:40:43 -0600135 ifeq ($(PLATFORM_SDK_VERSION), 21)
Ethan Yonker75bf0412014-11-21 13:54:27 -0600136 RELINK_SOURCE_FILES += $(TARGET_ROOT_OUT_SBIN)/mkfs.f2fs
137 #RELINK_SOURCE_FILES += $(TARGET_ROOT_OUT_SBIN)/fibmap.f2fs
138 else
139 RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkfs.f2fs
140 RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/fibmap.f2fs
141 endif
Dees_Troye5017042013-08-29 16:38:55 +0000142 RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/fsck.f2fs
Dees_Troye5017042013-08-29 16:38:55 +0000143endif
Dees Troy0226cd52013-11-04 14:12:35 +0000144ifneq ($(wildcard system/core/reboot/Android.mk),)
145 RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/reboot
146endif
Vojtech Bocek76ee9032014-09-07 15:01:56 +0200147ifneq ($(TW_DISABLE_TTF), true)
148 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libft2.so
149endif
Ethan Yonker0e678372014-11-18 12:17:06 -0600150ifneq ($(TW_RECOVERY_ADDITIONAL_RELINK_FILES),)
151 RELINK_SOURCE_FILES += $(TW_RECOVERY_ADDITIONAL_RELINK_FILES)
152endif
Dees_Troy51a0e822012-09-05 15:24:24 -0400153
154TWRP_AUTOGEN := $(intermediates)/teamwin
155
156GEN := $(intermediates)/teamwin
157$(GEN): $(RELINK)
158$(GEN): $(RELINK_SOURCE_FILES) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery
159 $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/sbin $(RELINK_SOURCE_FILES)
Dees_Troy51a0e822012-09-05 15:24:24 -0400160
161LOCAL_GENERATED_SOURCES := $(GEN)
162LOCAL_SRC_FILES := teamwin $(GEN)
163include $(BUILD_PREBUILT)
164
Dees_Troy51a0e822012-09-05 15:24:24 -0400165#fix_permissions
166include $(CLEAR_VARS)
167LOCAL_MODULE := fix_permissions.sh
168LOCAL_MODULE_TAGS := eng
169LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
170LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
171LOCAL_SRC_FILES := $(LOCAL_MODULE)
172include $(BUILD_PREBUILT)
173
Dees_Troy51a0e822012-09-05 15:24:24 -0400174#mke2fs.conf
175include $(CLEAR_VARS)
176LOCAL_MODULE := mke2fs.conf
177LOCAL_MODULE_TAGS := eng
178LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
179LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc
180LOCAL_SRC_FILES := $(LOCAL_MODULE)
181include $(BUILD_PREBUILT)
182
183ifeq ($(BOARD_HAS_NO_REAL_SDCARD),)
184 #parted
185 include $(CLEAR_VARS)
186 LOCAL_MODULE := parted
187 LOCAL_MODULE_TAGS := eng
188 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
189 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
190 LOCAL_SRC_FILES := $(LOCAL_MODULE)
191 include $(BUILD_PREBUILT)
Dees_Troy51a0e822012-09-05 15:24:24 -0400192endif
193
Dees_Troy83bd4832013-05-04 12:39:56 +0000194# copy license file for OpenAES
195ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true)
196 include $(CLEAR_VARS)
197 LOCAL_MODULE := ../openaes/LICENSE
198 LOCAL_MODULE_TAGS := eng
199 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
200 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/license/openaes
201 LOCAL_SRC_FILES := $(LOCAL_MODULE)
202 include $(BUILD_PREBUILT)
203endif
204
Dees_Troy51a0e822012-09-05 15:24:24 -0400205ifeq ($(TW_INCLUDE_DUMLOCK), true)
206 #htcdumlock for /system for dumlock
207 include $(CLEAR_VARS)
208 LOCAL_MODULE := htcdumlocksys
209 LOCAL_MODULE_TAGS := eng
210 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
211 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
212 LOCAL_SRC_FILES := $(LOCAL_MODULE)
213 include $(BUILD_PREBUILT)
214
215 #flash_image for /system for dumlock
216 include $(CLEAR_VARS)
217 LOCAL_MODULE := flash_imagesys
218 LOCAL_MODULE_TAGS := eng
219 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
220 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
221 LOCAL_SRC_FILES := $(LOCAL_MODULE)
222 include $(BUILD_PREBUILT)
223
224 #dump_image for /system for dumlock
225 include $(CLEAR_VARS)
226 LOCAL_MODULE := dump_imagesys
227 LOCAL_MODULE_TAGS := eng
228 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
229 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
230 LOCAL_SRC_FILES := $(LOCAL_MODULE)
231 include $(BUILD_PREBUILT)
232
233 #libbmlutils for /system for dumlock
234 include $(CLEAR_VARS)
235 LOCAL_MODULE := libbmlutils.so
236 LOCAL_MODULE_TAGS := eng
237 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
238 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
239 LOCAL_SRC_FILES := $(LOCAL_MODULE)
240 include $(BUILD_PREBUILT)
241
242 #libflashutils for /system for dumlock
243 include $(CLEAR_VARS)
244 LOCAL_MODULE := libflashutils.so
245 LOCAL_MODULE_TAGS := eng
246 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
247 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
248 LOCAL_SRC_FILES := $(LOCAL_MODULE)
249 include $(BUILD_PREBUILT)
250
251 #libmmcutils for /system for dumlock
252 include $(CLEAR_VARS)
253 LOCAL_MODULE := libmmcutils.so
254 LOCAL_MODULE_TAGS := eng
255 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
256 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
257 LOCAL_SRC_FILES := $(LOCAL_MODULE)
258 include $(BUILD_PREBUILT)
259
260 #libmtdutils for /system for dumlock
261 include $(CLEAR_VARS)
262 LOCAL_MODULE := libmtdutils.so
263 LOCAL_MODULE_TAGS := eng
264 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
265 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
266 LOCAL_SRC_FILES := $(LOCAL_MODULE)
267 include $(BUILD_PREBUILT)
268
269 #HTCDumlock.apk
270 include $(CLEAR_VARS)
271 LOCAL_MODULE := HTCDumlock.apk
272 LOCAL_MODULE_TAGS := eng
273 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
274 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
275 LOCAL_SRC_FILES := $(LOCAL_MODULE)
276 include $(BUILD_PREBUILT)
277endif
Dees_Troy6ef66352013-02-21 08:26:57 -0600278
279ifneq ($(TW_EXCLUDE_SUPERSU), true)
Ethan Yonkere3e88292014-12-10 16:17:55 -0600280 ifeq ($(TARGET_ARCH), arm)
281 #chattr.pie
282 include $(CLEAR_VARS)
283 LOCAL_MODULE := chattr.pie
284 LOCAL_MODULE_TAGS := eng
285 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
286 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu
287 LOCAL_SRC_FILES := $(LOCAL_MODULE)
288 include $(BUILD_PREBUILT)
Dees_Troy6ef66352013-02-21 08:26:57 -0600289
Ethan Yonkere3e88292014-12-10 16:17:55 -0600290 #libsupol.so
291 include $(CLEAR_VARS)
292 LOCAL_MODULE := libsupol.so
293 LOCAL_MODULE_TAGS := eng
294 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
295 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu
296 LOCAL_SRC_FILES := $(LOCAL_MODULE)
297 include $(BUILD_PREBUILT)
298
299 #su binary
300 include $(CLEAR_VARS)
301 LOCAL_MODULE := su
302 LOCAL_MODULE_TAGS := eng
303 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
304 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu
305 LOCAL_SRC_FILES := $(LOCAL_MODULE)
306 include $(BUILD_PREBUILT)
307
308 #supolicy
309 include $(CLEAR_VARS)
310 LOCAL_MODULE := supolicy
311 LOCAL_MODULE_TAGS := eng
312 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
313 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu
314 LOCAL_SRC_FILES := $(LOCAL_MODULE)
315 include $(BUILD_PREBUILT)
316 endif
317 ifeq ($(TARGET_ARCH), arm64)
318 #libsupol.so
319 include $(CLEAR_VARS)
320 LOCAL_MODULE := libsupol.soarm64
321 LOCAL_MODULE_STEM := libsupol.so
322 LOCAL_MODULE_TAGS := eng
323 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
324 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu
325 LOCAL_SRC_FILES := $(LOCAL_MODULE)
326 include $(BUILD_PREBUILT)
327
328 #su binary
329 include $(CLEAR_VARS)
330 LOCAL_MODULE := suarm64
331 LOCAL_MODULE_STEM := su
332 LOCAL_MODULE_TAGS := eng
333 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
334 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu
335 LOCAL_SRC_FILES := $(LOCAL_MODULE)
336 include $(BUILD_PREBUILT)
337
338 #supolicy
339 include $(CLEAR_VARS)
340 LOCAL_MODULE := supolicyarm64
341 LOCAL_MODULE_STEM := supolicy
342 LOCAL_MODULE_TAGS := eng
343 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
344 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu
345 LOCAL_SRC_FILES := $(LOCAL_MODULE)
346 include $(BUILD_PREBUILT)
347 endif
348
349 #install-recovery.sh
Dees_Troya7939bb2013-08-29 20:21:12 +0000350 include $(CLEAR_VARS)
351 LOCAL_MODULE := install-recovery.sh
352 LOCAL_MODULE_TAGS := eng
353 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
354 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu
355 LOCAL_SRC_FILES := $(LOCAL_MODULE)
356 include $(BUILD_PREBUILT)
357
Ethan Yonkere3e88292014-12-10 16:17:55 -0600358 #install-supersu.sh
359 include $(CLEAR_VARS)
360 LOCAL_MODULE := install-supersu.sh
361 LOCAL_MODULE_TAGS := eng
362 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
363 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu
364 LOCAL_SRC_FILES := $(LOCAL_MODULE)
365 include $(BUILD_PREBUILT)
366
367 #99SuperSUDaemon
Dees_Troya7939bb2013-08-29 20:21:12 +0000368 include $(CLEAR_VARS)
369 LOCAL_MODULE := 99SuperSUDaemon
370 LOCAL_MODULE_TAGS := eng
371 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
372 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu
373 LOCAL_SRC_FILES := $(LOCAL_MODULE)
374 include $(BUILD_PREBUILT)
375
Dees_Troy6ef66352013-02-21 08:26:57 -0600376 #SuperSU special installer APK
377 include $(CLEAR_VARS)
378 LOCAL_MODULE := Superuser.apk
379 LOCAL_MODULE_TAGS := eng
380 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
jt1134113ee732013-02-22 23:26:10 -0600381 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu
Dees_Troy6ef66352013-02-21 08:26:57 -0600382 LOCAL_SRC_FILES := $(LOCAL_MODULE)
383 include $(BUILD_PREBUILT)
jt1134113ee732013-02-22 23:26:10 -0600384endif