2009-06-09 12:22:33 -07:00
|
|
|
ifneq ($(TARGET_SIMULATOR),true)
|
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
|
|
|
|
2009-03-03 19:28:42 -08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
commands_recovery_local_path := $(LOCAL_PATH)
|
2010-02-11 22:27:06 -08:00
|
|
|
# LOCAL_CPP_EXTENSION := .c
|
2009-03-03 19:28:42 -08:00
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2010-02-11 22:27:06 -08:00
|
|
|
extendedcommands.c \
|
2010-02-11 18:59:58 -08:00
|
|
|
legacy.c \
|
2010-02-11 22:27:06 -08:00
|
|
|
commands.c \
|
2009-03-03 19:28:42 -08:00
|
|
|
recovery.c \
|
|
|
|
bootloader.c \
|
|
|
|
firmware.c \
|
|
|
|
install.c \
|
|
|
|
roots.c \
|
|
|
|
ui.c \
|
|
|
|
verifier.c
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES += test_roots.c
|
|
|
|
|
|
|
|
LOCAL_MODULE := recovery
|
|
|
|
|
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
|
2010-03-11 22:17:11 -08:00
|
|
|
RECOVERY_API_VERSION := 1.6.4
|
2009-06-17 17:29:40 -07:00
|
|
|
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
|
|
|
|
|
2009-03-03 19:28:42 -08:00
|
|
|
# This binary is in the recovery ramdisk, which is otherwise a copy of root.
|
|
|
|
# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
|
|
|
|
# a (redundant) copy of the binary in /system/bin for user builds.
|
|
|
|
# TODO: Build the ramdisk image in a more principled way.
|
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := eng
|
|
|
|
|
2009-06-09 12:22:33 -07:00
|
|
|
LOCAL_STATIC_LIBRARIES :=
|
|
|
|
ifeq ($(TARGET_RECOVERY_UI_LIB),)
|
|
|
|
LOCAL_SRC_FILES += default_recovery_ui.c
|
|
|
|
else
|
|
|
|
LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
|
|
|
|
endif
|
2010-03-03 00:42:58 -08:00
|
|
|
LOCAL_STATIC_LIBRARIES += libbusybox libclearsilverregex libmkyaffs2image libunyaffs libdump_image libflash_image libmtdutils
|
2010-02-21 17:52:30 -08:00
|
|
|
LOCAL_STATIC_LIBRARIES += libamend
|
2009-07-15 18:10:28 -07:00
|
|
|
LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt
|
2009-03-27 17:06:24 -07:00
|
|
|
LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils
|
2009-03-03 19:28:42 -08:00
|
|
|
LOCAL_STATIC_LIBRARIES += libstdc++ libc
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
2010-02-11 18:59:58 -08:00
|
|
|
include $(commands_recovery_local_path)/amend/Android.mk
|
2010-02-20 15:59:06 -08:00
|
|
|
include $(commands_recovery_local_path)/nandroid/Android.mk
|
2009-06-09 12:22:33 -07:00
|
|
|
include $(commands_recovery_local_path)/minui/Android.mk
|
2009-03-03 19:28:42 -08:00
|
|
|
include $(commands_recovery_local_path)/minzip/Android.mk
|
|
|
|
include $(commands_recovery_local_path)/mtdutils/Android.mk
|
|
|
|
include $(commands_recovery_local_path)/tools/Android.mk
|
2009-06-10 14:11:53 -07:00
|
|
|
include $(commands_recovery_local_path)/edify/Android.mk
|
|
|
|
include $(commands_recovery_local_path)/updater/Android.mk
|
2009-03-03 19:28:42 -08:00
|
|
|
commands_recovery_local_path :=
|
2009-06-11 17:05:58 -07:00
|
|
|
|
|
|
|
endif # TARGET_ARCH == arm
|
|
|
|
endif # !TARGET_SIMULATOR
|
|
|
|
|