2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
ifneq ($(TARGET_SIMULATOR),true)
|
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
|
|
|
|
2010-11-14 08:18:40 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := flashutils.c
|
|
|
|
LOCAL_MODULE := libflashutils
|
2010-12-19 01:42:31 +00:00
|
|
|
LOCAL_MODULE_TAGS := eng
|
2010-11-14 08:18:40 +00:00
|
|
|
LOCAL_C_INCLUDES += bootable/recovery
|
2011-06-09 02:03:27 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES := libmmcutils libmtdutils libbmlutils libcrecovery
|
2011-07-07 19:55:02 +00:00
|
|
|
|
|
|
|
BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY
|
|
|
|
|
|
|
|
$(foreach board_define,$(BOARD_RECOVERY_DEFINES), \
|
|
|
|
$(if $($(board_define)), \
|
|
|
|
$(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \
|
|
|
|
) \
|
|
|
|
)
|
|
|
|
|
2010-11-14 08:18:40 +00:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2010-11-10 18:40:44 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := flash_image.c
|
|
|
|
LOCAL_MODULE := flash_image
|
|
|
|
LOCAL_MODULE_TAGS := eng
|
2010-11-14 08:18:40 +00:00
|
|
|
#LOCAL_STATIC_LIBRARIES += $(BOARD_FLASH_LIBRARY)
|
|
|
|
LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils
|
2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils libc
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := dump_image.c
|
|
|
|
LOCAL_MODULE := dump_image
|
|
|
|
LOCAL_MODULE_TAGS := eng
|
2010-11-14 08:18:40 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils
|
2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils libc
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := erase_image.c
|
|
|
|
LOCAL_MODULE := erase_image
|
|
|
|
LOCAL_MODULE_TAGS := eng
|
2010-11-14 08:18:40 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils
|
2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils libc
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := flash_image.c
|
|
|
|
LOCAL_MODULE := libflash_image
|
2010-12-19 01:42:31 +00:00
|
|
|
LOCAL_MODULE_TAGS := eng
|
2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_CFLAGS += -Dmain=flash_image_main
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := dump_image.c
|
|
|
|
LOCAL_MODULE := libdump_image
|
2010-12-19 01:42:31 +00:00
|
|
|
LOCAL_MODULE_TAGS := eng
|
2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_CFLAGS += -Dmain=dump_image_main
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := erase_image.c
|
|
|
|
LOCAL_MODULE := liberase_image
|
2010-12-19 01:42:31 +00:00
|
|
|
LOCAL_MODULE_TAGS := eng
|
2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_CFLAGS += -Dmain=erase_image_main
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := dump_image.c
|
|
|
|
LOCAL_MODULE := utility_dump_image
|
2010-12-19 01:42:31 +00:00
|
|
|
LOCAL_MODULE_TAGS := eng
|
2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
|
|
|
|
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
|
|
|
|
LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
|
|
|
|
LOCAL_MODULE_STEM := dump_image
|
2010-11-14 08:18:40 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils libcutils libc
|
2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := flash_image.c
|
|
|
|
LOCAL_MODULE := utility_flash_image
|
2010-12-19 01:42:31 +00:00
|
|
|
LOCAL_MODULE_TAGS := eng
|
2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
|
|
|
|
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
|
|
|
|
LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
|
|
|
|
LOCAL_MODULE_STEM := flash_image
|
2010-11-14 08:18:40 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils libcutils libc
|
2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := erase_image.c
|
|
|
|
LOCAL_MODULE := utility_erase_image
|
2010-12-19 01:42:31 +00:00
|
|
|
LOCAL_MODULE_TAGS := eng
|
2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_MODULE_CLASS := UTILITY_EXECUTABLES
|
|
|
|
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
|
|
|
|
LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
|
|
|
|
LOCAL_MODULE_STEM := erase_image
|
2010-11-14 08:18:40 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES := libflashutils libmtdutils libmmcutils libbmlutils libcutils libc
|
2010-11-10 18:40:44 +00:00
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
endif # TARGET_ARCH == arm
|
|
|
|
endif # !TARGET_SIMULATOR
|