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) |
| 7 | LOCAL_MODULE := teamwin |
| 8 | LOCAL_MODULE_TAGS := eng |
| 9 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 10 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 11 | |
Matt Mower | fb1c4ff | 2014-04-16 13:43:36 -0500 | [diff] [blame] | 12 | # Manage list |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 13 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dump_image |
| 14 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/flash_image |
| 15 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/erase_image |
Ethan Yonker | 5c93369 | 2014-04-04 11:26:32 -0500 | [diff] [blame] | 16 | ifneq ($(TW_USE_TOOLBOX), true) |
| 17 | RELINK_SOURCE_FILES += $(TARGET_OUT_OPTIONAL_EXECUTABLES)/busybox |
| 18 | else |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 19 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/sh |
| 20 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
Ethan Yonker | 5c93369 | 2014-04-04 11:26:32 -0500 | [diff] [blame] | 21 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 22 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/pigz |
Ethan Yonker | 2d11d49 | 2014-12-12 11:43:21 -0600 | [diff] [blame] | 23 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dosfsck |
| 24 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dosfslabel |
| 25 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkdosfs |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 26 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/e2fsck |
| 27 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mke2fs |
| 28 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/tune2fs |
Ethan Yonker | a271915 | 2015-05-28 09:44:41 -0500 | [diff] [blame] | 29 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/resize2fs |
Ethan Yonker | 4f6a976 | 2015-03-09 13:58:54 -0500 | [diff] [blame] | 30 | ifneq ($(TARGET_ARCH), x86_64) |
| 31 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/linker |
| 32 | endif |
| 33 | ifeq ($(TARGET_ARCH), x86_64) |
| 34 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/linker64 |
| 35 | endif |
Ethan Yonker | 1902c79 | 2014-12-03 16:48:36 -0600 | [diff] [blame] | 36 | ifeq ($(TARGET_ARCH), arm64) |
| 37 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/linker64 |
| 38 | endif |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 39 | #RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/twrpmtp |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 40 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libc.so |
| 41 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcutils.so |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 42 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrecovery.so |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 43 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libusbhost.so |
| 44 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libgccdemangle.so |
| 45 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libutils.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 46 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdl.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 47 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_com_err.so |
| 48 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_e2p.so |
| 49 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so |
| 50 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_profile.so |
| 51 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_uuid.so |
Ethan Yonker | 38c2ff8 | 2014-12-09 13:42:10 -0600 | [diff] [blame] | 52 | ifneq ($(wildcard external/e2fsprogs/lib/quota/Android.mk),) |
| 53 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_quota.so |
| 54 | endif |
Ethan Yonker | bcff146 | 2015-01-04 22:01:33 -0600 | [diff] [blame] | 55 | ifneq ($(wildcard external/e2fsprogs/lib/ext2fs/Android.mk),) |
| 56 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so |
| 57 | endif |
| 58 | ifneq ($(wildcard external/e2fsprogs/lib/blkid/Android.mk),) |
| 59 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_blkid.so |
| 60 | endif |
Vojtech Bocek | 76ee903 | 2014-09-07 15:01:56 +0200 | [diff] [blame] | 61 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpng.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 62 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblog.so |
| 63 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libm.so |
| 64 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstdc++.so |
| 65 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libz.so |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 66 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminuitwrp.so |
| 67 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminadbd.so |
| 68 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminzip.so |
| 69 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmtdutils.so |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 70 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtar.so |
bigbiff | 7b4c7a6 | 2015-01-01 19:44:14 -0500 | [diff] [blame] | 71 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libutil-linux.so |
Vojtech Bocek | 7cc278b | 2013-02-24 01:40:19 +0100 | [diff] [blame] | 72 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libblkid.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 73 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmmcutils.so |
| 74 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbmlutils.so |
| 75 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libflashutils.so |
| 76 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstlport.so |
Ethan Yonker | 67eb72a | 2014-11-07 10:44:37 -0600 | [diff] [blame] | 77 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libfusesideload.so |
mar-v-in | 4142408 | 2015-03-10 19:06:16 +0100 | [diff] [blame] | 78 | ifneq (,$(filter $(PLATFORM_SDK_VERSION), 21 22)) |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 79 | # libraries from lollipop |
| 80 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbacktrace.so |
| 81 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libunwind.so |
| 82 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libunwind-ptrace.so |
Vojtech Bocek | 41ae124 | 2015-01-04 21:57:50 +0100 | [diff] [blame] | 83 | # Dynamically loaded by lollipop libc and may prevent unmounting system if it is not present in sbin |
| 84 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libnetd_client.so |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 85 | else |
| 86 | # Not available in lollipop |
| 87 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcorkscrew.so |
| 88 | endif |
Ethan Yonker | 560e65f | 2014-11-17 11:37:00 -0600 | [diff] [blame] | 89 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmincrypttwrp.so |
Dees Troy | 8d66f8b | 2013-10-08 14:04:55 +0000 | [diff] [blame] | 90 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/toolbox |
Ethan Yonker | 03a42f6 | 2014-08-08 11:03:51 -0500 | [diff] [blame] | 91 | ifneq ($(TW_OEM_BUILD),true) |
| 92 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/twrp |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 93 | else |
| 94 | TW_EXCLUDE_MTP := true |
| 95 | endif |
| 96 | ifneq ($(TW_EXCLUDE_MTP), true) |
| 97 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtwrpmtp.so |
Ethan Yonker | 03a42f6 | 2014-08-08 11:03:51 -0500 | [diff] [blame] | 98 | endif |
Dees_Troy | a95f55c | 2013-08-17 13:14:43 +0000 | [diff] [blame] | 99 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 100 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so |
| 101 | endif |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 102 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libaosprecovery.so |
Dees_Troy | 930bf01 | 2013-08-10 22:19:03 +0000 | [diff] [blame] | 103 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so |
Dees Troy | 4bf3b0d | 2013-09-11 19:12:49 +0000 | [diff] [blame] | 104 | ifeq ($(TWHAVE_SELINUX), true) |
Dees_Troy | f2280ff | 2013-08-06 18:01:12 +0000 | [diff] [blame] | 105 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libselinux.so |
Dees_Troy | e3850a3 | 2013-08-29 18:33:47 +0000 | [diff] [blame] | 106 | ifneq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 107 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so |
| 108 | endif |
Dees_Troy | f2280ff | 2013-08-06 18:01:12 +0000 | [diff] [blame] | 109 | endif |
Vojtech Bocek | 7cc278b | 2013-02-24 01:40:19 +0100 | [diff] [blame] | 110 | ifeq ($(BUILD_ID), GINGERBREAD) |
| 111 | TW_NO_EXFAT := true |
| 112 | endif |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 113 | ifneq ($(TW_NO_EXFAT), true) |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 114 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkexfatfs |
Vojtech Bocek | 7cc278b | 2013-02-24 01:40:19 +0100 | [diff] [blame] | 115 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libexfat.so |
Dees Troy | b4bd697 | 2014-10-09 18:47:00 +0000 | [diff] [blame] | 116 | else |
Captain Throwback | 6a1acf2 | 2014-09-18 12:46:35 -0400 | [diff] [blame] | 117 | TW_NO_EXFAT_FUSE := true |
| 118 | endif |
| 119 | ifneq ($(TW_NO_EXFAT_FUSE), true) |
| 120 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/exfat-fuse |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 121 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 122 | ifeq ($(TW_INCLUDE_BLOBPACK), true) |
| 123 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/blobpack |
| 124 | endif |
| 125 | ifeq ($(TW_INCLUDE_INJECTTWRP), true) |
| 126 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/injecttwrp |
| 127 | endif |
| 128 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 129 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/htcdumlock |
| 130 | endif |
| 131 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 132 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcryptfslollipop.so |
| 133 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 134 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libhardware.so |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 135 | ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) |
| 136 | RELINK_SOURCE_FILES += $(TARGET_OUT)/vendor/lib/libcryptfs_hw.so |
| 137 | endif |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 138 | endif |
Dees_Troy | 38bd760 | 2012-09-14 13:33:53 -0400 | [diff] [blame] | 139 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 140 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/make_ext4fs |
| 141 | endif |
Dees_Troy | 4546fe7 | 2013-01-10 14:33:27 +0000 | [diff] [blame] | 142 | ifneq ($(wildcard system/core/libsparse/Android.mk),) |
| 143 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsparse.so |
| 144 | endif |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 145 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
| 146 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/openaes |
| 147 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libopenaes.so |
| 148 | endif |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 149 | ifeq ($(TARGET_USERIMAGES_USE_F2FS), true) |
mar-v-in | 4142408 | 2015-03-10 19:06:16 +0100 | [diff] [blame] | 150 | ifneq (,$(filter $(PLATFORM_SDK_VERSION), 21 22)) |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 151 | RELINK_SOURCE_FILES += $(TARGET_ROOT_OUT_SBIN)/mkfs.f2fs |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 152 | else |
| 153 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mkfs.f2fs |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 154 | endif |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 155 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/fsck.f2fs |
Dees_Troy | e501704 | 2013-08-29 16:38:55 +0000 | [diff] [blame] | 156 | endif |
Dees Troy | 0226cd5 | 2013-11-04 14:12:35 +0000 | [diff] [blame] | 157 | ifneq ($(wildcard system/core/reboot/Android.mk),) |
| 158 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/reboot |
| 159 | endif |
Vojtech Bocek | 76ee903 | 2014-09-07 15:01:56 +0200 | [diff] [blame] | 160 | ifneq ($(TW_DISABLE_TTF), true) |
| 161 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libft2.so |
| 162 | endif |
Ethan Yonker | 0e67837 | 2014-11-18 12:17:06 -0600 | [diff] [blame] | 163 | ifneq ($(TW_RECOVERY_ADDITIONAL_RELINK_FILES),) |
| 164 | RELINK_SOURCE_FILES += $(TW_RECOVERY_ADDITIONAL_RELINK_FILES) |
| 165 | endif |
Dees Troy | e176a65 | 2015-01-20 19:35:21 +0000 | [diff] [blame] | 166 | ifneq ($(wildcard external/pcre/Android.mk),) |
| 167 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libpcre.so |
| 168 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 169 | |
| 170 | TWRP_AUTOGEN := $(intermediates)/teamwin |
| 171 | |
| 172 | GEN := $(intermediates)/teamwin |
| 173 | $(GEN): $(RELINK) |
| 174 | $(GEN): $(RELINK_SOURCE_FILES) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery |
| 175 | $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/sbin $(RELINK_SOURCE_FILES) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 176 | |
| 177 | LOCAL_GENERATED_SOURCES := $(GEN) |
| 178 | LOCAL_SRC_FILES := teamwin $(GEN) |
| 179 | include $(BUILD_PREBUILT) |
| 180 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 181 | #fix_permissions |
| 182 | include $(CLEAR_VARS) |
| 183 | LOCAL_MODULE := fix_permissions.sh |
| 184 | LOCAL_MODULE_TAGS := eng |
| 185 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 186 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 187 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 188 | include $(BUILD_PREBUILT) |
| 189 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 190 | #mke2fs.conf |
| 191 | include $(CLEAR_VARS) |
| 192 | LOCAL_MODULE := mke2fs.conf |
| 193 | LOCAL_MODULE_TAGS := eng |
| 194 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 195 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc |
| 196 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 197 | include $(BUILD_PREBUILT) |
| 198 | |
| 199 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
| 200 | #parted |
| 201 | include $(CLEAR_VARS) |
| 202 | LOCAL_MODULE := parted |
| 203 | LOCAL_MODULE_TAGS := eng |
| 204 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 205 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 206 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 207 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 208 | endif |
| 209 | |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 210 | # copy license file for OpenAES |
| 211 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
| 212 | include $(CLEAR_VARS) |
| 213 | LOCAL_MODULE := ../openaes/LICENSE |
| 214 | LOCAL_MODULE_TAGS := eng |
| 215 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 216 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/license/openaes |
| 217 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 218 | include $(BUILD_PREBUILT) |
| 219 | endif |
| 220 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 221 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 222 | #htcdumlock for /system for dumlock |
| 223 | include $(CLEAR_VARS) |
| 224 | LOCAL_MODULE := htcdumlocksys |
| 225 | LOCAL_MODULE_TAGS := eng |
| 226 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 227 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 228 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 229 | include $(BUILD_PREBUILT) |
| 230 | |
| 231 | #flash_image for /system for dumlock |
| 232 | include $(CLEAR_VARS) |
| 233 | LOCAL_MODULE := flash_imagesys |
| 234 | LOCAL_MODULE_TAGS := eng |
| 235 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 236 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 237 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 238 | include $(BUILD_PREBUILT) |
| 239 | |
| 240 | #dump_image for /system for dumlock |
| 241 | include $(CLEAR_VARS) |
| 242 | LOCAL_MODULE := dump_imagesys |
| 243 | LOCAL_MODULE_TAGS := eng |
| 244 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 245 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 246 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 247 | include $(BUILD_PREBUILT) |
| 248 | |
| 249 | #libbmlutils for /system for dumlock |
| 250 | include $(CLEAR_VARS) |
| 251 | LOCAL_MODULE := libbmlutils.so |
| 252 | LOCAL_MODULE_TAGS := eng |
| 253 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 254 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 255 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 256 | include $(BUILD_PREBUILT) |
| 257 | |
| 258 | #libflashutils for /system for dumlock |
| 259 | include $(CLEAR_VARS) |
| 260 | LOCAL_MODULE := libflashutils.so |
| 261 | LOCAL_MODULE_TAGS := eng |
| 262 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 263 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 264 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 265 | include $(BUILD_PREBUILT) |
| 266 | |
| 267 | #libmmcutils for /system for dumlock |
| 268 | include $(CLEAR_VARS) |
| 269 | LOCAL_MODULE := libmmcutils.so |
| 270 | LOCAL_MODULE_TAGS := eng |
| 271 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 272 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 273 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 274 | include $(BUILD_PREBUILT) |
| 275 | |
| 276 | #libmtdutils for /system for dumlock |
| 277 | include $(CLEAR_VARS) |
| 278 | LOCAL_MODULE := libmtdutils.so |
| 279 | LOCAL_MODULE_TAGS := eng |
| 280 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 281 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 282 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 283 | include $(BUILD_PREBUILT) |
| 284 | |
| 285 | #HTCDumlock.apk |
| 286 | include $(CLEAR_VARS) |
| 287 | LOCAL_MODULE := HTCDumlock.apk |
| 288 | LOCAL_MODULE_TAGS := eng |
| 289 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 290 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWHTCD_PATH) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 291 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 292 | include $(BUILD_PREBUILT) |
| 293 | endif |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 294 | |
| 295 | ifneq ($(TW_EXCLUDE_SUPERSU), true) |
Ethan Yonker | e3e8829 | 2014-12-10 16:17:55 -0600 | [diff] [blame] | 296 | ifeq ($(TARGET_ARCH), arm) |
| 297 | #chattr.pie |
| 298 | include $(CLEAR_VARS) |
| 299 | LOCAL_MODULE := chattr.pie |
| 300 | LOCAL_MODULE_TAGS := eng |
| 301 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 302 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 303 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 304 | include $(BUILD_PREBUILT) |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 305 | |
Ethan Yonker | e3e8829 | 2014-12-10 16:17:55 -0600 | [diff] [blame] | 306 | #libsupol.so |
| 307 | include $(CLEAR_VARS) |
| 308 | LOCAL_MODULE := libsupol.so |
| 309 | LOCAL_MODULE_TAGS := eng |
| 310 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 311 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 312 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 313 | include $(BUILD_PREBUILT) |
| 314 | |
| 315 | #su binary |
| 316 | include $(CLEAR_VARS) |
| 317 | LOCAL_MODULE := su |
| 318 | LOCAL_MODULE_TAGS := eng |
| 319 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 320 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 321 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 322 | include $(BUILD_PREBUILT) |
| 323 | |
| 324 | #supolicy |
| 325 | include $(CLEAR_VARS) |
| 326 | LOCAL_MODULE := supolicy |
| 327 | LOCAL_MODULE_TAGS := eng |
| 328 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 329 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 330 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 331 | include $(BUILD_PREBUILT) |
| 332 | endif |
| 333 | ifeq ($(TARGET_ARCH), arm64) |
| 334 | #libsupol.so |
| 335 | include $(CLEAR_VARS) |
| 336 | LOCAL_MODULE := libsupol.soarm64 |
| 337 | LOCAL_MODULE_STEM := libsupol.so |
| 338 | LOCAL_MODULE_TAGS := eng |
| 339 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 340 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 341 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 342 | include $(BUILD_PREBUILT) |
| 343 | |
| 344 | #su binary |
| 345 | include $(CLEAR_VARS) |
| 346 | LOCAL_MODULE := suarm64 |
| 347 | LOCAL_MODULE_STEM := su |
| 348 | LOCAL_MODULE_TAGS := eng |
| 349 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 350 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 351 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 352 | include $(BUILD_PREBUILT) |
| 353 | |
| 354 | #supolicy |
| 355 | include $(CLEAR_VARS) |
| 356 | LOCAL_MODULE := supolicyarm64 |
| 357 | LOCAL_MODULE_STEM := supolicy |
| 358 | LOCAL_MODULE_TAGS := eng |
| 359 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 360 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 361 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 362 | include $(BUILD_PREBUILT) |
| 363 | endif |
| 364 | |
| 365 | #install-recovery.sh |
Dees_Troy | a7939bb | 2013-08-29 20:21:12 +0000 | [diff] [blame] | 366 | include $(CLEAR_VARS) |
| 367 | LOCAL_MODULE := install-recovery.sh |
| 368 | LOCAL_MODULE_TAGS := eng |
| 369 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 370 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 371 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 372 | include $(BUILD_PREBUILT) |
| 373 | |
Ethan Yonker | e3e8829 | 2014-12-10 16:17:55 -0600 | [diff] [blame] | 374 | #install-supersu.sh |
| 375 | include $(CLEAR_VARS) |
| 376 | LOCAL_MODULE := install-supersu.sh |
| 377 | LOCAL_MODULE_TAGS := eng |
| 378 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 379 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 380 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 381 | include $(BUILD_PREBUILT) |
| 382 | |
| 383 | #99SuperSUDaemon |
Dees_Troy | a7939bb | 2013-08-29 20:21:12 +0000 | [diff] [blame] | 384 | include $(CLEAR_VARS) |
| 385 | LOCAL_MODULE := 99SuperSUDaemon |
| 386 | LOCAL_MODULE_TAGS := eng |
| 387 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 388 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
| 389 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 390 | include $(BUILD_PREBUILT) |
| 391 | |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 392 | #SuperSU special installer APK |
| 393 | include $(CLEAR_VARS) |
| 394 | LOCAL_MODULE := Superuser.apk |
| 395 | LOCAL_MODULE_TAGS := eng |
| 396 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
jt1134 | 113ee73 | 2013-02-22 23:26:10 -0600 | [diff] [blame] | 397 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 398 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 399 | include $(BUILD_PREBUILT) |
jt1134 | 113ee73 | 2013-02-22 23:26:10 -0600 | [diff] [blame] | 400 | endif |