Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | RELINK := $(LOCAL_PATH)/relink.sh |
| 4 | |
| 5 | #dummy file to trigger required modules |
| 6 | include $(CLEAR_VARS) |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 7 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 8 | LOCAL_MODULE := teamwin |
| 9 | LOCAL_MODULE_TAGS := eng |
| 10 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 11 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 12 | |
Matt Mower | fb1c4ff | 2014-04-16 13:43:36 -0500 | [diff] [blame] | 13 | # Manage list |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 14 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dump_image |
| 15 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/flash_image |
| 16 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/erase_image |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 17 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/bu |
Ethan Yonker | 5c93369 | 2014-04-04 11:26:32 -0500 | [diff] [blame] | 18 | ifneq ($(TW_USE_TOOLBOX), true) |
| 19 | RELINK_SOURCE_FILES += $(TARGET_OUT_OPTIONAL_EXECUTABLES)/busybox |
| 20 | else |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 21 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/sh |
| 22 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
Hashcode | 5733215 | 2016-12-20 01:30:49 +0100 | [diff] [blame] | 23 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 23; echo $$?),0) |
sndnvaps | a915ec4 | 2016-02-16 18:45:19 +0800 | [diff] [blame] | 24 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/toybox |
dianlujitao | ce608ab | 2015-12-28 23:51:19 +0800 | [diff] [blame] | 25 | ifneq ($(wildcard external/zip/Android.mk),) |
| 26 | RELINK_SOURCE_FILES += $(TARGET_OUT_OPTIONAL_EXECUTABLES)/zip |
| 27 | endif |
| 28 | ifneq ($(wildcard external/unzip/Android.mk),) |
| 29 | RELINK_SOURCE_FILES += $(TARGET_OUT_OPTIONAL_EXECUTABLES)/unzip |
| 30 | endif |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 31 | endif |
Ethan Yonker | 5c93369 | 2014-04-04 11:26:32 -0500 | [diff] [blame] | 32 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 33 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/pigz |
Matt Mower | 18794c8 | 2015-11-11 16:22:45 -0600 | [diff] [blame] | 34 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/fsck.fat |
| 35 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/fatlabel |
| 36 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkfs.fat |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 37 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/e2fsck |
| 38 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mke2fs |
| 39 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/tune2fs |
Ethan Yonker | a271915 | 2015-05-28 09:44:41 -0500 | [diff] [blame] | 40 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/resize2fs |
HashBang | ed974bb | 2016-01-30 14:20:09 -0500 | [diff] [blame] | 41 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/simg2img |
Ethan Yonker | 4f6a976 | 2015-03-09 13:58:54 -0500 | [diff] [blame] | 42 | ifneq ($(TARGET_ARCH), x86_64) |
| 43 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/linker |
| 44 | endif |
| 45 | ifeq ($(TARGET_ARCH), x86_64) |
| 46 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/linker64 |
| 47 | endif |
Ethan Yonker | 1902c79 | 2014-12-03 16:48:36 -0600 | [diff] [blame] | 48 | ifeq ($(TARGET_ARCH), arm64) |
| 49 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/linker64 |
| 50 | endif |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 51 | #RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/twrpmtp |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 52 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libc.so |
| 53 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcutils.so |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 54 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrecovery.so |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 55 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libusbhost.so |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 56 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libutils.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 57 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdl.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 58 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_com_err.so |
| 59 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_e2p.so |
| 60 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so |
| 61 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_profile.so |
| 62 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_uuid.so |
Ethan Yonker | 38c2ff8 | 2014-12-09 13:42:10 -0600 | [diff] [blame] | 63 | ifneq ($(wildcard external/e2fsprogs/lib/quota/Android.mk),) |
| 64 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_quota.so |
| 65 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 66 | ifneq ($(wildcard external/e2fsprogs/lib/ext2fs/Android.*),) |
Ethan Yonker | bcff146 | 2015-01-04 22:01:33 -0600 | [diff] [blame] | 67 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so |
| 68 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 69 | ifneq ($(wildcard external/e2fsprogs/lib/blkid/Android.*),) |
Ethan Yonker | bcff146 | 2015-01-04 22:01:33 -0600 | [diff] [blame] | 70 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_blkid.so |
| 71 | endif |
Vojtech Bocek | 76ee903 | 2014-09-07 15:01:56 +0200 | [diff] [blame] | 72 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpng.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 73 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblog.so |
| 74 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libm.so |
| 75 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstdc++.so |
| 76 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libz.so |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 77 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminuitwrp.so |
| 78 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminadbd.so |
| 79 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminzip.so |
| 80 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmtdutils.so |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 81 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtar.so |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 82 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwadbbu.so |
bigbiff bigbiff | 56cf564 | 2016-08-19 17:43:45 -0400 | [diff] [blame] | 83 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwrpdigest.so |
bigbiff | 7b4c7a6 | 2015-01-01 19:44:14 -0500 | [diff] [blame] | 84 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libutil-linux.so |
Vojtech Bocek | 7cc278b | 2013-02-24 01:40:19 +0100 | [diff] [blame] | 85 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libblkid.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 86 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmmcutils.so |
| 87 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbmlutils.so |
| 88 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libflashutils.so |
Ethan Yonker | 67eb72a | 2014-11-07 10:44:37 -0600 | [diff] [blame] | 89 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libfusesideload.so |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 90 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbootloader_message_twrp.so |
| 91 | ifeq ($(PLATFORM_SDK_VERSION), 22) |
| 92 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libc++.so |
| 93 | endif |
Ethan Yonker | 34ae483 | 2016-08-24 15:32:18 -0500 | [diff] [blame] | 94 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0) |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 95 | # These libraries are no longer present in M |
| 96 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstlport.so |
| 97 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libgccdemangle.so |
| 98 | endif |
Ethan Yonker | 534d4e0 | 2016-08-26 10:05:03 -0500 | [diff] [blame] | 99 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 23; echo $$?),0) |
D. Andrei Măceș | b29a5e2 | 2016-12-22 06:19:44 -0500 | [diff] [blame] | 100 | |
| 101 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so \ |
| 102 | $(if $(WITH_CRYPTO_UTILS),$(TARGET_OUT_SHARED_LIBRARIES)/libcrypto_utils.so) |
Ethan Yonker | 34ae483 | 2016-08-24 15:32:18 -0500 | [diff] [blame] | 103 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpackagelistparser.so |
| 104 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblzma.so |
| 105 | endif |
mar-v-in | 4142408 | 2015-03-10 19:06:16 +0100 | [diff] [blame] | 106 | ifneq (,$(filter $(PLATFORM_SDK_VERSION), 21 22)) |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 107 | # libraries from lollipop |
| 108 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbacktrace.so |
| 109 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libunwind.so |
| 110 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libunwind-ptrace.so |
Vojtech Bocek | 41ae124 | 2015-01-04 21:57:50 +0100 | [diff] [blame] | 111 | # Dynamically loaded by lollipop libc and may prevent unmounting system if it is not present in sbin |
| 112 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libnetd_client.so |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 113 | else |
Ethan Yonker | 34ae483 | 2016-08-24 15:32:18 -0500 | [diff] [blame] | 114 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 23; echo $$?),0) |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 115 | # Android M libraries |
| 116 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbacktrace.so |
| 117 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libunwind.so |
| 118 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbase.so |
| 119 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libc++.so |
| 120 | # Dynamically loaded by libc and may prevent unmounting system if it is not present in sbin |
| 121 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libnetd_client.so |
| 122 | else |
| 123 | # Not available in lollipop |
| 124 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcorkscrew.so |
| 125 | endif |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 126 | endif |
Ethan Yonker | f117962 | 2016-08-25 15:32:21 -0500 | [diff] [blame] | 127 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?),0) |
| 128 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmincrypttwrp.so |
| 129 | endif |
| 130 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/toolbox |
Ethan Yonker | 03a42f6 | 2014-08-08 11:03:51 -0500 | [diff] [blame] | 131 | ifneq ($(TW_OEM_BUILD),true) |
| 132 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/twrp |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 133 | else |
| 134 | TW_EXCLUDE_MTP := true |
| 135 | endif |
| 136 | ifneq ($(TW_EXCLUDE_MTP), true) |
| 137 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwrpmtp.so |
Ethan Yonker | 03a42f6 | 2014-08-08 11:03:51 -0500 | [diff] [blame] | 138 | endif |
Matt Mower | 8741364 | 2017-01-17 21:14:46 -0600 | [diff] [blame] | 139 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 140 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libaosprecovery.so |
Greg Wallace | ace7623 | 2016-01-27 17:15:51 -0500 | [diff] [blame] | 141 | ifneq ($(TW_INCLUDE_JPEG),) |
| 142 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so |
| 143 | endif |
Matt Mower | 8741364 | 2017-01-17 21:14:46 -0600 | [diff] [blame] | 144 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libselinux.so |
Vojtech Bocek | 7cc278b | 2013-02-24 01:40:19 +0100 | [diff] [blame] | 145 | ifeq ($(BUILD_ID), GINGERBREAD) |
| 146 | TW_NO_EXFAT := true |
| 147 | endif |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 148 | ifneq ($(TW_NO_EXFAT), true) |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 149 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkexfatfs |
Matt Mower | 80f7b36 | 2015-12-12 15:38:01 -0600 | [diff] [blame] | 150 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/fsck.exfat |
Ethan Yonker | dc3bc46 | 2015-12-08 15:12:40 -0600 | [diff] [blame] | 151 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libexfat_twrp.so |
Dees Troy | b4bd697 | 2014-10-09 18:47:00 +0000 | [diff] [blame] | 152 | else |
Captain Throwback | 6a1acf2 | 2014-09-18 12:46:35 -0400 | [diff] [blame] | 153 | TW_NO_EXFAT_FUSE := true |
| 154 | endif |
| 155 | ifneq ($(TW_NO_EXFAT_FUSE), true) |
| 156 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/exfat-fuse |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 157 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 158 | ifeq ($(TW_INCLUDE_BLOBPACK), true) |
| 159 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/blobpack |
| 160 | endif |
| 161 | ifeq ($(TW_INCLUDE_INJECTTWRP), true) |
| 162 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/injecttwrp |
| 163 | endif |
| 164 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 165 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/htcdumlock |
| 166 | endif |
| 167 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 168 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcryptfslollipop.so |
| 169 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 170 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhardware.so |
Ethan Yonker | 66a1949 | 2015-12-10 10:19:45 -0600 | [diff] [blame] | 171 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libgpt_twrp.so |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 172 | ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) |
Ethan Yonker | dcd9f3f | 2017-06-05 09:23:34 -0500 | [diff] [blame] | 173 | ifeq ($(TARGET_CRYPTFS_HW_PATH),) |
| 174 | RELINK_SOURCE_FILES += $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/libcryptfs_hw.so |
| 175 | else |
| 176 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcryptfs_hw.so |
| 177 | endif |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 178 | endif |
Ethan Yonker | bd7492d | 2016-12-07 13:55:01 -0600 | [diff] [blame] | 179 | # FBE files |
| 180 | ifeq ($(TW_INCLUDE_CRYPTO_FBE), true) |
| 181 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libe4crypt.so |
| 182 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libgatekeeper.so |
| 183 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsoftkeymaster.so |
| 184 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_messages.so |
| 185 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeystore_binder.so |
| 186 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbinder.so |
| 187 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libprotobuf-cpp-lite.so |
| 188 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsoftkeymasterdevice.so |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 189 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 25; echo $$?),0) |
| 190 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.gatekeeper@1.0.so |
| 191 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/hwservicemanager |
| 192 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/avbctl |
| 193 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/hwservicemanager |
| 194 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore |
| 195 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/keystore_cli |
| 196 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/servicemanager |
| 197 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.system.wifi.keystore@1.0.so |
Ethan Yonker | 31344a3 | 2017-11-29 12:13:41 -0600 | [diff] [blame] | 198 | ifneq ($(wildcard system/keymaster/keymaster_stl.cpp),) |
| 199 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_portable.so |
| 200 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_staging.so |
| 201 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 202 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libwifikeystorehal.so |
Ethan Yonker | 31344a3 | 2017-11-29 12:13:41 -0600 | [diff] [blame] | 203 | ifneq ($(wildcard hardware/interfaces/weaver/Android.bp),) |
| 204 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.weaver@1.0.so |
| 205 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 206 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhardware_legacy.so |
| 207 | else |
| 208 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster1.so |
| 209 | endif |
Ethan Yonker | bd7492d | 2016-12-07 13:55:01 -0600 | [diff] [blame] | 210 | endif |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 211 | endif |
Ethan Yonker | 1b19016 | 2016-12-05 15:25:19 -0600 | [diff] [blame] | 212 | ifeq ($(AB_OTA_UPDATER), true) |
| 213 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/bootctl |
| 214 | ifneq ($(TW_INCLUDE_CRYPTO), true) |
| 215 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhardware.so |
| 216 | endif |
| 217 | endif |
Dees_Troy | 38bd760 | 2012-09-14 13:33:53 -0400 | [diff] [blame] | 218 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 219 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/make_ext4fs |
| 220 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 221 | ifneq ($(wildcard system/core/libsparse/Android.*),) |
Dees_Troy | 4546fe7 | 2013-01-10 14:33:27 +0000 | [diff] [blame] | 222 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsparse.so |
| 223 | endif |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 224 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
| 225 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/openaes |
| 226 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libopenaes.so |
| 227 | endif |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 228 | ifeq ($(TARGET_USERIMAGES_USE_F2FS), true) |
Matt Mower | 5829491 | 2015-12-10 11:54:28 -0600 | [diff] [blame] | 229 | ifeq ($(shell test $(CM_PLATFORM_SDK_VERSION) -ge 4; echo $$?),0) |
| 230 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkfs.f2fs |
| 231 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libf2fs.so |
nkk71 | 04ec095 | 2017-10-25 14:09:37 +0300 | [diff] [blame] | 232 | else ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0) |
| 233 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkfs.f2fs |
TheStrix | 09e8693 | 2017-02-22 04:48:25 +0530 | [diff] [blame] | 234 | else ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 24; echo $$?),0) |
| 235 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkfs.f2fs |
| 236 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libf2fs.so |
maxwen | e7c8856 | 2017-01-23 18:36:35 +0100 | [diff] [blame] | 237 | else ifeq ($(shell test $(PLATFORM_SDK_VERSION) -eq 23; echo $$?),0) |
Ethan Yonker | 5235f55 | 2015-10-09 14:46:47 -0500 | [diff] [blame] | 238 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkfs.f2fs |
Matt Mower | 5829491 | 2015-12-10 11:54:28 -0600 | [diff] [blame] | 239 | else ifneq (,$(filter $(PLATFORM_SDK_VERSION), 21 22)) |
| 240 | RELINK_SOURCE_FILES += $(TARGET_ROOT_OUT_SBIN)/mkfs.f2fs |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 241 | else |
Matt Mower | 5829491 | 2015-12-10 11:54:28 -0600 | [diff] [blame] | 242 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkfs.f2fs |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 243 | endif |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 244 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/fsck.f2fs |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 245 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 246 | ifneq ($(wildcard system/core/reboot/Android.*),) |
Dees Troy | 0226cd5 | 2013-11-04 14:12:35 +0000 | [diff] [blame] | 247 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/reboot |
| 248 | endif |
Vojtech Bocek | 76ee903 | 2014-09-07 15:01:56 +0200 | [diff] [blame] | 249 | ifneq ($(TW_DISABLE_TTF), true) |
| 250 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libft2.so |
| 251 | endif |
Ethan Yonker | 0e67837 | 2014-11-18 12:17:06 -0600 | [diff] [blame] | 252 | ifneq ($(TW_RECOVERY_ADDITIONAL_RELINK_FILES),) |
| 253 | RELINK_SOURCE_FILES += $(TW_RECOVERY_ADDITIONAL_RELINK_FILES) |
| 254 | endif |
Dees Troy | e176a65 | 2015-01-20 19:35:21 +0000 | [diff] [blame] | 255 | ifneq ($(wildcard external/pcre/Android.mk),) |
| 256 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpcre.so |
| 257 | endif |
Ethan Yonker | b81d905 | 2015-07-09 13:20:53 -0500 | [diff] [blame] | 258 | ifeq ($(TW_INCLUDE_NTFS_3G),true) |
Jason Riordan | 6c28ee8 | 2016-05-12 09:06:57 -0400 | [diff] [blame] | 259 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0) |
Greg Wallace | b39e6c6 | 2015-12-29 00:55:26 -0500 | [diff] [blame] | 260 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mount.ntfs |
| 261 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/fsck.ntfs |
| 262 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkfs.ntfs |
| 263 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libntfs-3g.so |
| 264 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libfuse.so |
| 265 | else |
Ethan Yonker | b81d905 | 2015-07-09 13:20:53 -0500 | [diff] [blame] | 266 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/ntfs-3g |
| 267 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/ntfsfix |
| 268 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkntfs |
| 269 | endif |
Greg Wallace | b39e6c6 | 2015-12-29 00:55:26 -0500 | [diff] [blame] | 270 | endif |
Ethan Yonker | 483e9f4 | 2016-01-11 22:21:18 -0600 | [diff] [blame] | 271 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
| 272 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0) |
| 273 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/sgdisk |
| 274 | endif |
| 275 | endif |
Captain Throwback | 1f12775 | 2016-01-19 17:30:20 -0500 | [diff] [blame] | 276 | ifeq ($(TWRP_INCLUDE_LOGCAT), true) |
| 277 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/logcat |
Ethan Yonker | e5a288c | 2016-02-15 09:23:57 -0600 | [diff] [blame] | 278 | ifeq ($(TARGET_USES_LOGD), true) |
| 279 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/logd |
| 280 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsysutils.so |
| 281 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libnl.so |
| 282 | endif |
Ethan Yonker | 534d4e0 | 2016-08-26 10:05:03 -0500 | [diff] [blame] | 283 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 24; echo $$?),0) |
| 284 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpcrecpp.so |
| 285 | endif |
Ethan Yonker | d9918b7 | 2017-09-15 08:17:42 -0500 | [diff] [blame] | 286 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0) |
| 287 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblogcat.so |
| 288 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcap.so |
| 289 | endif |
Captain Throwback | 1f12775 | 2016-01-19 17:30:20 -0500 | [diff] [blame] | 290 | endif |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 291 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 25; echo $$?),0) |
| 292 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpcre2.so |
| 293 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libvndksupport.so |
| 294 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhwbinder.so |
| 295 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidlbase.so |
| 296 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidltransport.so |
| 297 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.keymaster@3.0.so |
nkk71 | a2341b0 | 2017-12-04 01:52:08 +0200 | [diff] [blame^] | 298 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.base@1.0.so |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 299 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libziparchive.so |
Ethan Yonker | c3c0e64 | 2017-09-11 21:39:57 -0500 | [diff] [blame] | 300 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_blkid.so |
| 301 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_quota.so |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 302 | |
| 303 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidl-gen-utils.so |
| 304 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libvintf.so |
| 305 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtinyxml2.so |
| 306 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.token@1.0.so |
Ethan Yonker | 31344a3 | 2017-11-29 12:13:41 -0600 | [diff] [blame] | 307 | ifneq ($(wildcard system/core/libkeyutils/Android.bp),) |
| 308 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeyutils.so |
| 309 | endif |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 310 | endif |
| 311 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 312 | TWRP_AUTOGEN := $(intermediates)/teamwin |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 313 | GEN := $(intermediates)/teamwin |
| 314 | $(GEN): $(RELINK) |
Ethan Yonker | 34ae483 | 2016-08-24 15:32:18 -0500 | [diff] [blame] | 315 | $(GEN): $(RELINK_SOURCE_FILES) $(call intermediates-dir-for,EXECUTABLES,init)/init |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 316 | $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/sbin $(RELINK_SOURCE_FILES) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 317 | |
| 318 | LOCAL_GENERATED_SOURCES := $(GEN) |
| 319 | LOCAL_SRC_FILES := teamwin $(GEN) |
| 320 | include $(BUILD_PREBUILT) |
| 321 | |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 322 | #permissive.sh |
| 323 | include $(CLEAR_VARS) |
| 324 | LOCAL_MODULE := permissive.sh |
| 325 | LOCAL_MODULE_TAGS := eng |
| 326 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 327 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 328 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 329 | include $(BUILD_PREBUILT) |
| 330 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 331 | #mke2fs.conf |
| 332 | include $(CLEAR_VARS) |
| 333 | LOCAL_MODULE := mke2fs.conf |
| 334 | LOCAL_MODULE_TAGS := eng |
| 335 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 336 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc |
| 337 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 338 | include $(BUILD_PREBUILT) |
| 339 | |
| 340 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
Ethan Yonker | 483e9f4 | 2016-01-11 22:21:18 -0600 | [diff] [blame] | 341 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0) |
| 342 | #prebuilt, static sgdisk |
| 343 | include $(CLEAR_VARS) |
| 344 | LOCAL_MODULE := sgdisk_static |
| 345 | LOCAL_MODULE_STEM := sgdisk |
| 346 | LOCAL_MODULE_TAGS := eng |
| 347 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 348 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 349 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 350 | include $(BUILD_PREBUILT) |
| 351 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 352 | #parted |
Ethan Yonker | 483e9f4 | 2016-01-11 22:21:18 -0600 | [diff] [blame] | 353 | #include $(CLEAR_VARS) |
| 354 | #LOCAL_MODULE := parted |
| 355 | #LOCAL_MODULE_TAGS := eng |
| 356 | #LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 357 | #LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 358 | #LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 359 | #include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 360 | endif |
| 361 | |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 362 | # copy license file for OpenAES |
| 363 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
| 364 | include $(CLEAR_VARS) |
Ethan Yonker | 34ae483 | 2016-08-24 15:32:18 -0500 | [diff] [blame] | 365 | LOCAL_MODULE := openaes_license |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 366 | LOCAL_MODULE_TAGS := eng |
| 367 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 368 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/license/openaes |
Ethan Yonker | 34ae483 | 2016-08-24 15:32:18 -0500 | [diff] [blame] | 369 | LOCAL_SRC_FILES := ../openaes/LICENSE |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 370 | include $(BUILD_PREBUILT) |
| 371 | endif |
| 372 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 373 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 374 | #htcdumlock for /system for dumlock |
| 375 | include $(CLEAR_VARS) |
| 376 | LOCAL_MODULE := htcdumlocksys |
| 377 | LOCAL_MODULE_TAGS := eng |
| 378 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 379 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 380 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 381 | include $(BUILD_PREBUILT) |
| 382 | |
| 383 | #flash_image for /system for dumlock |
| 384 | include $(CLEAR_VARS) |
| 385 | LOCAL_MODULE := flash_imagesys |
| 386 | LOCAL_MODULE_TAGS := eng |
| 387 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 388 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 389 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 390 | include $(BUILD_PREBUILT) |
| 391 | |
| 392 | #dump_image for /system for dumlock |
| 393 | include $(CLEAR_VARS) |
| 394 | LOCAL_MODULE := dump_imagesys |
| 395 | LOCAL_MODULE_TAGS := eng |
| 396 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 397 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 398 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 399 | include $(BUILD_PREBUILT) |
| 400 | |
| 401 | #libbmlutils for /system for dumlock |
| 402 | include $(CLEAR_VARS) |
| 403 | LOCAL_MODULE := libbmlutils.so |
| 404 | LOCAL_MODULE_TAGS := eng |
| 405 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 406 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 407 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 408 | include $(BUILD_PREBUILT) |
| 409 | |
| 410 | #libflashutils for /system for dumlock |
| 411 | include $(CLEAR_VARS) |
| 412 | LOCAL_MODULE := libflashutils.so |
| 413 | LOCAL_MODULE_TAGS := eng |
| 414 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 415 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 416 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 417 | include $(BUILD_PREBUILT) |
| 418 | |
| 419 | #libmmcutils for /system for dumlock |
| 420 | include $(CLEAR_VARS) |
| 421 | LOCAL_MODULE := libmmcutils.so |
| 422 | LOCAL_MODULE_TAGS := eng |
| 423 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 424 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 425 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 426 | include $(BUILD_PREBUILT) |
| 427 | |
| 428 | #libmtdutils for /system for dumlock |
| 429 | include $(CLEAR_VARS) |
| 430 | LOCAL_MODULE := libmtdutils.so |
| 431 | LOCAL_MODULE_TAGS := eng |
| 432 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 433 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 434 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 435 | include $(BUILD_PREBUILT) |
| 436 | |
| 437 | #HTCDumlock.apk |
| 438 | include $(CLEAR_VARS) |
| 439 | LOCAL_MODULE := HTCDumlock.apk |
| 440 | LOCAL_MODULE_TAGS := eng |
| 441 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 442 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 443 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 444 | include $(BUILD_PREBUILT) |
| 445 | endif |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 446 | |
| 447 | ifneq ($(TW_EXCLUDE_SUPERSU), true) |
Ethan Yonker | e3e8829 | 2014-12-10 16:17:55 -0600 | [diff] [blame] | 448 | ifeq ($(TARGET_ARCH), arm) |
| 449 | #chattr.pie |
| 450 | include $(CLEAR_VARS) |
| 451 | LOCAL_MODULE := chattr.pie |
| 452 | LOCAL_MODULE_TAGS := eng |
| 453 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 454 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 455 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 456 | include $(BUILD_PREBUILT) |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 457 | |
Ethan Yonker | e3e8829 | 2014-12-10 16:17:55 -0600 | [diff] [blame] | 458 | #libsupol.so |
| 459 | include $(CLEAR_VARS) |
| 460 | LOCAL_MODULE := libsupol.so |
| 461 | LOCAL_MODULE_TAGS := eng |
| 462 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 463 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 464 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 465 | include $(BUILD_PREBUILT) |
| 466 | |
| 467 | #su binary |
| 468 | include $(CLEAR_VARS) |
Ethan Yonker | b82422a | 2016-01-20 08:48:49 -0600 | [diff] [blame] | 469 | LOCAL_MODULE := suarm |
| 470 | LOCAL_MODULE_STEM := su |
Ethan Yonker | e3e8829 | 2014-12-10 16:17:55 -0600 | [diff] [blame] | 471 | LOCAL_MODULE_TAGS := eng |
| 472 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 473 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 474 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 475 | include $(BUILD_PREBUILT) |
| 476 | |
| 477 | #supolicy |
| 478 | include $(CLEAR_VARS) |
| 479 | LOCAL_MODULE := supolicy |
| 480 | LOCAL_MODULE_TAGS := eng |
| 481 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 482 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 483 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 484 | include $(BUILD_PREBUILT) |
| 485 | endif |
| 486 | ifeq ($(TARGET_ARCH), arm64) |
| 487 | #libsupol.so |
| 488 | include $(CLEAR_VARS) |
| 489 | LOCAL_MODULE := libsupol.soarm64 |
| 490 | LOCAL_MODULE_STEM := libsupol.so |
| 491 | LOCAL_MODULE_TAGS := eng |
| 492 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 493 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 494 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 495 | include $(BUILD_PREBUILT) |
| 496 | |
| 497 | #su binary |
| 498 | include $(CLEAR_VARS) |
| 499 | LOCAL_MODULE := suarm64 |
| 500 | LOCAL_MODULE_STEM := su |
| 501 | LOCAL_MODULE_TAGS := eng |
| 502 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 503 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 504 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 505 | include $(BUILD_PREBUILT) |
| 506 | |
| 507 | #supolicy |
| 508 | include $(CLEAR_VARS) |
| 509 | LOCAL_MODULE := supolicyarm64 |
| 510 | LOCAL_MODULE_STEM := supolicy |
| 511 | LOCAL_MODULE_TAGS := eng |
| 512 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 513 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 514 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 515 | include $(BUILD_PREBUILT) |
| 516 | endif |
| 517 | |
| 518 | #install-recovery.sh |
Dees_Troy | a7939bb | 2013-08-29 20:21:12 +0000 | [diff] [blame] | 519 | include $(CLEAR_VARS) |
| 520 | LOCAL_MODULE := install-recovery.sh |
| 521 | LOCAL_MODULE_TAGS := eng |
| 522 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 523 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 524 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 525 | include $(BUILD_PREBUILT) |
| 526 | |
Ethan Yonker | e3e8829 | 2014-12-10 16:17:55 -0600 | [diff] [blame] | 527 | #install-supersu.sh |
| 528 | include $(CLEAR_VARS) |
| 529 | LOCAL_MODULE := install-supersu.sh |
| 530 | LOCAL_MODULE_TAGS := eng |
| 531 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 532 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 533 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 534 | include $(BUILD_PREBUILT) |
| 535 | |
| 536 | #99SuperSUDaemon |
Dees_Troy | a7939bb | 2013-08-29 20:21:12 +0000 | [diff] [blame] | 537 | include $(CLEAR_VARS) |
| 538 | LOCAL_MODULE := 99SuperSUDaemon |
| 539 | LOCAL_MODULE_TAGS := eng |
| 540 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 541 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 542 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 543 | include $(BUILD_PREBUILT) |
| 544 | |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 545 | #SuperSU special installer APK |
| 546 | include $(CLEAR_VARS) |
| 547 | LOCAL_MODULE := Superuser.apk |
| 548 | LOCAL_MODULE_TAGS := eng |
| 549 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
jt1134 | 113ee73 | 2013-02-22 23:26:10 -0600 | [diff] [blame] | 550 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 551 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 552 | include $(BUILD_PREBUILT) |
jt1134 | 113ee73 | 2013-02-22 23:26:10 -0600 | [diff] [blame] | 553 | endif |
Ethan Yonker | b4bff5e | 2016-12-16 07:47:58 -0600 | [diff] [blame] | 554 | |
| 555 | #TWRP App "placeholder" |
| 556 | include $(CLEAR_VARS) |
| 557 | LOCAL_MODULE := me.twrp.twrpapp.apk |
| 558 | LOCAL_MODULE_TAGS := eng |
| 559 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 560 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 561 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 562 | include $(BUILD_PREBUILT) |