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 | 03ea978 | 2014-11-17 09:36:46 -0600 | [diff] [blame] | 86 | LOCAL_SHARED_LIBRARIES := libc libmtdutils libmmcutils libbmlutils libcrecovery |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 87 | |
| 88 | BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY |
| 89 | |
| 90 | $(foreach board_define,$(BOARD_RECOVERY_DEFINES), \ |
| 91 | $(if $($(board_define)), \ |
| 92 | $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \ |
| 93 | ) \ |
| 94 | ) |
| 95 | |
| 96 | include $(BUILD_SHARED_LIBRARY) |
| 97 | |
| 98 | include $(CLEAR_VARS) |
| 99 | LOCAL_MODULE := flash_image |
| 100 | LOCAL_MODULE_TAGS := eng |
| 101 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 102 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 103 | LOCAL_SRC_FILES := flash_image.c |
Ethan Yonker | 03ea978 | 2014-11-17 09:36:46 -0600 | [diff] [blame] | 104 | LOCAL_SHARED_LIBRARIES := libmtdutils libflashutils libmmcutils libbmlutils libcutils libc |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 105 | include $(BUILD_EXECUTABLE) |
| 106 | |
| 107 | include $(CLEAR_VARS) |
| 108 | LOCAL_MODULE := dump_image |
| 109 | LOCAL_MODULE_TAGS := eng |
| 110 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 111 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 112 | LOCAL_SRC_FILES := dump_image.c |
Ethan Yonker | 03ea978 | 2014-11-17 09:36:46 -0600 | [diff] [blame] | 113 | LOCAL_SHARED_LIBRARIES := libmtdutils libflashutils libmmcutils libbmlutils libcutils libc |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 114 | include $(BUILD_EXECUTABLE) |
| 115 | |
| 116 | include $(CLEAR_VARS) |
| 117 | LOCAL_MODULE := erase_image |
| 118 | LOCAL_MODULE_TAGS := eng |
| 119 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 120 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 121 | LOCAL_SRC_FILES := erase_image.c |
Ethan Yonker | 03ea978 | 2014-11-17 09:36:46 -0600 | [diff] [blame] | 122 | LOCAL_SHARED_LIBRARIES := libmtdutils libflashutils libmmcutils libbmlutils libcutils libc |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 123 | include $(BUILD_EXECUTABLE) |
| 124 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 125 | endif # !TARGET_SIMULATOR |