Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | ifneq ($(TARGET_SIMULATOR),true) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 4 | |
| 5 | include $(CLEAR_VARS) |
| 6 | LOCAL_SRC_FILES := flashutils.c |
| 7 | LOCAL_MODULE := libflashutils |
| 8 | LOCAL_MODULE_TAGS := optional |
| 9 | LOCAL_C_INCLUDES += bootable/recovery |
| 10 | LOCAL_STATIC_LIBRARIES := libmmcutils libmtdutils libbmlutils libcrecovery |
| 11 | |
| 12 | BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY |
| 13 | |
| 14 | $(foreach board_define,$(BOARD_RECOVERY_DEFINES), \ |
| 15 | $(if $($(board_define)), \ |
| 16 | $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \ |
| 17 | ) \ |
| 18 | ) |
| 19 | |
| 20 | include $(BUILD_STATIC_LIBRARY) |
| 21 | |
| 22 | include $(CLEAR_VARS) |
| 23 | LOCAL_SRC_FILES := flash_image.c |
| 24 | LOCAL_MODULE := flash_image |
| 25 | LOCAL_MODULE_TAGS := optional |
| 26 | LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils libcrecovery |
| 27 | LOCAL_SHARED_LIBRARIES := libcutils libc |
| 28 | include $(BUILD_EXECUTABLE) |
| 29 | |
| 30 | include $(CLEAR_VARS) |
| 31 | LOCAL_SRC_FILES := dump_image.c |
| 32 | LOCAL_MODULE := dump_image |
| 33 | LOCAL_MODULE_TAGS := optional |
| 34 | LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils libcrecovery |
| 35 | LOCAL_SHARED_LIBRARIES := libcutils libc |
| 36 | include $(BUILD_EXECUTABLE) |
| 37 | |
| 38 | include $(CLEAR_VARS) |
| 39 | LOCAL_SRC_FILES := erase_image.c |
| 40 | LOCAL_MODULE := erase_image |
| 41 | LOCAL_MODULE_TAGS := optional |
| 42 | LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils libcrecovery |
| 43 | LOCAL_SHARED_LIBRARIES := libcutils libc |
| 44 | include $(BUILD_EXECUTABLE) |
| 45 | |
| 46 | ALL_DEFAULT_INSTALLED_MODULES += $(addprefix $(TARGET_OUT)/bin/, flash_image dump_image erase_image) |
| 47 | |
| 48 | include $(CLEAR_VARS) |
| 49 | LOCAL_SRC_FILES := flash_image.c |
| 50 | LOCAL_MODULE := libflash_image |
| 51 | LOCAL_MODULE_TAGS := optional |
| 52 | LOCAL_CFLAGS += -Dmain=flash_image_main |
| 53 | include $(BUILD_STATIC_LIBRARY) |
| 54 | |
| 55 | include $(CLEAR_VARS) |
| 56 | LOCAL_SRC_FILES := dump_image.c |
| 57 | LOCAL_MODULE := libdump_image |
| 58 | LOCAL_MODULE_TAGS := optional |
| 59 | LOCAL_CFLAGS += -Dmain=dump_image_main |
| 60 | include $(BUILD_STATIC_LIBRARY) |
| 61 | |
| 62 | include $(CLEAR_VARS) |
| 63 | LOCAL_SRC_FILES := erase_image.c |
| 64 | LOCAL_MODULE := liberase_image |
| 65 | LOCAL_MODULE_TAGS := optional |
| 66 | LOCAL_CFLAGS += -Dmain=erase_image_main |
| 67 | include $(BUILD_STATIC_LIBRARY) |
| 68 | |
| 69 | include $(CLEAR_VARS) |
| 70 | LOCAL_SRC_FILES := dump_image.c |
| 71 | LOCAL_MODULE := utility_dump_image |
| 72 | LOCAL_MODULE_TAGS := optional |
| 73 | LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES |
| 74 | LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities |
| 75 | LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities |
| 76 | LOCAL_MODULE_STEM := dump_image |
| 77 | LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils libcutils libc |
| 78 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 79 | include $(BUILD_EXECUTABLE) |
| 80 | |
| 81 | include $(CLEAR_VARS) |
| 82 | LOCAL_SRC_FILES := flash_image.c |
| 83 | LOCAL_MODULE := utility_flash_image |
| 84 | LOCAL_MODULE_TAGS := optional |
| 85 | LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES |
| 86 | LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities |
| 87 | LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities |
| 88 | LOCAL_MODULE_STEM := flash_image |
| 89 | LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils libcutils libc |
| 90 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 91 | include $(BUILD_EXECUTABLE) |
| 92 | |
| 93 | include $(CLEAR_VARS) |
| 94 | LOCAL_SRC_FILES := erase_image.c |
| 95 | LOCAL_MODULE := utility_erase_image |
| 96 | LOCAL_MODULE_TAGS := optional |
| 97 | LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES |
| 98 | LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities |
| 99 | LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities |
| 100 | LOCAL_MODULE_STEM := erase_image |
| 101 | LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils libcutils libc |
| 102 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 103 | include $(BUILD_EXECUTABLE) |
| 104 | |
| 105 | #Added for dynamic building for TWRP: |
| 106 | |
| 107 | include $(CLEAR_VARS) |
| 108 | LOCAL_SRC_FILES := flashutils.c |
| 109 | LOCAL_MODULE := libflashutils |
| 110 | LOCAL_MODULE_TAGS := eng |
| 111 | LOCAL_C_INCLUDES += bootable/recovery |
| 112 | LOCAL_SHARED_LIBRARIES := libc libmmcutils libbmlutils |
| 113 | LOCAL_STATIC_LIBRARIES := libmtdutils |
| 114 | |
| 115 | BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY |
| 116 | |
| 117 | $(foreach board_define,$(BOARD_RECOVERY_DEFINES), \ |
| 118 | $(if $($(board_define)), \ |
| 119 | $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \ |
| 120 | ) \ |
| 121 | ) |
| 122 | |
| 123 | include $(BUILD_SHARED_LIBRARY) |
| 124 | |
| 125 | include $(CLEAR_VARS) |
| 126 | LOCAL_MODULE := flash_image |
| 127 | LOCAL_MODULE_TAGS := eng |
| 128 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 129 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 130 | LOCAL_SRC_FILES := flash_image.c |
| 131 | LOCAL_SHARED_LIBRARIES := libflashutils libmmcutils libbmlutils libcutils libc |
| 132 | LOCAL_STATIC_LIBRARIES := libmtdutils |
| 133 | include $(BUILD_EXECUTABLE) |
| 134 | |
| 135 | include $(CLEAR_VARS) |
| 136 | LOCAL_MODULE := dump_image |
| 137 | LOCAL_MODULE_TAGS := eng |
| 138 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 139 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 140 | LOCAL_SRC_FILES := dump_image.c |
| 141 | LOCAL_SHARED_LIBRARIES := libflashutils libmmcutils libbmlutils libcutils libc |
| 142 | LOCAL_STATIC_LIBRARIES := libmtdutils |
| 143 | include $(BUILD_EXECUTABLE) |
| 144 | |
| 145 | include $(CLEAR_VARS) |
| 146 | LOCAL_MODULE := erase_image |
| 147 | LOCAL_MODULE_TAGS := eng |
| 148 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 149 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 150 | LOCAL_SRC_FILES := erase_image.c |
| 151 | LOCAL_SHARED_LIBRARIES := libflashutils libmmcutils libbmlutils libcutils libc |
| 152 | LOCAL_STATIC_LIBRARIES := libmtdutils |
| 153 | include $(BUILD_EXECUTABLE) |
| 154 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 155 | endif # !TARGET_SIMULATOR |