55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
ifneq ($(TARGET_SIMULATOR),true)
|
|
ifeq ($(TARGET_ARCH),arm)
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
mtdutils.c \
|
|
mounts.c
|
|
|
|
LOCAL_MODULE := libmtdutils
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES := flash_image.c
|
|
LOCAL_MODULE := flash_image
|
|
LOCAL_MODULE_TAGS := eng
|
|
LOCAL_STATIC_LIBRARIES := libmtdutils
|
|
LOCAL_SHARED_LIBRARIES := libcutils libc
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES := dump_image.c mtdutils.c mounts.c
|
|
LOCAL_MODULE := dump_image
|
|
LOCAL_MODULE_TAGS := eng
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES := flash_image.c
|
|
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
|
|
LOCAL_MODULE := recovery_flash_image
|
|
LOCAL_MODULE_TAGS := eng
|
|
LOCAL_STATIC_LIBRARIES := libmtdutils libcutils libc
|
|
LOCAL_MODULE_STEM := flash_image
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
|
ADDITIONAL_RECOVERY_EXECUTABLES += recovery_flash_image
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES := dump_image.c mtdutils.c mounts.c
|
|
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
|
|
LOCAL_MODULE := recovery_dump_image
|
|
LOCAL_MODULE_TAGS := eng
|
|
LOCAL_STATIC_LIBRARIES := libcutils libc
|
|
LOCAL_MODULE_STEM := dump_image
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
|
ADDITIONAL_RECOVERY_EXECUTABLES += recovery_dump_image
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
endif # TARGET_ARCH == arm
|
|
endif # !TARGET_SIMULATOR
|