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