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 | |
| 12 | # Manage list |
| 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 |
| 16 | RELINK_SOURCE_FILES += $(TARGET_OUT_OPTIONAL_EXECUTABLES)/busybox |
| 17 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/pigz |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 18 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dosfsck |
| 19 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dosfslabel |
| 20 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkdosfs |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 21 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/e2fsck |
| 22 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mke2fs |
| 23 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/tune2fs |
| 24 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/linker |
| 25 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libc.so |
| 26 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcutils.so |
| 27 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdl.so |
| 28 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_blkid.so |
| 29 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_com_err.so |
| 30 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_e2p.so |
| 31 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so |
| 32 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_profile.so |
| 33 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_uuid.so |
| 34 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblog.so |
| 35 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libm.so |
| 36 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstdc++.so |
| 37 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libz.so |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 38 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminuitwrp.so |
| 39 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminadbd.so |
| 40 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libminzip.so |
| 41 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmtdutils.so |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 42 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtar.so |
Vojtech Bocek | 7cc278b | 2013-02-24 01:40:19 +0100 | [diff] [blame] | 43 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libblkid.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 44 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmmcutils.so |
| 45 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbmlutils.so |
| 46 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libflashutils.so |
| 47 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstlport.so |
Vojtech Bocek | 8593234 | 2013-04-01 22:11:33 +0200 | [diff] [blame] | 48 | #RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmincrypt.so |
Dees_Troy | 43d8b00 | 2012-09-17 16:00:01 -0400 | [diff] [blame] | 49 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 50 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libaosprecovery.so |
Dees_Troy | 930bf01 | 2013-08-10 22:19:03 +0000 | [diff] [blame] | 51 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so |
Vojtech Bocek | 7cc278b | 2013-02-24 01:40:19 +0100 | [diff] [blame] | 52 | ifeq ($(BUILD_ID), GINGERBREAD) |
| 53 | TW_NO_EXFAT := true |
| 54 | endif |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 55 | ifneq ($(TW_NO_EXFAT), true) |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 56 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/exfat-fuse |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 57 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkexfatfs |
Vojtech Bocek | 7cc278b | 2013-02-24 01:40:19 +0100 | [diff] [blame] | 58 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libexfat.so |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 59 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 60 | ifeq ($(TW_INCLUDE_BLOBPACK), true) |
| 61 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/blobpack |
| 62 | endif |
| 63 | ifeq ($(TW_INCLUDE_INJECTTWRP), true) |
| 64 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/injecttwrp |
| 65 | endif |
| 66 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 67 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/htcdumlock |
| 68 | endif |
| 69 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 70 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcryptfsics.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 71 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
| 72 | endif |
| 73 | ifeq ($(TW_INCLUDE_JB_CRYPTO), true) |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 74 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcryptfsjb.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 75 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
| 76 | endif |
Dees_Troy | 38bd760 | 2012-09-14 13:33:53 -0400 | [diff] [blame] | 77 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 78 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/make_ext4fs |
| 79 | endif |
Dees_Troy | 4546fe7 | 2013-01-10 14:33:27 +0000 | [diff] [blame] | 80 | ifneq ($(wildcard system/core/libsparse/Android.mk),) |
| 81 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsparse.so |
| 82 | endif |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 83 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
| 84 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/openaes |
| 85 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libopenaes.so |
| 86 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 87 | |
| 88 | TWRP_AUTOGEN := $(intermediates)/teamwin |
| 89 | |
| 90 | GEN := $(intermediates)/teamwin |
| 91 | $(GEN): $(RELINK) |
| 92 | $(GEN): $(RELINK_SOURCE_FILES) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery |
| 93 | $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/sbin $(RELINK_SOURCE_FILES) |
| 94 | $(RELINK) $(call intermediates-dir-for,EXECUTABLES,recovery) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery |
| 95 | |
| 96 | LOCAL_GENERATED_SOURCES := $(GEN) |
| 97 | LOCAL_SRC_FILES := teamwin $(GEN) |
| 98 | include $(BUILD_PREBUILT) |
| 99 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 100 | #fix_permissions |
| 101 | include $(CLEAR_VARS) |
| 102 | LOCAL_MODULE := fix_permissions.sh |
| 103 | LOCAL_MODULE_TAGS := eng |
| 104 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 105 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 106 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 107 | include $(BUILD_PREBUILT) |
| 108 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 109 | #mke2fs.conf |
| 110 | include $(CLEAR_VARS) |
| 111 | LOCAL_MODULE := mke2fs.conf |
| 112 | LOCAL_MODULE_TAGS := eng |
| 113 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 114 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc |
| 115 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 116 | include $(BUILD_PREBUILT) |
| 117 | |
| 118 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
| 119 | #parted |
| 120 | include $(CLEAR_VARS) |
| 121 | LOCAL_MODULE := parted |
| 122 | LOCAL_MODULE_TAGS := eng |
| 123 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 124 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 125 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 126 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 127 | endif |
| 128 | |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 129 | # copy license file for OpenAES |
| 130 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
| 131 | include $(CLEAR_VARS) |
| 132 | LOCAL_MODULE := ../openaes/LICENSE |
| 133 | LOCAL_MODULE_TAGS := eng |
| 134 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 135 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/license/openaes |
| 136 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 137 | include $(BUILD_PREBUILT) |
| 138 | endif |
| 139 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 140 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 141 | #htcdumlock for /system for dumlock |
| 142 | include $(CLEAR_VARS) |
| 143 | LOCAL_MODULE := htcdumlocksys |
| 144 | LOCAL_MODULE_TAGS := eng |
| 145 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 146 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 147 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 148 | include $(BUILD_PREBUILT) |
| 149 | |
| 150 | #flash_image for /system for dumlock |
| 151 | include $(CLEAR_VARS) |
| 152 | LOCAL_MODULE := flash_imagesys |
| 153 | LOCAL_MODULE_TAGS := eng |
| 154 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 155 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 156 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 157 | include $(BUILD_PREBUILT) |
| 158 | |
| 159 | #dump_image for /system for dumlock |
| 160 | include $(CLEAR_VARS) |
| 161 | LOCAL_MODULE := dump_imagesys |
| 162 | LOCAL_MODULE_TAGS := eng |
| 163 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 164 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 165 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 166 | include $(BUILD_PREBUILT) |
| 167 | |
| 168 | #libbmlutils for /system for dumlock |
| 169 | include $(CLEAR_VARS) |
| 170 | LOCAL_MODULE := libbmlutils.so |
| 171 | LOCAL_MODULE_TAGS := eng |
| 172 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 173 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 174 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 175 | include $(BUILD_PREBUILT) |
| 176 | |
| 177 | #libflashutils for /system for dumlock |
| 178 | include $(CLEAR_VARS) |
| 179 | LOCAL_MODULE := libflashutils.so |
| 180 | LOCAL_MODULE_TAGS := eng |
| 181 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 182 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 183 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 184 | include $(BUILD_PREBUILT) |
| 185 | |
| 186 | #libmmcutils for /system for dumlock |
| 187 | include $(CLEAR_VARS) |
| 188 | LOCAL_MODULE := libmmcutils.so |
| 189 | LOCAL_MODULE_TAGS := eng |
| 190 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 191 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 192 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 193 | include $(BUILD_PREBUILT) |
| 194 | |
| 195 | #libmtdutils for /system for dumlock |
| 196 | include $(CLEAR_VARS) |
| 197 | LOCAL_MODULE := libmtdutils.so |
| 198 | LOCAL_MODULE_TAGS := eng |
| 199 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 200 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 201 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 202 | include $(BUILD_PREBUILT) |
| 203 | |
| 204 | #HTCDumlock.apk |
| 205 | include $(CLEAR_VARS) |
| 206 | LOCAL_MODULE := HTCDumlock.apk |
| 207 | LOCAL_MODULE_TAGS := eng |
| 208 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 209 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 210 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 211 | include $(BUILD_PREBUILT) |
| 212 | endif |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 213 | |
| 214 | ifneq ($(TW_EXCLUDE_SUPERSU), true) |
| 215 | #su binary |
| 216 | include $(CLEAR_VARS) |
| 217 | LOCAL_MODULE := su |
| 218 | LOCAL_MODULE_TAGS := eng |
| 219 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
jt1134 | 113ee73 | 2013-02-22 23:26:10 -0600 | [diff] [blame] | 220 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 221 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 222 | include $(BUILD_PREBUILT) |
| 223 | |
| 224 | #SuperSU special installer APK |
| 225 | include $(CLEAR_VARS) |
| 226 | LOCAL_MODULE := Superuser.apk |
| 227 | LOCAL_MODULE_TAGS := eng |
| 228 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
jt1134 | 113ee73 | 2013-02-22 23:26:10 -0600 | [diff] [blame] | 229 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 230 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 231 | include $(BUILD_PREBUILT) |
jt1134 | 113ee73 | 2013-02-22 23:26:10 -0600 | [diff] [blame] | 232 | endif |