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 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 74 | #fix_permissions |
| 75 | include $(CLEAR_VARS) |
| 76 | LOCAL_MODULE := fix_permissions.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 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 83 | #mke2fs.conf |
| 84 | include $(CLEAR_VARS) |
| 85 | LOCAL_MODULE := mke2fs.conf |
| 86 | LOCAL_MODULE_TAGS := eng |
| 87 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 88 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc |
| 89 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 90 | include $(BUILD_PREBUILT) |
| 91 | |
| 92 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
| 93 | #parted |
| 94 | include $(CLEAR_VARS) |
| 95 | LOCAL_MODULE := parted |
| 96 | LOCAL_MODULE_TAGS := eng |
| 97 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 98 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 99 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 100 | include $(BUILD_PREBUILT) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 101 | endif |
| 102 | |
| 103 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 104 | #htcdumlock for /system for dumlock |
| 105 | include $(CLEAR_VARS) |
| 106 | LOCAL_MODULE := htcdumlocksys |
| 107 | LOCAL_MODULE_TAGS := eng |
| 108 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 109 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 110 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 111 | include $(BUILD_PREBUILT) |
| 112 | |
| 113 | #flash_image for /system for dumlock |
| 114 | include $(CLEAR_VARS) |
| 115 | LOCAL_MODULE := flash_imagesys |
| 116 | LOCAL_MODULE_TAGS := eng |
| 117 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 118 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 119 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 120 | include $(BUILD_PREBUILT) |
| 121 | |
| 122 | #dump_image for /system for dumlock |
| 123 | include $(CLEAR_VARS) |
| 124 | LOCAL_MODULE := dump_imagesys |
| 125 | LOCAL_MODULE_TAGS := eng |
| 126 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 127 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 128 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 129 | include $(BUILD_PREBUILT) |
| 130 | |
| 131 | #libbmlutils for /system for dumlock |
| 132 | include $(CLEAR_VARS) |
| 133 | LOCAL_MODULE := libbmlutils.so |
| 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 | #libflashutils for /system for dumlock |
| 141 | include $(CLEAR_VARS) |
| 142 | LOCAL_MODULE := libflashutils.so |
| 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 | #libmmcutils for /system for dumlock |
| 150 | include $(CLEAR_VARS) |
| 151 | LOCAL_MODULE := libmmcutils.so |
| 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 | #libmtdutils for /system for dumlock |
| 159 | include $(CLEAR_VARS) |
| 160 | LOCAL_MODULE := libmtdutils.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 | #HTCDumlock.apk |
| 168 | include $(CLEAR_VARS) |
| 169 | LOCAL_MODULE := HTCDumlock.apk |
| 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 | endif |