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 |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 9 | LOCAL_C_INCLUDES += $(commands_recovery_local_path) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 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 |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 24 | LOCAL_MODULE := libflash_image |
| 25 | LOCAL_MODULE_TAGS := optional |
| 26 | LOCAL_CFLAGS += -Dmain=flash_image_main |
| 27 | include $(BUILD_STATIC_LIBRARY) |
| 28 | |
| 29 | include $(CLEAR_VARS) |
| 30 | LOCAL_SRC_FILES := dump_image.c |
| 31 | LOCAL_MODULE := libdump_image |
| 32 | LOCAL_MODULE_TAGS := optional |
| 33 | LOCAL_CFLAGS += -Dmain=dump_image_main |
| 34 | include $(BUILD_STATIC_LIBRARY) |
| 35 | |
| 36 | include $(CLEAR_VARS) |
| 37 | LOCAL_SRC_FILES := erase_image.c |
| 38 | LOCAL_MODULE := liberase_image |
| 39 | LOCAL_MODULE_TAGS := optional |
| 40 | LOCAL_CFLAGS += -Dmain=erase_image_main |
| 41 | include $(BUILD_STATIC_LIBRARY) |
| 42 | |
| 43 | include $(CLEAR_VARS) |
| 44 | LOCAL_SRC_FILES := dump_image.c |
| 45 | LOCAL_MODULE := utility_dump_image |
| 46 | LOCAL_MODULE_TAGS := optional |
| 47 | LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES |
| 48 | LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities |
| 49 | LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities |
| 50 | LOCAL_MODULE_STEM := dump_image |
| 51 | LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils libcutils libc |
| 52 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 53 | include $(BUILD_EXECUTABLE) |
| 54 | |
| 55 | include $(CLEAR_VARS) |
| 56 | LOCAL_SRC_FILES := flash_image.c |
| 57 | LOCAL_MODULE := utility_flash_image |
| 58 | LOCAL_MODULE_TAGS := optional |
| 59 | LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES |
| 60 | LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities |
| 61 | LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities |
| 62 | LOCAL_MODULE_STEM := flash_image |
| 63 | LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils libcutils libc |
| 64 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 65 | include $(BUILD_EXECUTABLE) |
| 66 | |
| 67 | include $(CLEAR_VARS) |
| 68 | LOCAL_SRC_FILES := erase_image.c |
| 69 | LOCAL_MODULE := utility_erase_image |
| 70 | LOCAL_MODULE_TAGS := optional |
| 71 | LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES |
| 72 | LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities |
| 73 | LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities |
| 74 | LOCAL_MODULE_STEM := erase_image |
| 75 | LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils libcutils libc |
| 76 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 77 | include $(BUILD_EXECUTABLE) |
| 78 | |
| 79 | #Added for dynamic building for TWRP: |
| 80 | |
| 81 | include $(CLEAR_VARS) |
| 82 | LOCAL_SRC_FILES := flashutils.c |
| 83 | LOCAL_MODULE := libflashutils |
| 84 | LOCAL_MODULE_TAGS := eng |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 85 | LOCAL_C_INCLUDES += $(commands_recovery_local_path) |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 86 | LOCAL_SHARED_LIBRARIES := libc libmmcutils libbmlutils libcrecovery |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 87 | LOCAL_STATIC_LIBRARIES := libmtdutils |
| 88 | |
| 89 | BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY |
| 90 | |
| 91 | $(foreach board_define,$(BOARD_RECOVERY_DEFINES), \ |
| 92 | $(if $($(board_define)), \ |
| 93 | $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \ |
| 94 | ) \ |
| 95 | ) |
| 96 | |
| 97 | include $(BUILD_SHARED_LIBRARY) |
| 98 | |
| 99 | include $(CLEAR_VARS) |
| 100 | LOCAL_MODULE := flash_image |
| 101 | LOCAL_MODULE_TAGS := eng |
| 102 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 103 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 104 | LOCAL_SRC_FILES := flash_image.c |
| 105 | LOCAL_SHARED_LIBRARIES := libflashutils libmmcutils libbmlutils libcutils libc |
| 106 | LOCAL_STATIC_LIBRARIES := libmtdutils |
| 107 | include $(BUILD_EXECUTABLE) |
| 108 | |
| 109 | include $(CLEAR_VARS) |
| 110 | LOCAL_MODULE := dump_image |
| 111 | LOCAL_MODULE_TAGS := eng |
| 112 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 113 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 114 | LOCAL_SRC_FILES := dump_image.c |
| 115 | LOCAL_SHARED_LIBRARIES := libflashutils libmmcutils libbmlutils libcutils libc |
| 116 | LOCAL_STATIC_LIBRARIES := libmtdutils |
| 117 | include $(BUILD_EXECUTABLE) |
| 118 | |
| 119 | include $(CLEAR_VARS) |
| 120 | LOCAL_MODULE := erase_image |
| 121 | LOCAL_MODULE_TAGS := eng |
| 122 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 123 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 124 | LOCAL_SRC_FILES := erase_image.c |
| 125 | LOCAL_SHARED_LIBRARIES := libflashutils libmmcutils libbmlutils libcutils libc |
| 126 | LOCAL_STATIC_LIBRARIES := libmtdutils |
| 127 | include $(BUILD_EXECUTABLE) |
| 128 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 129 | endif # !TARGET_SIMULATOR |