Skip to content
Newer
Older
100755 122 lines (93 sloc) 3.77 KB
ab21a5b add directory device ,src, vendor and build
yanhao authored
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_ui.c \
8 mount.c \
9 miui_intent.c \
10 bootloader.c \
11 install.c \
12 roots.c \
8df62c5 add screen display when operation, especially in backup
yanhao authored
13 firmware.c \
ab21a5b add directory device ,src, vendor and build
yanhao authored
14 nandroid.c \
15 verifier.c \
16 recovery.c
17
18 LOCAL_MODULE := recovery
19
20 LOCAL_FORCE_STATIC_EXECUTABLE := true
21
22 RECOVERY_API_VERSION := 3
23 MYDEFINE_CFLAGS := -D_GLIBCXX_DEBUG_PEDANTIC \
24 -DFT2_BUILD_LIBRARY=1 \
fda6ead delete miui_memory module, fix bug when scan sd file
yanhao authored
25 -DDARWIN_NO_CARBON \
26 -D_MIUI_NODEBUG=1
ab21a5b add directory device ,src, vendor and build
yanhao authored
27 LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
28 LOCAL_CFLAGS += $(MYDEFINE_CFLAGS)
29 #LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
30
31 LOCAL_STATIC_LIBRARIES :=
32
33 ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
34 LOCAL_CFLAGS += -DUSE_EXT4
35 LOCAL_C_INCLUDES += system/extras/ext4_utils
36 LOCAL_STATIC_LIBRARIES += libext4_utils libz
37 endif
38
39 # This binary is in the recovery ramdisk, which is otherwise a copy of root.
40 # It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
41 # a (redundant) copy of the binary in /system/bin for user builds.
42 # TODO: Build the ramdisk image in a more principled way.
43
44 LOCAL_MODULE_TAGS := optional
45
46 #LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
47 #LOCAL_LDLIBS += $(LOCAL_PATH)/lib
48
dea3d2f add fstab to crespo, fix backup and restore bug
yanhao authored
49 LOCAL_STATIC_LIBRARIES += libext4_utils libz
ab21a5b add directory device ,src, vendor and build
yanhao authored
50 LOCAL_STATIC_LIBRARIES += libminzip libunz libmtdutils libmincrypt
51 #add static libraries
52 LOCAL_STATIC_LIBRARIES += libedify libcrecovery libflashutils libmmcutils libbmlutils
53 LOCAL_STATIC_LIBRARIES += libmkyaffs2image libunyaffs liberase_image libdump_image libflash_image
54 LOCAL_STATIC_LIBRARIES += libmiui libcutils
55 LOCAL_STATIC_LIBRARIES += libstdc++ libc libm
56
57
58 LOCAL_C_INCLUDES += system/extras/ext4_utils
59
60
61 include $(BUILD_EXECUTABLE)
62
63
d933207 add adbd prebuilt, fix bug that adb push failed
yanhao authored
64 LOCAL_PREBUILT_PATH := $(LOCAL_PATH)/prebuilt_lib
65 BUSYBOX_PATH := $(LOCAL_PREBUILT_PATH)/busybox
ab21a5b add directory device ,src, vendor and build
yanhao authored
66 # Now let's do recovery symlinks
d933207 add adbd prebuilt, fix bug that adb push failed
yanhao authored
67 BUSYBOX_LINKS := $(shell cat $(BUSYBOX_PATH)/busybox-minimal.links)
ab21a5b add directory device ,src, vendor and build
yanhao authored
68 exclude := tune2fs mke2fs
69 RECOVERY_BUSYBOX_SYMLINKS := $(addprefix $(TARGET_ROOT_OUT)/sbin/,$(filter-out $(exclude),$(notdir $(BUSYBOX_LINKS))))
70 $(RECOVERY_BUSYBOX_SYMLINKS): BUSYBOX_BINARY := busybox
71 $(RECOVERY_BUSYBOX_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
72 @echo "Symlink: $@ -> $(BUSYBOX_BINARY)"
73 @mkdir -p $(dir $@)
74 @rm -rf $@
75 $(hide) ln -sf $(BUSYBOX_BINARY) $@
76
dea3d2f add fstab to crespo, fix backup and restore bug
yanhao authored
77 ALL_DEFAULT_INSTALLED_MODULES += $(RECOVERY_BUSYBOX_SYMLINKS)
78
d933207 add adbd prebuilt, fix bug that adb push failed
yanhao authored
79 LOCAL_PREBUILT_EXEC := $(TARGET_ROOT_OUT)/bin
80 $(LOCAL_PREBUILT_EXEC):
81 cp $(BUSYBOX_PATH)/busybox $(TARGET_ROOT_OUT)/sbin/ -f
82 cp $(LOCAL_PREBUILT_PATH)/adbd $(TARGET_ROOT_OUT)/sbin/ -f
dea3d2f add fstab to crespo, fix backup and restore bug
yanhao authored
83
d933207 add adbd prebuilt, fix bug that adb push failed
yanhao authored
84 ALL_DEFAULT_INSTALLED_MODULES += $(LOCAL_PREBUILT_EXEC)
dea3d2f add fstab to crespo, fix backup and restore bug
yanhao authored
85
86 include $(CLEAR_VARS)
87
88 LOCAL_SRC_FILES := verifier_test.c verifier.c
89
90 LOCAL_MODULE := verifier_test
ab21a5b add directory device ,src, vendor and build
yanhao authored
91
dea3d2f add fstab to crespo, fix backup and restore bug
yanhao authored
92 LOCAL_FORCE_STATIC_EXECUTABLE := true
93
94 LOCAL_MODULE_TAGS := tests
95
96 LOCAL_STATIC_LIBRARIES := libmincrypt libcutils libstdc++ libc
97
98 include $(BUILD_EXECUTABLE)
ab21a5b add directory device ,src, vendor and build
yanhao authored
99 #add extra library
100 #include bionic/libm/Android.mk
101 #include external/yaffs2/Android.mk
102 #add from cm7
103 include $(commands_recovery_local_path)/bmlutils/Android.mk
104 include $(commands_recovery_local_path)/flashutils/Android.mk
105 include $(commands_recovery_local_path)/libcrecovery/Android.mk
106 #end
107 include $(commands_recovery_local_path)/miui/Android.mk
108 include $(commands_recovery_local_path)/minelf/Android.mk
109 include $(commands_recovery_local_path)/minzip/Android.mk
110 include $(commands_recovery_local_path)/mtdutils/Android.mk
111 #add from cm7
112 include $(commands_recovery_local_path)/mmcutils/Android.mk
113 #end
114 include $(commands_recovery_local_path)/tools/Android.mk
115 include $(commands_recovery_local_path)/edify/Android.mk
116 include $(commands_recovery_local_path)/updater/Android.mk
dea3d2f add fstab to crespo, fix backup and restore bug
yanhao authored
117 #include $(commands_recovery_local_path)/applypatch/Android.mk
118
119 #add some shell script
120 include $(commands_recovery_local_path)/utilities/Android.mk
ab21a5b add directory device ,src, vendor and build
yanhao authored
121 commands_recovery_local_path :=
Something went wrong with that request. Please try again.