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 |
| 38 | #RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so |
| 39 | #RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmtdutils.so |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 40 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtar.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 41 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmmcutils.so |
| 42 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbmlutils.so |
| 43 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libflashutils.so |
| 44 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstlport.so |
Dees_Troy | b9d88ac | 2012-09-14 14:34:19 -0400 | [diff] [blame] | 45 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmincrypt.so |
Dees_Troy | 43d8b00 | 2012-09-17 16:00:01 -0400 | [diff] [blame] | 46 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 47 | |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 48 | ifneq ($(TW_NO_EXFAT), true) |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 49 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/exfat-fuse |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 50 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkexfatfs |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 51 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 52 | ifeq ($(TW_INCLUDE_BLOBPACK), true) |
| 53 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/blobpack |
| 54 | endif |
| 55 | ifeq ($(TW_INCLUDE_INJECTTWRP), true) |
| 56 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/injecttwrp |
| 57 | endif |
| 58 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 59 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/htcdumlock |
| 60 | endif |
| 61 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
| 62 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
| 63 | endif |
| 64 | ifeq ($(TW_INCLUDE_JB_CRYPTO), true) |
| 65 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
| 66 | endif |
Dees_Troy | 38bd760 | 2012-09-14 13:33:53 -0400 | [diff] [blame] | 67 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 68 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/make_ext4fs |
| 69 | endif |
Dees_Troy | 4546fe7 | 2013-01-10 14:33:27 +0000 | [diff] [blame] | 70 | ifneq ($(wildcard system/core/libsparse/Android.mk),) |
| 71 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsparse.so |
| 72 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 73 | |
| 74 | TWRP_AUTOGEN := $(intermediates)/teamwin |
| 75 | |
| 76 | GEN := $(intermediates)/teamwin |
| 77 | $(GEN): $(RELINK) |
| 78 | $(GEN): $(RELINK_SOURCE_FILES) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery |
| 79 | $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/sbin $(RELINK_SOURCE_FILES) |
| 80 | $(RELINK) $(call intermediates-dir-for,EXECUTABLES,recovery) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery |
| 81 | |
| 82 | LOCAL_GENERATED_SOURCES := $(GEN) |
| 83 | LOCAL_SRC_FILES := teamwin $(GEN) |
| 84 | include $(BUILD_PREBUILT) |
| 85 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 86 | #fix_permissions |
| 87 | include $(CLEAR_VARS) |
| 88 | LOCAL_MODULE := fix_permissions.sh |
| 89 | LOCAL_MODULE_TAGS := eng |
| 90 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 91 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 92 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 93 | include $(BUILD_PREBUILT) |
| 94 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 95 | #mke2fs.conf |
| 96 | include $(CLEAR_VARS) |
| 97 | LOCAL_MODULE := mke2fs.conf |
| 98 | LOCAL_MODULE_TAGS := eng |
| 99 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 100 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc |
| 101 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 102 | include $(BUILD_PREBUILT) |
| 103 | |
| 104 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
| 105 | #parted |
| 106 | include $(CLEAR_VARS) |
| 107 | LOCAL_MODULE := parted |
| 108 | LOCAL_MODULE_TAGS := eng |
| 109 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 110 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 111 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 112 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 113 | endif |
| 114 | |
| 115 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 116 | #htcdumlock for /system for dumlock |
| 117 | include $(CLEAR_VARS) |
| 118 | LOCAL_MODULE := htcdumlocksys |
| 119 | LOCAL_MODULE_TAGS := eng |
| 120 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 121 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 122 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 123 | include $(BUILD_PREBUILT) |
| 124 | |
| 125 | #flash_image for /system for dumlock |
| 126 | include $(CLEAR_VARS) |
| 127 | LOCAL_MODULE := flash_imagesys |
| 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 | #dump_image for /system for dumlock |
| 135 | include $(CLEAR_VARS) |
| 136 | LOCAL_MODULE := dump_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 | #libbmlutils for /system for dumlock |
| 144 | include $(CLEAR_VARS) |
| 145 | LOCAL_MODULE := libbmlutils.so |
| 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 | #libflashutils for /system for dumlock |
| 153 | include $(CLEAR_VARS) |
| 154 | LOCAL_MODULE := libflashutils.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 | #libmmcutils for /system for dumlock |
| 162 | include $(CLEAR_VARS) |
| 163 | LOCAL_MODULE := libmmcutils.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 | #libmtdutils for /system for dumlock |
| 171 | include $(CLEAR_VARS) |
| 172 | LOCAL_MODULE := libmtdutils.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 | #HTCDumlock.apk |
| 180 | include $(CLEAR_VARS) |
| 181 | LOCAL_MODULE := HTCDumlock.apk |
| 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 | endif |
Dees_Troy | 6ef6635 | 2013-02-21 08:26:57 -0600 | [diff] [blame] | 188 | |
| 189 | ifneq ($(TW_EXCLUDE_SUPERSU), true) |
| 190 | #su binary |
| 191 | include $(CLEAR_VARS) |
| 192 | LOCAL_MODULE := su |
| 193 | LOCAL_MODULE_TAGS := eng |
| 194 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 195 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/supersu |
| 196 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 197 | include $(BUILD_PREBUILT) |
| 198 | |
| 199 | #SuperSU special installer APK |
| 200 | include $(CLEAR_VARS) |
| 201 | LOCAL_MODULE := Superuser.apk |
| 202 | LOCAL_MODULE_TAGS := eng |
| 203 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 204 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/supersu |
| 205 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 206 | include $(BUILD_PREBUILT) |
| 207 | endif |