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 |
| 18 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/e2fsck |
| 19 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mke2fs |
| 20 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/tune2fs |
| 21 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/linker |
| 22 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libc.so |
| 23 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcutils.so |
| 24 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdl.so |
| 25 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_blkid.so |
| 26 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_com_err.so |
| 27 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_e2p.so |
| 28 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so |
| 29 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_profile.so |
| 30 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_uuid.so |
| 31 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblog.so |
| 32 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libm.so |
| 33 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstdc++.so |
| 34 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libz.so |
| 35 | #RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so |
| 36 | #RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmtdutils.so |
| 37 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmmcutils.so |
| 38 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbmlutils.so |
| 39 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libflashutils.so |
| 40 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstlport.so |
Dees_Troy | b9d88ac | 2012-09-14 14:34:19 -0400 | [diff] [blame] | 41 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmincrypt.so |
Dees_Troy | 43d8b00 | 2012-09-17 16:00:01 -0400 | [diff] [blame] | 42 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 43 | ifeq ($(TW_INCLUDE_BLOBPACK), true) |
| 44 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/blobpack |
| 45 | endif |
| 46 | ifeq ($(TW_INCLUDE_INJECTTWRP), true) |
| 47 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/injecttwrp |
| 48 | endif |
| 49 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 50 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/htcdumlock |
| 51 | endif |
| 52 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
| 53 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
| 54 | endif |
| 55 | ifeq ($(TW_INCLUDE_JB_CRYPTO), true) |
| 56 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
| 57 | endif |
Dees_Troy | 38bd760 | 2012-09-14 13:33:53 -0400 | [diff] [blame] | 58 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 59 | RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/make_ext4fs |
| 60 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 61 | |
| 62 | TWRP_AUTOGEN := $(intermediates)/teamwin |
| 63 | |
| 64 | GEN := $(intermediates)/teamwin |
| 65 | $(GEN): $(RELINK) |
| 66 | $(GEN): $(RELINK_SOURCE_FILES) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery |
| 67 | $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/sbin $(RELINK_SOURCE_FILES) |
| 68 | $(RELINK) $(call intermediates-dir-for,EXECUTABLES,recovery) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery |
| 69 | |
| 70 | LOCAL_GENERATED_SOURCES := $(GEN) |
| 71 | LOCAL_SRC_FILES := teamwin $(GEN) |
| 72 | include $(BUILD_PREBUILT) |
| 73 | |
| 74 | #bbinstall.sh |
| 75 | include $(CLEAR_VARS) |
| 76 | LOCAL_MODULE := bbinstall.sh |
| 77 | LOCAL_MODULE_TAGS := eng |
| 78 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 79 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 80 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 81 | include $(BUILD_PREBUILT) |
| 82 | |
| 83 | #fix_permissions |
| 84 | include $(CLEAR_VARS) |
| 85 | LOCAL_MODULE := fix_permissions.sh |
| 86 | LOCAL_MODULE_TAGS := eng |
| 87 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 88 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 89 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 90 | include $(BUILD_PREBUILT) |
| 91 | |
| 92 | #fs |
| 93 | include $(CLEAR_VARS) |
| 94 | LOCAL_MODULE := fs |
| 95 | LOCAL_MODULE_TAGS := eng |
| 96 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 97 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 98 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 99 | include $(BUILD_PREBUILT) |
| 100 | |
| 101 | #mke2fs.conf |
| 102 | include $(CLEAR_VARS) |
| 103 | LOCAL_MODULE := mke2fs.conf |
| 104 | LOCAL_MODULE_TAGS := eng |
| 105 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 106 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc |
| 107 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 108 | include $(BUILD_PREBUILT) |
| 109 | |
| 110 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
| 111 | #parted |
| 112 | include $(CLEAR_VARS) |
| 113 | LOCAL_MODULE := parted |
| 114 | LOCAL_MODULE_TAGS := eng |
| 115 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 116 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 117 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 118 | include $(BUILD_PREBUILT) |
| 119 | |
| 120 | #sdparted |
| 121 | include $(CLEAR_VARS) |
| 122 | LOCAL_MODULE := sdparted |
| 123 | LOCAL_MODULE_TAGS := eng |
| 124 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 125 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 126 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 127 | include $(BUILD_PREBUILT) |
| 128 | endif |
| 129 | |
| 130 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 131 | #htcdumlock for /system for dumlock |
| 132 | include $(CLEAR_VARS) |
| 133 | LOCAL_MODULE := htcdumlocksys |
| 134 | LOCAL_MODULE_TAGS := eng |
| 135 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 136 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 137 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 138 | include $(BUILD_PREBUILT) |
| 139 | |
| 140 | #flash_image for /system for dumlock |
| 141 | include $(CLEAR_VARS) |
| 142 | LOCAL_MODULE := flash_imagesys |
| 143 | LOCAL_MODULE_TAGS := eng |
| 144 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 145 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 146 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 147 | include $(BUILD_PREBUILT) |
| 148 | |
| 149 | #dump_image for /system for dumlock |
| 150 | include $(CLEAR_VARS) |
| 151 | LOCAL_MODULE := dump_imagesys |
| 152 | LOCAL_MODULE_TAGS := eng |
| 153 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 154 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 155 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 156 | include $(BUILD_PREBUILT) |
| 157 | |
| 158 | #libbmlutils for /system for dumlock |
| 159 | include $(CLEAR_VARS) |
| 160 | LOCAL_MODULE := libbmlutils.so |
| 161 | LOCAL_MODULE_TAGS := eng |
| 162 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 163 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 164 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 165 | include $(BUILD_PREBUILT) |
| 166 | |
| 167 | #libflashutils for /system for dumlock |
| 168 | include $(CLEAR_VARS) |
| 169 | LOCAL_MODULE := libflashutils.so |
| 170 | LOCAL_MODULE_TAGS := eng |
| 171 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 172 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 173 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 174 | include $(BUILD_PREBUILT) |
| 175 | |
| 176 | #libmmcutils for /system for dumlock |
| 177 | include $(CLEAR_VARS) |
| 178 | LOCAL_MODULE := libmmcutils.so |
| 179 | LOCAL_MODULE_TAGS := eng |
| 180 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 181 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 182 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 183 | include $(BUILD_PREBUILT) |
| 184 | |
| 185 | #libmtdutils for /system for dumlock |
| 186 | include $(CLEAR_VARS) |
| 187 | LOCAL_MODULE := libmtdutils.so |
| 188 | LOCAL_MODULE_TAGS := eng |
| 189 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 190 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 191 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 192 | include $(BUILD_PREBUILT) |
| 193 | |
| 194 | #HTCDumlock.apk |
| 195 | include $(CLEAR_VARS) |
| 196 | LOCAL_MODULE := HTCDumlock.apk |
| 197 | LOCAL_MODULE_TAGS := eng |
| 198 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 199 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 200 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 201 | include $(BUILD_PREBUILT) |
| 202 | endif |