1 LOCAL_PATH := $(call my-dir) 2 include $(CLEAR_VARS) 3 4 commands_recovery_local_path := $(LOCAL_PATH) 5 6 LOCAL_SRC_FILES := \ 7 recovery.c \ 8 bootloader.c \ 9 install.c \ 10 roots.c \ 11 ui.c \ 12 verifier.c 13 14 LOCAL_MODULE := recovery 15 16 LOCAL_FORCE_STATIC_EXECUTABLE := true 17 18 RECOVERY_API_VERSION := 3 19 LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) 20 21 LOCAL_STATIC_LIBRARIES := 22 23 ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) 24 LOCAL_CFLAGS += -DUSE_EXT4 25 LOCAL_C_INCLUDES += system/extras/ext4_utils 26 LOCAL_STATIC_LIBRARIES += libext4_utils libz 27 endif 28 29 # This binary is in the recovery ramdisk, which is otherwise a copy of root. 30 # It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses 31 # a (redundant) copy of the binary in /system/bin for user builds. 32 # TODO: Build the ramdisk image in a more principled way. 33 34 LOCAL_MODULE_TAGS := eng 35 36 ifeq ($(TARGET_RECOVERY_UI_LIB),) 37 LOCAL_SRC_FILES += default_recovery_ui.c 38 else 39 LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB) 40 endif 41 LOCAL_STATIC_LIBRARIES += libext4_utils libz 42 LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt 43 LOCAL_STATIC_LIBRARIES += libminui libpixelflinger_static libpng libcutils 44 LOCAL_STATIC_LIBRARIES += libstdc++ libc 45 46 LOCAL_C_INCLUDES += system/extras/ext4_utils 47 48 include $(BUILD_EXECUTABLE) 49 50 51 include $(CLEAR_VARS) 52 53 LOCAL_SRC_FILES := verifier_test.c verifier.c 54 55 LOCAL_MODULE := verifier_test 56 57 LOCAL_FORCE_STATIC_EXECUTABLE := true 58 59 LOCAL_MODULE_TAGS := tests 60 61 LOCAL_STATIC_LIBRARIES := libmincrypt libcutils libstdc++ libc 62 63 include $(BUILD_EXECUTABLE) 64 65 66 include $(commands_recovery_local_path)/minui/Android.mk 67 include $(commands_recovery_local_path)/minelf/Android.mk 68 include $(commands_recovery_local_path)/minzip/Android.mk 69 include $(commands_recovery_local_path)/mtdutils/Android.mk 70 include $(commands_recovery_local_path)/tools/Android.mk 71 include $(commands_recovery_local_path)/edify/Android.mk 72 include $(commands_recovery_local_path)/updater/Android.mk 73 include $(commands_recovery_local_path)/applypatch/Android.mk 74 commands_recovery_local_path := 75