blob: d2024f39e2109bfc74aeb22e1361e12a54b416fd [file] [log] [blame]
Dees_Troy51a0e822012-09-05 15:24:24 -04001LOCAL_PATH := $(call my-dir)
2
3RELINK := $(LOCAL_PATH)/relink.sh
4
5#dummy file to trigger required modules
6include $(CLEAR_VARS)
7LOCAL_MODULE := teamwin
8LOCAL_MODULE_TAGS := eng
9LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
10LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
11
12# Manage list
13RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dump_image
14RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/flash_image
15RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/erase_image
16RELINK_SOURCE_FILES += $(TARGET_OUT_OPTIONAL_EXECUTABLES)/busybox
17RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/pigz
bigbiff bigbiff9c754052013-01-09 09:09:08 -050018RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dosfsck
19RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/dosfslabel
20RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkdosfs
Dees_Troy51a0e822012-09-05 15:24:24 -040021RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/e2fsck
22RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/mke2fs
23RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/tune2fs
24RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/linker
25RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libc.so
26RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcutils.so
27RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libdl.so
28RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_blkid.so
29RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_com_err.so
30RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_e2p.so
31RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so
32RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_profile.so
33RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_uuid.so
34RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblog.so
35RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libm.so
36RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstdc++.so
37RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libz.so
38#RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so
39#RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmtdutils.so
bigbiff bigbiff9c754052013-01-09 09:09:08 -050040RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtar.so
Dees_Troy51a0e822012-09-05 15:24:24 -040041RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmmcutils.so
42RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libbmlutils.so
43RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libflashutils.so
44RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstlport.so
Dees_Troyb9d88ac2012-09-14 14:34:19 -040045RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libmincrypt.so
Dees_Troy43d8b002012-09-17 16:00:01 -040046RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so
bigbiff bigbiff9c754052013-01-09 09:09:08 -050047
48ifeq ($(TW_INCLUDE_EXFAT), true)
49 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/exfat-fuse
50 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/mkexfatfs
51endif
Dees_Troy51a0e822012-09-05 15:24:24 -040052ifeq ($(TW_INCLUDE_BLOBPACK), true)
53 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/blobpack
54endif
55ifeq ($(TW_INCLUDE_INJECTTWRP), true)
56 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/injecttwrp
57endif
58ifeq ($(TW_INCLUDE_DUMLOCK), true)
59 RELINK_SOURCE_FILES += $(TARGET_RECOVERY_ROOT_OUT)/sbin/htcdumlock
60endif
61ifeq ($(TW_INCLUDE_CRYPTO), true)
62 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so
63endif
64ifeq ($(TW_INCLUDE_JB_CRYPTO), true)
65 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libcrypto.so
66endif
a39552696ff55ce2013-01-08 16:14:56 +000067ifeq ($(TW_INCLUDE_CRYPTO_SAMSUNG), true)
68 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsec_km.so
69 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsec_ecryptfs.so
70 RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeyutils.so
71endif
Dees_Troy38bd7602012-09-14 13:33:53 -040072ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
73 RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/make_ext4fs
74endif
Dees_Troy51a0e822012-09-05 15:24:24 -040075
76TWRP_AUTOGEN := $(intermediates)/teamwin
77
78GEN := $(intermediates)/teamwin
79$(GEN): $(RELINK)
80$(GEN): $(RELINK_SOURCE_FILES) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery
81 $(RELINK) $(TARGET_RECOVERY_ROOT_OUT)/sbin $(RELINK_SOURCE_FILES)
82 $(RELINK) $(call intermediates-dir-for,EXECUTABLES,recovery) $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery
83
84LOCAL_GENERATED_SOURCES := $(GEN)
85LOCAL_SRC_FILES := teamwin $(GEN)
86include $(BUILD_PREBUILT)
87
Dees_Troy51a0e822012-09-05 15:24:24 -040088#fix_permissions
89include $(CLEAR_VARS)
90LOCAL_MODULE := fix_permissions.sh
91LOCAL_MODULE_TAGS := eng
92LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
93LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
94LOCAL_SRC_FILES := $(LOCAL_MODULE)
95include $(BUILD_PREBUILT)
96
Dees_Troy51a0e822012-09-05 15:24:24 -040097#mke2fs.conf
98include $(CLEAR_VARS)
99LOCAL_MODULE := mke2fs.conf
100LOCAL_MODULE_TAGS := eng
101LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
102LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc
103LOCAL_SRC_FILES := $(LOCAL_MODULE)
104include $(BUILD_PREBUILT)
105
106ifeq ($(BOARD_HAS_NO_REAL_SDCARD),)
107 #parted
108 include $(CLEAR_VARS)
109 LOCAL_MODULE := parted
110 LOCAL_MODULE_TAGS := eng
111 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
112 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
113 LOCAL_SRC_FILES := $(LOCAL_MODULE)
114 include $(BUILD_PREBUILT)
Dees_Troy51a0e822012-09-05 15:24:24 -0400115endif
116
117ifeq ($(TW_INCLUDE_DUMLOCK), true)
118 #htcdumlock for /system for dumlock
119 include $(CLEAR_VARS)
120 LOCAL_MODULE := htcdumlocksys
121 LOCAL_MODULE_TAGS := eng
122 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
123 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
124 LOCAL_SRC_FILES := $(LOCAL_MODULE)
125 include $(BUILD_PREBUILT)
126
127 #flash_image for /system for dumlock
128 include $(CLEAR_VARS)
129 LOCAL_MODULE := flash_imagesys
130 LOCAL_MODULE_TAGS := eng
131 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
132 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
133 LOCAL_SRC_FILES := $(LOCAL_MODULE)
134 include $(BUILD_PREBUILT)
135
136 #dump_image for /system for dumlock
137 include $(CLEAR_VARS)
138 LOCAL_MODULE := dump_imagesys
139 LOCAL_MODULE_TAGS := eng
140 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
141 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
142 LOCAL_SRC_FILES := $(LOCAL_MODULE)
143 include $(BUILD_PREBUILT)
144
145 #libbmlutils for /system for dumlock
146 include $(CLEAR_VARS)
147 LOCAL_MODULE := libbmlutils.so
148 LOCAL_MODULE_TAGS := eng
149 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
150 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
151 LOCAL_SRC_FILES := $(LOCAL_MODULE)
152 include $(BUILD_PREBUILT)
153
154 #libflashutils for /system for dumlock
155 include $(CLEAR_VARS)
156 LOCAL_MODULE := libflashutils.so
157 LOCAL_MODULE_TAGS := eng
158 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
159 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
160 LOCAL_SRC_FILES := $(LOCAL_MODULE)
161 include $(BUILD_PREBUILT)
162
163 #libmmcutils for /system for dumlock
164 include $(CLEAR_VARS)
165 LOCAL_MODULE := libmmcutils.so
166 LOCAL_MODULE_TAGS := eng
167 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
168 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
169 LOCAL_SRC_FILES := $(LOCAL_MODULE)
170 include $(BUILD_PREBUILT)
171
172 #libmtdutils for /system for dumlock
173 include $(CLEAR_VARS)
174 LOCAL_MODULE := libmtdutils.so
175 LOCAL_MODULE_TAGS := eng
176 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
177 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
178 LOCAL_SRC_FILES := $(LOCAL_MODULE)
179 include $(BUILD_PREBUILT)
180
181 #HTCDumlock.apk
182 include $(CLEAR_VARS)
183 LOCAL_MODULE := HTCDumlock.apk
184 LOCAL_MODULE_TAGS := eng
185 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
186 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res/htcd
187 LOCAL_SRC_FILES := $(LOCAL_MODULE)
188 include $(BUILD_PREBUILT)
189endif