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 |
| 198 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_portable.so |
| 199 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster_staging.so |
| 200 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libwifikeystorehal.so |
| 201 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.weaver@1.0.so |
| 202 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhardware_legacy.so |
| 203 | else |
| 204 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster1.so |
| 205 | endif |
Ethan Yonker | bd7492d | 2016-12-07 13:55:01 -0600 | [diff] [blame] | 206 | endif |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 207 | endif |
Ethan Yonker | 1b19016 | 2016-12-05 15:25:19 -0600 | [diff] [blame] | 208 | ifeq ($(AB_OTA_UPDATER), true) |
| 209 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/bootctl |
| 210 | ifneq ($(TW_INCLUDE_CRYPTO), true) |
| 211 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhardware.so |
| 212 | endif |
| 213 | endif |
Dees_Troy | 38bd760 | 2012-09-14 13:33:53 -0400 | [diff] [blame] | 214 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 215 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/make_ext4fs |
| 216 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 217 | ifneq ($(wildcard system/core/libsparse/Android.*),) |
Dees_Troy | 4546fe7 | 2013-01-10 14:33:27 +0000 | [diff] [blame] | 218 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsparse.so |
| 219 | endif |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 220 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
| 221 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/openaes |
| 222 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libopenaes.so |
| 223 | endif |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 224 | ifeq ($(TARGET_USERIMAGES_USE_F2FS), true) |
Matt Mower | 5829491 | 2015-12-10 11:54:28 -0600 | [diff] [blame] | 225 | ifeq ($(shell test $(CM_PLATFORM_SDK_VERSION) -ge 4; echo $$?),0) |
| 226 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkfs.f2fs |
| 227 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libf2fs.so |
nkk71 | 04ec095 | 2017-10-25 14:09:37 +0300 | [diff] [blame] | 228 | else ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0) |
| 229 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkfs.f2fs |
TheStrix | 09e8693 | 2017-02-22 04:48:25 +0530 | [diff] [blame] | 230 | else ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 24; echo $$?),0) |
| 231 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkfs.f2fs |
| 232 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libf2fs.so |
maxwen | e7c8856 | 2017-01-23 18:36:35 +0100 | [diff] [blame] | 233 | else ifeq ($(shell test $(PLATFORM_SDK_VERSION) -eq 23; echo $$?),0) |
Ethan Yonker | 5235f55 | 2015-10-09 14:46:47 -0500 | [diff] [blame] | 234 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkfs.f2fs |
Matt Mower | 5829491 | 2015-12-10 11:54:28 -0600 | [diff] [blame] | 235 | else ifneq (,$(filter $(PLATFORM_SDK_VERSION), 21 22)) |
| 236 | RELINK_SOURCE_FILES += $(TARGET_ROOT_OUT_SBIN)/mkfs.f2fs |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 237 | else |
Matt Mower | 5829491 | 2015-12-10 11:54:28 -0600 | [diff] [blame] | 238 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkfs.f2fs |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 239 | endif |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 240 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/fsck.f2fs |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 241 | endif |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 242 | ifneq ($(wildcard system/core/reboot/Android.*),) |
Dees Troy | 0226cd5 | 2013-11-04 14:12:35 +0000 | [diff] [blame] | 243 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/reboot |
| 244 | endif |
Vojtech Bocek | 76ee903 | 2014-09-07 15:01:56 +0200 | [diff] [blame] | 245 | ifneq ($(TW_DISABLE_TTF), true) |
| 246 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libft2.so |
| 247 | endif |
Ethan Yonker | 0e67837 | 2014-11-18 12:17:06 -0600 | [diff] [blame] | 248 | ifneq ($(TW_RECOVERY_ADDITIONAL_RELINK_FILES),) |
| 249 | RELINK_SOURCE_FILES += $(TW_RECOVERY_ADDITIONAL_RELINK_FILES) |
| 250 | endif |
Dees Troy | e176a65 | 2015-01-20 19:35:21 +0000 | [diff] [blame] | 251 | ifneq ($(wildcard external/pcre/Android.mk),) |
| 252 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpcre.so |
| 253 | endif |
Ethan Yonker | b81d905 | 2015-07-09 13:20:53 -0500 | [diff] [blame] | 254 | ifeq ($(TW_INCLUDE_NTFS_3G),true) |
Jason Riordan | 6c28ee8 | 2016-05-12 09:06:57 -0400 | [diff] [blame] | 255 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0) |
Greg Wallace | b39e6c6 | 2015-12-29 00:55:26 -0500 | [diff] [blame] | 256 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mount.ntfs |
| 257 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/fsck.ntfs |
| 258 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkfs.ntfs |
| 259 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libntfs-3g.so |
| 260 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libfuse.so |
| 261 | else |
Ethan Yonker | b81d905 | 2015-07-09 13:20:53 -0500 | [diff] [blame] | 262 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/ntfs-3g |
| 263 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/ntfsfix |
| 264 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkntfs |
| 265 | endif |
Greg Wallace | b39e6c6 | 2015-12-29 00:55:26 -0500 | [diff] [blame] | 266 | endif |
Ethan Yonker | 483e9f4 | 2016-01-11 22:21:18 -0600 | [diff] [blame] | 267 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
| 268 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0) |
| 269 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/sgdisk |
| 270 | endif |
| 271 | endif |
Captain Throwback | 1f12775 | 2016-01-19 17:30:20 -0500 | [diff] [blame] | 272 | ifeq ($(TWRP_INCLUDE_LOGCAT), true) |
| 273 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/logcat |
Ethan Yonker | e5a288c | 2016-02-15 09:23:57 -0600 | [diff] [blame] | 274 | ifeq ($(TARGET_USES_LOGD), true) |
| 275 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/logd |
| 276 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsysutils.so |
| 277 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libnl.so |
| 278 | endif |
Ethan Yonker | 534d4e0 | 2016-08-26 10:05:03 -0500 | [diff] [blame] | 279 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 24; echo $$?),0) |
| 280 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpcrecpp.so |
| 281 | endif |
Ethan Yonker | d9918b7 | 2017-09-15 08:17:42 -0500 | [diff] [blame] | 282 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0) |
| 283 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblogcat.so |
| 284 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcap.so |
| 285 | endif |
Captain Throwback | 1f12775 | 2016-01-19 17:30:20 -0500 | [diff] [blame] | 286 | endif |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 287 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 25; echo $$?),0) |
| 288 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpcre2.so |
| 289 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libvndksupport.so |
| 290 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhwbinder.so |
| 291 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidlbase.so |
| 292 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidltransport.so |
| 293 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.keymaster@3.0.so |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 294 | #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] | 295 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libziparchive.so |
Ethan Yonker | c3c0e64 | 2017-09-11 21:39:57 -0500 | [diff] [blame] | 296 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_blkid.so |
| 297 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_quota.so |
Ethan Yonker | fefe591 | 2017-09-30 22:22:13 -0500 | [diff] [blame] | 298 | |
| 299 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhidl-gen-utils.so |
| 300 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libvintf.so |
| 301 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtinyxml2.so |
| 302 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.token@1.0.so |
| 303 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeyutils.so |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 304 | endif |
| 305 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 306 | TWRP_AUTOGEN := $(intermediates)/teamwin |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 307 | GEN := $(intermediates)/teamwin |
| 308 | $(GEN): $(RELINK) |
Ethan Yonker | 34ae483 | 2016-08-24 15:32:18 -0500 | [diff] [blame] | 309 | $(GEN): $(RELINK_SOURCE_FILES) $(call intermediates-dir-for,EXECUTABLES,init)/init |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 310 | $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/sbin $(RELINK_SOURCE_FILES) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 311 | |
| 312 | LOCAL_GENERATED_SOURCES := $(GEN) |
| 313 | LOCAL_SRC_FILES := teamwin $(GEN) |
| 314 | include $(BUILD_PREBUILT) |
| 315 | |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 316 | #permissive.sh |
| 317 | include $(CLEAR_VARS) |
| 318 | LOCAL_MODULE := permissive.sh |
| 319 | LOCAL_MODULE_TAGS := eng |
| 320 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 321 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 322 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 323 | include $(BUILD_PREBUILT) |
| 324 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 325 | #mke2fs.conf |
| 326 | include $(CLEAR_VARS) |
| 327 | LOCAL_MODULE := mke2fs.conf |
| 328 | LOCAL_MODULE_TAGS := eng |
| 329 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 330 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc |
| 331 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 332 | include $(BUILD_PREBUILT) |
| 333 | |
| 334 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
Ethan Yonker | 483e9f4 | 2016-01-11 22:21:18 -0600 | [diff] [blame] | 335 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0) |
| 336 | #prebuilt, static sgdisk |
| 337 | include $(CLEAR_VARS) |
| 338 | LOCAL_MODULE := sgdisk_static |
| 339 | LOCAL_MODULE_STEM := sgdisk |
| 340 | LOCAL_MODULE_TAGS := eng |
| 341 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 342 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 343 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 344 | include $(BUILD_PREBUILT) |
| 345 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 346 | #parted |
Ethan Yonker | 483e9f4 | 2016-01-11 22:21:18 -0600 | [diff] [blame] | 347 | #include $(CLEAR_VARS) |
| 348 | #LOCAL_MODULE := parted |
| 349 | #LOCAL_MODULE_TAGS := eng |
| 350 | #LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 351 | #LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 352 | #LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 353 | #include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 354 | endif |
| 355 | |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 356 | # copy license file for OpenAES |
| 357 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
| 358 | include $(CLEAR_VARS) |
Ethan Yonker | 34ae483 | 2016-08-24 15:32:18 -0500 | [diff] [blame] | 359 | LOCAL_MODULE := openaes_license |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 360 | LOCAL_MODULE_TAGS := eng |
| 361 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 362 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/license/openaes |
Ethan Yonker | 34ae483 | 2016-08-24 15:32:18 -0500 | [diff] [blame] | 363 | LOCAL_SRC_FILES := ../openaes/LICENSE |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 364 | include $(BUILD_PREBUILT) |
| 365 | endif |
| 366 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 367 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 368 | #htcdumlock for /system for dumlock |
| 369 | include $(CLEAR_VARS) |
| 370 | LOCAL_MODULE := htcdumlocksys |
| 371 | LOCAL_MODULE_TAGS := eng |
| 372 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 373 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 374 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 375 | include $(BUILD_PREBUILT) |
| 376 | |
| 377 | #flash_image for /system for dumlock |
| 378 | include $(CLEAR_VARS) |
| 379 | LOCAL_MODULE := flash_imagesys |
| 380 | LOCAL_MODULE_TAGS := eng |
| 381 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 382 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 383 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 384 | include $(BUILD_PREBUILT) |
| 385 | |
| 386 | #dump_image for /system for dumlock |
| 387 | include $(CLEAR_VARS) |
| 388 | LOCAL_MODULE := dump_imagesys |
| 389 | LOCAL_MODULE_TAGS := eng |
| 390 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 391 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 392 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 393 | include $(BUILD_PREBUILT) |
| 394 | |
| 395 | #libbmlutils for /system for dumlock |
| 396 | include $(CLEAR_VARS) |
| 397 | LOCAL_MODULE := libbmlutils.so |
| 398 | LOCAL_MODULE_TAGS := eng |
| 399 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 400 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 401 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 402 | include $(BUILD_PREBUILT) |
| 403 | |
| 404 | #libflashutils for /system for dumlock |
| 405 | include $(CLEAR_VARS) |
| 406 | LOCAL_MODULE := libflashutils.so |
| 407 | LOCAL_MODULE_TAGS := eng |
| 408 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 409 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 410 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 411 | include $(BUILD_PREBUILT) |
| 412 | |
| 413 | #libmmcutils for /system for dumlock |
| 414 | include $(CLEAR_VARS) |
| 415 | LOCAL_MODULE := libmmcutils.so |
| 416 | LOCAL_MODULE_TAGS := eng |
| 417 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 418 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 419 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 420 | include $(BUILD_PREBUILT) |
| 421 | |
| 422 | #libmtdutils for /system for dumlock |
| 423 | include $(CLEAR_VARS) |
| 424 | LOCAL_MODULE := libmtdutils.so |
| 425 | LOCAL_MODULE_TAGS := eng |
| 426 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 427 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 428 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 429 | include $(BUILD_PREBUILT) |
| 430 | |
| 431 | #HTCDumlock.apk |
| 432 | include $(CLEAR_VARS) |
| 433 | LOCAL_MODULE := HTCDumlock.apk |
| 434 | LOCAL_MODULE_TAGS := eng |
| 435 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 436 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 437 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 438 | include $(BUILD_PREBUILT) |
| 439 | endif |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 440 | |
| 441 | ifneq ($(TW_EXCLUDE_SUPERSU), true) |
Ethan Yonker | e3e8829 | 2014-12-10 16:17:55 -0600 | [diff] [blame] | 442 | ifeq ($(TARGET_ARCH), arm) |
| 443 | #chattr.pie |
| 444 | include $(CLEAR_VARS) |
| 445 | LOCAL_MODULE := chattr.pie |
| 446 | LOCAL_MODULE_TAGS := eng |
| 447 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 448 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 449 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 450 | include $(BUILD_PREBUILT) |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 451 | |
Ethan Yonker | e3e8829 | 2014-12-10 16:17:55 -0600 | [diff] [blame] | 452 | #libsupol.so |
| 453 | include $(CLEAR_VARS) |
| 454 | LOCAL_MODULE := libsupol.so |
| 455 | LOCAL_MODULE_TAGS := eng |
| 456 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 457 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 458 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 459 | include $(BUILD_PREBUILT) |
| 460 | |
| 461 | #su binary |
| 462 | include $(CLEAR_VARS) |
Ethan Yonker | b82422a | 2016-01-20 08:48:49 -0600 | [diff] [blame] | 463 | LOCAL_MODULE := suarm |
| 464 | LOCAL_MODULE_STEM := su |
Ethan Yonker | e3e8829 | 2014-12-10 16:17:55 -0600 | [diff] [blame] | 465 | LOCAL_MODULE_TAGS := eng |
| 466 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 467 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 468 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 469 | include $(BUILD_PREBUILT) |
| 470 | |
| 471 | #supolicy |
| 472 | include $(CLEAR_VARS) |
| 473 | LOCAL_MODULE := supolicy |
| 474 | LOCAL_MODULE_TAGS := eng |
| 475 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 476 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 477 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 478 | include $(BUILD_PREBUILT) |
| 479 | endif |
| 480 | ifeq ($(TARGET_ARCH), arm64) |
| 481 | #libsupol.so |
| 482 | include $(CLEAR_VARS) |
| 483 | LOCAL_MODULE := libsupol.soarm64 |
| 484 | LOCAL_MODULE_STEM := libsupol.so |
| 485 | LOCAL_MODULE_TAGS := eng |
| 486 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 487 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 488 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 489 | include $(BUILD_PREBUILT) |
| 490 | |
| 491 | #su binary |
| 492 | include $(CLEAR_VARS) |
| 493 | LOCAL_MODULE := suarm64 |
| 494 | LOCAL_MODULE_STEM := su |
| 495 | LOCAL_MODULE_TAGS := eng |
| 496 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 497 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 498 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 499 | include $(BUILD_PREBUILT) |
| 500 | |
| 501 | #supolicy |
| 502 | include $(CLEAR_VARS) |
| 503 | LOCAL_MODULE := supolicyarm64 |
| 504 | LOCAL_MODULE_STEM := supolicy |
| 505 | LOCAL_MODULE_TAGS := eng |
| 506 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 507 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 508 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 509 | include $(BUILD_PREBUILT) |
| 510 | endif |
| 511 | |
| 512 | #install-recovery.sh |
Dees_Troy | a7939bb | 2013-08-29 20:21:12 +0000 | [diff] [blame] | 513 | include $(CLEAR_VARS) |
| 514 | LOCAL_MODULE := install-recovery.sh |
| 515 | LOCAL_MODULE_TAGS := eng |
| 516 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 517 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 518 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 519 | include $(BUILD_PREBUILT) |
| 520 | |
Ethan Yonker | e3e8829 | 2014-12-10 16:17:55 -0600 | [diff] [blame] | 521 | #install-supersu.sh |
| 522 | include $(CLEAR_VARS) |
| 523 | LOCAL_MODULE := install-supersu.sh |
| 524 | LOCAL_MODULE_TAGS := eng |
| 525 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 526 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 527 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 528 | include $(BUILD_PREBUILT) |
| 529 | |
| 530 | #99SuperSUDaemon |
Dees_Troy | a7939bb | 2013-08-29 20:21:12 +0000 | [diff] [blame] | 531 | include $(CLEAR_VARS) |
| 532 | LOCAL_MODULE := 99SuperSUDaemon |
| 533 | LOCAL_MODULE_TAGS := eng |
| 534 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 535 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 536 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 537 | include $(BUILD_PREBUILT) |
| 538 | |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 539 | #SuperSU special installer APK |
| 540 | include $(CLEAR_VARS) |
| 541 | LOCAL_MODULE := Superuser.apk |
| 542 | LOCAL_MODULE_TAGS := eng |
| 543 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
jt1134 | 113ee73 | 2013-02-22 23:26:10 -0600 | [diff] [blame] | 544 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 545 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 546 | include $(BUILD_PREBUILT) |
jt1134 | 113ee73 | 2013-02-22 23:26:10 -0600 | [diff] [blame] | 547 | endif |
Ethan Yonker | b4bff5e | 2016-12-16 07:47:58 -0600 | [diff] [blame] | 548 | |
| 549 | #TWRP App "placeholder" |
| 550 | include $(CLEAR_VARS) |
| 551 | LOCAL_MODULE := me.twrp.twrpapp.apk |
| 552 | LOCAL_MODULE_TAGS := eng |
| 553 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 554 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 555 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 556 | include $(BUILD_PREBUILT) |