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