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 |
| 41 | ifeq ($(TW_INCLUDE_BLOBPACK), true) |
| 42 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/blobpack |
| 43 | endif |
| 44 | ifeq ($(TW_INCLUDE_INJECTTWRP), true) |
| 45 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/injecttwrp |
| 46 | endif |
| 47 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 48 | RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/htcdumlock |
| 49 | endif |
| 50 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
| 51 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
| 52 | endif |
| 53 | ifeq ($(TW_INCLUDE_JB_CRYPTO), true) |
| 54 | RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so |
| 55 | endif |
| 56 | |
| 57 | TWRP_AUTOGEN := $(intermediates)/teamwin |
| 58 | |
| 59 | GEN := $(intermediates)/teamwin |
| 60 | $(GEN): $(RELINK) |
| 61 | $(GEN): $(RELINK_SOURCE_FILES) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery |
| 62 | $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/sbin $(RELINK_SOURCE_FILES) |
| 63 | $(RELINK) $(call intermediates-dir-for,EXECUTABLES,recovery) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery |
| 64 | |
| 65 | LOCAL_GENERATED_SOURCES := $(GEN) |
| 66 | LOCAL_SRC_FILES := teamwin $(GEN) |
| 67 | include $(BUILD_PREBUILT) |
| 68 | |
| 69 | #bbinstall.sh |
| 70 | include $(CLEAR_VARS) |
| 71 | LOCAL_MODULE := bbinstall.sh |
| 72 | LOCAL_MODULE_TAGS := eng |
| 73 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 74 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 75 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 76 | include $(BUILD_PREBUILT) |
| 77 | |
| 78 | #fix_permissions |
| 79 | include $(CLEAR_VARS) |
| 80 | LOCAL_MODULE := fix_permissions.sh |
| 81 | LOCAL_MODULE_TAGS := eng |
| 82 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 83 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 84 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 85 | include $(BUILD_PREBUILT) |
| 86 | |
| 87 | #fs |
| 88 | include $(CLEAR_VARS) |
| 89 | LOCAL_MODULE := fs |
| 90 | LOCAL_MODULE_TAGS := eng |
| 91 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 92 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 93 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 94 | include $(BUILD_PREBUILT) |
| 95 | |
| 96 | #mke2fs.conf |
| 97 | include $(CLEAR_VARS) |
| 98 | LOCAL_MODULE := mke2fs.conf |
| 99 | LOCAL_MODULE_TAGS := eng |
| 100 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 101 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc |
| 102 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 103 | include $(BUILD_PREBUILT) |
| 104 | |
| 105 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
| 106 | #parted |
| 107 | include $(CLEAR_VARS) |
| 108 | LOCAL_MODULE := parted |
| 109 | LOCAL_MODULE_TAGS := eng |
| 110 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 111 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 112 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 113 | include $(BUILD_PREBUILT) |
| 114 | |
| 115 | #sdparted |
| 116 | include $(CLEAR_VARS) |
| 117 | LOCAL_MODULE := sdparted |
| 118 | LOCAL_MODULE_TAGS := eng |
| 119 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 120 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 121 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 122 | include $(BUILD_PREBUILT) |
| 123 | endif |
| 124 | |
| 125 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 126 | #htcdumlock for /system for dumlock |
| 127 | include $(CLEAR_VARS) |
| 128 | LOCAL_MODULE := htcdumlocksys |
| 129 | LOCAL_MODULE_TAGS := eng |
| 130 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 131 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 132 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 133 | include $(BUILD_PREBUILT) |
| 134 | |
| 135 | #flash_image for /system for dumlock |
| 136 | include $(CLEAR_VARS) |
| 137 | LOCAL_MODULE := flash_imagesys |
| 138 | LOCAL_MODULE_TAGS := eng |
| 139 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 140 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 141 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 142 | include $(BUILD_PREBUILT) |
| 143 | |
| 144 | #dump_image for /system for dumlock |
| 145 | include $(CLEAR_VARS) |
| 146 | LOCAL_MODULE := dump_imagesys |
| 147 | LOCAL_MODULE_TAGS := eng |
| 148 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 149 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 150 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 151 | include $(BUILD_PREBUILT) |
| 152 | |
| 153 | #libbmlutils for /system for dumlock |
| 154 | include $(CLEAR_VARS) |
| 155 | LOCAL_MODULE := libbmlutils.so |
| 156 | LOCAL_MODULE_TAGS := eng |
| 157 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 158 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 159 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 160 | include $(BUILD_PREBUILT) |
| 161 | |
| 162 | #libflashutils for /system for dumlock |
| 163 | include $(CLEAR_VARS) |
| 164 | LOCAL_MODULE := libflashutils.so |
| 165 | LOCAL_MODULE_TAGS := eng |
| 166 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 167 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 168 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 169 | include $(BUILD_PREBUILT) |
| 170 | |
| 171 | #libmmcutils for /system for dumlock |
| 172 | include $(CLEAR_VARS) |
| 173 | LOCAL_MODULE := libmmcutils.so |
| 174 | LOCAL_MODULE_TAGS := eng |
| 175 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 176 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 177 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 178 | include $(BUILD_PREBUILT) |
| 179 | |
| 180 | #libmtdutils for /system for dumlock |
| 181 | include $(CLEAR_VARS) |
| 182 | LOCAL_MODULE := libmtdutils.so |
| 183 | LOCAL_MODULE_TAGS := eng |
| 184 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 185 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 186 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 187 | include $(BUILD_PREBUILT) |
| 188 | |
| 189 | #HTCDumlock.apk |
| 190 | include $(CLEAR_VARS) |
| 191 | LOCAL_MODULE := HTCDumlock.apk |
| 192 | LOCAL_MODULE_TAGS := eng |
| 193 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 194 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd |
| 195 | LOCAL_SRC_FILES := $(LOCAL_MODULE) |
| 196 | include $(BUILD_PREBUILT) |
| 197 | endif |