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 |
Vojtech Bocek | 7cc278b | 2013-02-24 01:40:19 +0100 | [diff] [blame] | 51 | ifeq ($(BUILD_ID), GINGERBREAD) |
| 52 | TW_NO_EXFAT := true |
| 53 | endif |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 54 | ifneq ($(TW_NO_EXFAT), true) |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 55 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/exfat-fuse |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 56 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkexfatfs |
Vojtech Bocek | 7cc278b | 2013-02-24 01:40:19 +0100 | [diff] [blame] | 57 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libexfat.so |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 58 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 59 | ifeq ($(TW_INCLUDE_BLOBPACK), true) |
| 60 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/blobpack |
| 61 | endif |
| 62 | ifeq ($(TW_INCLUDE_INJECTTWRP), true) |
| 63 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/injecttwrp |
| 64 | endif |
| 65 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 66 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/htcdumlock |
| 67 | endif |
| 68 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 69 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcryptfsics.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 70 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
| 71 | endif |
| 72 | ifeq ($(TW_INCLUDE_JB_CRYPTO), true) |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 73 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcryptfsjb.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 74 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
| 75 | endif |
Dees_Troy | 38bd760 | 2012-09-14 13:33:53 -0400 | [diff] [blame] | 76 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 77 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/make_ext4fs |
| 78 | endif |
Dees_Troy | 4546fe7 | 2013-01-10 14:33:27 +0000 | [diff] [blame] | 79 | ifneq ($(wildcard system/core/libsparse/Android.mk),) |
| 80 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsparse.so |
| 81 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 82 | |
| 83 | TWRP_AUTOGEN := $(intermediates)/teamwin |
| 84 | |
| 85 | GEN := $(intermediates)/teamwin |
| 86 | $(GEN): $(RELINK) |
| 87 | $(GEN): $(RELINK_SOURCE_FILES) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery |
| 88 | $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/sbin $(RELINK_SOURCE_FILES) |
| 89 | $(RELINK) $(call intermediates-dir-for,EXECUTABLES,recovery) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery |
| 90 | |
| 91 | LOCAL_GENERATED_SOURCES := $(GEN) |
| 92 | LOCAL_SRC_FILES := teamwin $(GEN) |
| 93 | include $(BUILD_PREBUILT) |
| 94 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 95 | #fix_permissions |
| 96 | include $(CLEAR_VARS) |
| 97 | LOCAL_MODULE := fix_permissions.sh |
| 98 | LOCAL_MODULE_TAGS := eng |
| 99 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 100 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 101 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 102 | include $(BUILD_PREBUILT) |
| 103 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 104 | #mke2fs.conf |
| 105 | include $(CLEAR_VARS) |
| 106 | LOCAL_MODULE := mke2fs.conf |
| 107 | LOCAL_MODULE_TAGS := eng |
| 108 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 109 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc |
| 110 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 111 | include $(BUILD_PREBUILT) |
| 112 | |
| 113 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
| 114 | #parted |
| 115 | include $(CLEAR_VARS) |
| 116 | LOCAL_MODULE := parted |
| 117 | LOCAL_MODULE_TAGS := eng |
| 118 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 119 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 120 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 121 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 122 | endif |
| 123 | |
| 124 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 125 | #htcdumlock for /system for dumlock |
| 126 | include $(CLEAR_VARS) |
| 127 | LOCAL_MODULE := htcdumlocksys |
| 128 | LOCAL_MODULE_TAGS := eng |
| 129 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 130 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 131 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 132 | include $(BUILD_PREBUILT) |
| 133 | |
| 134 | #flash_image for /system for dumlock |
| 135 | include $(CLEAR_VARS) |
| 136 | LOCAL_MODULE := flash_imagesys |
| 137 | LOCAL_MODULE_TAGS := eng |
| 138 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 139 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 140 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 141 | include $(BUILD_PREBUILT) |
| 142 | |
| 143 | #dump_image for /system for dumlock |
| 144 | include $(CLEAR_VARS) |
| 145 | LOCAL_MODULE := dump_imagesys |
| 146 | LOCAL_MODULE_TAGS := eng |
| 147 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 148 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 149 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 150 | include $(BUILD_PREBUILT) |
| 151 | |
| 152 | #libbmlutils for /system for dumlock |
| 153 | include $(CLEAR_VARS) |
| 154 | LOCAL_MODULE := libbmlutils.so |
| 155 | LOCAL_MODULE_TAGS := eng |
| 156 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 157 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 158 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 159 | include $(BUILD_PREBUILT) |
| 160 | |
| 161 | #libflashutils for /system for dumlock |
| 162 | include $(CLEAR_VARS) |
| 163 | LOCAL_MODULE := libflashutils.so |
| 164 | LOCAL_MODULE_TAGS := eng |
| 165 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 166 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 167 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 168 | include $(BUILD_PREBUILT) |
| 169 | |
| 170 | #libmmcutils for /system for dumlock |
| 171 | include $(CLEAR_VARS) |
| 172 | LOCAL_MODULE := libmmcutils.so |
| 173 | LOCAL_MODULE_TAGS := eng |
| 174 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 175 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 176 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 177 | include $(BUILD_PREBUILT) |
| 178 | |
| 179 | #libmtdutils for /system for dumlock |
| 180 | include $(CLEAR_VARS) |
| 181 | LOCAL_MODULE := libmtdutils.so |
| 182 | LOCAL_MODULE_TAGS := eng |
| 183 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 184 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 185 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 186 | include $(BUILD_PREBUILT) |
| 187 | |
| 188 | #HTCDumlock.apk |
| 189 | include $(CLEAR_VARS) |
| 190 | LOCAL_MODULE := HTCDumlock.apk |
| 191 | LOCAL_MODULE_TAGS := eng |
| 192 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 193 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 194 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 195 | include $(BUILD_PREBUILT) |
| 196 | endif |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 197 | |
| 198 | ifneq ($(TW_EXCLUDE_SUPERSU), true) |
| 199 | #su binary |
| 200 | include $(CLEAR_VARS) |
| 201 | LOCAL_MODULE := su |
| 202 | LOCAL_MODULE_TAGS := eng |
| 203 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
jt1134 | 113ee73 | 2013-02-22 23:26:10 -0600 | [diff] [blame] | 204 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 205 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 206 | include $(BUILD_PREBUILT) |
| 207 | |
| 208 | #SuperSU special installer APK |
| 209 | include $(CLEAR_VARS) |
| 210 | LOCAL_MODULE := Superuser.apk |
| 211 | LOCAL_MODULE_TAGS := eng |
| 212 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
jt1134 | 113ee73 | 2013-02-22 23:26:10 -0600 | [diff] [blame] | 213 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 214 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 215 | include $(BUILD_PREBUILT) |
jt1134 | 113ee73 | 2013-02-22 23:26:10 -0600 | [diff] [blame] | 216 | endif |