blob: 8fc99b2ac8bb7fe206253d6d71f1f27ab7340fe7 [file] [log] [blame]
Joe Onorato6396e702012-05-31 23:21:46 -07001# Copyright (C) 2007 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080014
Joe Onorato6396e702012-05-31 23:21:46 -070015LOCAL_PATH := $(call my-dir)
16
Dees_Troy51a0e822012-09-05 15:24:24 -040017TARGET_RECOVERY_GUI := true
Joe Onorato6396e702012-05-31 23:21:46 -070018
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080019LOCAL_SRC_FILES := \
Dees_Troy2673cec2013-04-02 20:22:16 +000020 twrp.cpp \
bigbiff bigbiffa0f8a592012-10-09 21:01:03 -040021 fixPermissions.cpp \
bigbiff bigbiff9c754052013-01-09 09:09:08 -050022 twrpTar.cpp \
bigbiff bigbiffcdcfee42013-02-27 21:11:26 -050023 twrpDigest.cpp \
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080024
Dees_Troy51a0e822012-09-05 15:24:24 -040025LOCAL_SRC_FILES += \
Dees_Troy51a0e822012-09-05 15:24:24 -040026 data.cpp \
Dees_Troy51a0e822012-09-05 15:24:24 -040027 partition.cpp \
28 partitionmanager.cpp \
Dees_Troy32c8eb82012-09-11 15:28:06 -040029 twinstall.cpp \
Dees_Troy812660f2012-09-20 09:55:17 -040030 twrp-functions.cpp \
Dees_Troye34c1332013-02-06 19:13:00 +000031 openrecoveryscript.cpp \
32 tarWrite.c
Dees_Troy51a0e822012-09-05 15:24:24 -040033
Dees_Troya58bead2012-09-27 09:49:29 -040034ifneq ($(TARGET_RECOVERY_REBOOT_SRC),)
Dees_Troy51a0e822012-09-05 15:24:24 -040035 LOCAL_SRC_FILES += $(TARGET_RECOVERY_REBOOT_SRC)
36endif
37
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080038LOCAL_MODULE := recovery
39
Dees_Troy51a0e822012-09-05 15:24:24 -040040#LOCAL_FORCE_STATIC_EXECUTABLE := true
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080041
Doug Zongkere08991e2010-02-02 13:09:52 -080042RECOVERY_API_VERSION := 3
Ken Sumrallf35d1ce2013-02-13 12:59:35 -080043RECOVERY_FSTAB_VERSION := 2
Doug Zongkerfb2e3af2009-06-17 17:29:40 -070044LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
45
Dees_Troy51a0e822012-09-05 15:24:24 -040046#LOCAL_STATIC_LIBRARIES := \
Dees_Troy1669f892013-09-04 18:35:08 +000047# libext4_utils_static \
48# libsparse_static \
Dees_Troy51a0e822012-09-05 15:24:24 -040049# libminzip \
Dees_Troy1669f892013-09-04 18:35:08 +000050# libz \
Dees_Troy51a0e822012-09-05 15:24:24 -040051# libmtdutils \
52# libmincrypt \
53# libminadbd \
Dees_Troy1669f892013-09-04 18:35:08 +000054# libminui \
55# libpixelflinger_static \
56# libpng \
57# libfs_mgr \
58# libcutils \
59# liblog \
60# libselinux \
61# libstdc++ \
62# libm \
63# libc
Dees_Troy51a0e822012-09-05 15:24:24 -040064
65LOCAL_C_INCLUDES += bionic external/stlport/stlport
66
67LOCAL_STATIC_LIBRARIES :=
68LOCAL_SHARED_LIBRARIES :=
69
Dees_Troy2673cec2013-04-02 20:22:16 +000070LOCAL_STATIC_LIBRARIES += libcrecovery libguitwrp
Dees_Troya95f55c2013-08-17 13:14:43 +000071LOCAL_SHARED_LIBRARIES += libz libc libstlport libcutils libstdc++ libtar libblkid libminuitwrp libminadbd libmtdutils libminzip libaosprecovery
Doug Zongker49c73a72010-06-29 17:36:28 -070072
Dees_Troy4546fe72013-01-10 14:33:27 +000073ifneq ($(wildcard system/core/libsparse/Android.mk),)
74LOCAL_SHARED_LIBRARIES += libsparse
75endif
76
Doug Zongker49c73a72010-06-29 17:36:28 -070077ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
Joe Onorato6396e702012-05-31 23:21:46 -070078 LOCAL_CFLAGS += -DUSE_EXT4
79 LOCAL_C_INCLUDES += system/extras/ext4_utils
Dees_Troya95f55c2013-08-17 13:14:43 +000080 LOCAL_SHARED_LIBRARIES += libext4_utils
Doug Zongker49c73a72010-06-29 17:36:28 -070081endif
Dees Troy4bf3b0d2013-09-11 19:12:49 +000082ifneq ($(wildcard external/libselinux/Android.mk),)
83 TWHAVE_SELINUX := true
84endif
85ifeq ($(TWHAVE_SELINUX), true)
Dees_Troy2673cec2013-04-02 20:22:16 +000086 #LOCAL_C_INCLUDES += external/libselinux/include
87 #LOCAL_STATIC_LIBRARIES += libselinux
88 #LOCAL_CFLAGS += -DHAVE_SELINUX -g
Stephen Smalley1a114492012-01-13 07:59:51 -050089endif # HAVE_SELINUX
Dees Troy4bf3b0d2013-09-11 19:12:49 +000090ifeq ($(TWHAVE_SELINUX), true)
Dees_Troyf2280ff2013-08-06 18:01:12 +000091 LOCAL_C_INCLUDES += external/libselinux/include
Dees_Troya95f55c2013-08-17 13:14:43 +000092 LOCAL_SHARED_LIBRARIES += libselinux
Dees_Troyf2280ff2013-08-06 18:01:12 +000093 LOCAL_CFLAGS += -DHAVE_SELINUX -g
Dees_Troya95f55c2013-08-17 13:14:43 +000094 ifneq ($(TARGET_USERIMAGES_USE_EXT4), true)
95 LOCAL_CFLAGS += -DUSE_EXT4
96 LOCAL_C_INCLUDES += system/extras/ext4_utils
97 LOCAL_SHARED_LIBRARIES += libext4_utils
98 endif
Dees_Troyf2280ff2013-08-06 18:01:12 +000099endif
Doug Zongker49c73a72010-06-29 17:36:28 -0700100
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -0800101# This binary is in the recovery ramdisk, which is otherwise a copy of root.
102# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
103# a (redundant) copy of the binary in /system/bin for user builds.
104# TODO: Build the ramdisk image in a more principled way.
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -0800105LOCAL_MODULE_TAGS := eng
106
Dees_Troy1669f892013-09-04 18:35:08 +0000107#ifeq ($(TARGET_RECOVERY_UI_LIB),)
Doug Zongkerdaefc1d2011-10-31 09:34:15 -0700108 LOCAL_SRC_FILES += default_device.cpp
Dees_Troy1669f892013-09-04 18:35:08 +0000109#else
110# LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
111#endif
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -0800112
Doug Zongkercc8cd3f2010-09-20 12:16:13 -0700113LOCAL_C_INCLUDES += system/extras/ext4_utils
114
Dees_Troy51a0e822012-09-05 15:24:24 -0400115#TWRP Build Flags
Ricardo Gomezc9ecd442013-07-05 16:13:52 -0700116ifneq ($(TW_NO_SCREEN_TIMEOUT),)
117 LOCAL_CFLAGS += -DTW_NO_SCREEN_TIMEOUT
118endif
Dees_Troy51a0e822012-09-05 15:24:24 -0400119ifeq ($(BOARD_HAS_NO_REAL_SDCARD), true)
120 LOCAL_CFLAGS += -DBOARD_HAS_NO_REAL_SDCARD
121endif
122ifneq ($(SP1_NAME),)
123 LOCAL_CFLAGS += -DSP1_NAME=$(SP1_NAME) -DSP1_BACKUP_METHOD=$(SP1_BACKUP_METHOD) -DSP1_MOUNTABLE=$(SP1_MOUNTABLE)
124endif
125ifneq ($(SP1_DISPLAY_NAME),)
126 LOCAL_CFLAGS += -DSP1_DISPLAY_NAME=$(SP1_DISPLAY_NAME)
127endif
128ifneq ($(SP2_NAME),)
129 LOCAL_CFLAGS += -DSP2_NAME=$(SP2_NAME) -DSP2_BACKUP_METHOD=$(SP2_BACKUP_METHOD) -DSP2_MOUNTABLE=$(SP2_MOUNTABLE)
130endif
131ifneq ($(SP2_DISPLAY_NAME),)
132 LOCAL_CFLAGS += -DSP2_DISPLAY_NAME=$(SP2_DISPLAY_NAME)
133endif
134ifneq ($(SP3_NAME),)
135 LOCAL_CFLAGS += -DSP3_NAME=$(SP3_NAME) -DSP3_BACKUP_METHOD=$(SP3_BACKUP_METHOD) -DSP3_MOUNTABLE=$(SP3_MOUNTABLE)
136endif
137ifneq ($(SP3_DISPLAY_NAME),)
138 LOCAL_CFLAGS += -DSP3_DISPLAY_NAME=$(SP3_DISPLAY_NAME)
139endif
140ifneq ($(RECOVERY_SDCARD_ON_DATA),)
141 LOCAL_CFLAGS += -DRECOVERY_SDCARD_ON_DATA
142endif
143ifneq ($(TW_INCLUDE_DUMLOCK),)
144 LOCAL_CFLAGS += -DTW_INCLUDE_DUMLOCK
145endif
146ifneq ($(TW_INTERNAL_STORAGE_PATH),)
147 LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_PATH=$(TW_INTERNAL_STORAGE_PATH)
148endif
149ifneq ($(TW_INTERNAL_STORAGE_MOUNT_POINT),)
150 LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_MOUNT_POINT=$(TW_INTERNAL_STORAGE_MOUNT_POINT)
151endif
152ifneq ($(TW_EXTERNAL_STORAGE_PATH),)
153 LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_PATH=$(TW_EXTERNAL_STORAGE_PATH)
154endif
155ifneq ($(TW_EXTERNAL_STORAGE_MOUNT_POINT),)
156 LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_MOUNT_POINT=$(TW_EXTERNAL_STORAGE_MOUNT_POINT)
157endif
158ifeq ($(TW_HAS_NO_RECOVERY_PARTITION), true)
159 LOCAL_CFLAGS += -DTW_HAS_NO_RECOVERY_PARTITION
160endif
ChampionSwimmercf33e4d2013-02-03 13:59:22 +0530161ifeq ($(TW_HAS_NO_BOOT_PARTITION), true)
162 LOCAL_CFLAGS += -DTW_HAS_NO_BOOT_PARTITION
163endif
Dees_Troy51a0e822012-09-05 15:24:24 -0400164ifeq ($(TW_NO_REBOOT_BOOTLOADER), true)
165 LOCAL_CFLAGS += -DTW_NO_REBOOT_BOOTLOADER
166endif
167ifeq ($(TW_NO_REBOOT_RECOVERY), true)
168 LOCAL_CFLAGS += -DTW_NO_REBOOT_RECOVERY
169endif
170ifeq ($(TW_NO_BATT_PERCENT), true)
171 LOCAL_CFLAGS += -DTW_NO_BATT_PERCENT
172endif
173ifneq ($(TW_CUSTOM_POWER_BUTTON),)
174 LOCAL_CFLAGS += -DTW_CUSTOM_POWER_BUTTON=$(TW_CUSTOM_POWER_BUTTON)
175endif
176ifeq ($(TW_ALWAYS_RMRF), true)
177 LOCAL_CFLAGS += -DTW_ALWAYS_RMRF
178endif
179ifeq ($(TW_NEVER_UNMOUNT_SYSTEM), true)
180 LOCAL_CFLAGS += -DTW_NEVER_UNMOUNT_SYSTEM
181endif
182ifeq ($(TW_NO_USB_STORAGE), true)
183 LOCAL_CFLAGS += -DTW_NO_USB_STORAGE
184endif
185ifeq ($(TW_INCLUDE_INJECTTWRP), true)
186 LOCAL_CFLAGS += -DTW_INCLUDE_INJECTTWRP
187endif
188ifeq ($(TW_INCLUDE_BLOBPACK), true)
189 LOCAL_CFLAGS += -DTW_INCLUDE_BLOBPACK
190endif
191ifeq ($(TW_DEFAULT_EXTERNAL_STORAGE), true)
192 LOCAL_CFLAGS += -DTW_DEFAULT_EXTERNAL_STORAGE
193endif
194ifneq ($(TARGET_USE_CUSTOM_LUN_FILE_PATH),)
195 LOCAL_CFLAGS += -DCUSTOM_LUN_FILE=\"$(TARGET_USE_CUSTOM_LUN_FILE_PATH)\"
196endif
197ifneq ($(BOARD_UMS_LUNFILE),)
198 LOCAL_CFLAGS += -DCUSTOM_LUN_FILE=\"$(BOARD_UMS_LUNFILE)\"
199endif
200#ifeq ($(TW_FLASH_FROM_STORAGE), true) Making this the default behavior
201 LOCAL_CFLAGS += -DTW_FLASH_FROM_STORAGE
202#endif
203ifeq ($(TW_HAS_DOWNLOAD_MODE), true)
204 LOCAL_CFLAGS += -DTW_HAS_DOWNLOAD_MODE
205endif
bigbiff bigbiff87940362013-03-09 09:58:50 -0500206ifeq ($(TW_NO_SCREEN_BLANK), true)
207 LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK
208endif
Dees_Troy51a0e822012-09-05 15:24:24 -0400209ifeq ($(TW_SDEXT_NO_EXT4), true)
210 LOCAL_CFLAGS += -DTW_SDEXT_NO_EXT4
211endif
Dees_Troyfdf5fcc2012-09-11 10:27:01 -0400212ifeq ($(TW_FORCE_CPUINFO_FOR_DEVICE_ID), true)
213 LOCAL_CFLAGS += -DTW_FORCE_CPUINFO_FOR_DEVICE_ID
214endif
Dees_Troy3f5c4e82013-02-01 15:16:59 +0000215ifeq ($(TW_NO_EXFAT_FUSE), true)
216 LOCAL_CFLAGS += -DTW_NO_EXFAT_FUSE
217endif
Dees_Troy51a0e822012-09-05 15:24:24 -0400218ifeq ($(TW_INCLUDE_CRYPTO), true)
219 LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO
220 LOCAL_CFLAGS += -DCRYPTO_FS_TYPE=\"$(TW_CRYPTO_FS_TYPE)\"
221 LOCAL_CFLAGS += -DCRYPTO_REAL_BLKDEV=\"$(TW_CRYPTO_REAL_BLKDEV)\"
222 LOCAL_CFLAGS += -DCRYPTO_MNT_POINT=\"$(TW_CRYPTO_MNT_POINT)\"
223 LOCAL_CFLAGS += -DCRYPTO_FS_OPTIONS=\"$(TW_CRYPTO_FS_OPTIONS)\"
224 LOCAL_CFLAGS += -DCRYPTO_FS_FLAGS=\"$(TW_CRYPTO_FS_FLAGS)\"
225 LOCAL_CFLAGS += -DCRYPTO_KEY_LOC=\"$(TW_CRYPTO_KEY_LOC)\"
a39552696ff55ce2013-01-08 16:14:56 +0000226ifeq ($(TW_INCLUDE_CRYPTO_SAMSUNG), true)
227 LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO_SAMSUNG=\"$(TW_INCLUDE_CRYPTO_SAMSUNG)\"
228 ifdef TW_CRYPTO_SD_REAL_BLKDEV
229 LOCAL_CFLAGS += -DCRYPTO_SD_REAL_BLKDEV=\"$(TW_CRYPTO_SD_REAL_BLKDEV)\"
230 LOCAL_CFLAGS += -DCRYPTO_SD_FS_TYPE=\"$(TW_CRYPTO_SD_FS_TYPE)\"
231 endif
232 #LOCAL_LDFLAGS += -L$(TARGET_OUT_SHARED_LIBRARIES) -lsec_km
233 LOCAL_LDFLAGS += -ldl
234 LOCAL_STATIC_LIBRARIES += libcrypt_samsung
235endif
Dees_Troy2673cec2013-04-02 20:22:16 +0000236 LOCAL_SHARED_LIBRARIES += libcryptfsics
237 #LOCAL_SRC_FILES += crypto/ics/cryptfs.c
238 #LOCAL_C_INCLUDES += system/extras/ext4_utils external/openssl/include
Dees_Troy51a0e822012-09-05 15:24:24 -0400239endif
240ifeq ($(TW_INCLUDE_JB_CRYPTO), true)
241 LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO
242 LOCAL_CFLAGS += -DTW_INCLUDE_JB_CRYPTO
Dees_Troy2673cec2013-04-02 20:22:16 +0000243 LOCAL_SHARED_LIBRARIES += libcryptfsjb
244 #LOCAL_SRC_FILES += crypto/jb/cryptfs.c
245 #LOCAL_C_INCLUDES += system/extras/ext4_utils external/openssl/include
Dees_Troy51a0e822012-09-05 15:24:24 -0400246endif
Anatoly Smaznov10c11f62013-02-12 13:33:40 +0700247ifeq ($(TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID), true)
248 LOCAL_CFLAGS += -DTW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID
249endif
Dees_Troy2f9117a2013-02-17 19:52:09 -0600250ifneq ($(TW_BRIGHTNESS_PATH),)
251 LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=$(TW_BRIGHTNESS_PATH)
252endif
253ifneq ($(TW_MAX_BRIGHTNESS),)
254 LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS)
255endif
Dees_Troyf33b4902013-03-01 00:51:39 +0000256ifneq ($(TW_CUSTOM_BATTERY_PATH),)
257 LOCAL_CFLAGS += -DTW_CUSTOM_BATTERY_PATH=$(TW_CUSTOM_BATTERY_PATH)
258endif
Sergey 'Jin' Bostandzhyan80a90ed2013-01-04 02:29:03 +0100259ifeq ($(TARGET_BOARD_PLATFORM),rk30xx)
Anatoly Smaznov10c11f62013-02-12 13:33:40 +0700260 LOCAL_CFLAGS += -DRK3066
Sergey 'Jin' Bostandzhyan80a90ed2013-01-04 02:29:03 +0100261endif
Dees_Troy83bd4832013-05-04 12:39:56 +0000262ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true)
263 LOCAL_SHARED_LIBRARIES += libopenaes
264else
265 LOCAL_CFLAGS += -DTW_EXCLUDE_ENCRYPTED_BACKUPS
266endif
Sergey 'Jin' Bostandzhyan80a90ed2013-01-04 02:29:03 +0100267
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -0800268include $(BUILD_EXECUTABLE)
269
Doug Zongker73ae31c2009-12-09 17:01:45 -0800270include $(CLEAR_VARS)
Dees_Troyc04dcf72012-10-02 10:46:37 -0400271# Create busybox symlinks... gzip and gunzip are excluded because those need to link to pigz instead
272BUSYBOX_LINKS := $(shell cat external/busybox/busybox-full.links)
273exclude := tune2fs mke2fs mkdosfs gzip gunzip
274RECOVERY_BUSYBOX_SYMLINKS := $(addprefix $(TARGET_RECOVERY_ROOT_OUT)/sbin/,$(filter-out $(exclude),$(notdir $(BUSYBOX_LINKS))))
275$(RECOVERY_BUSYBOX_SYMLINKS): BUSYBOX_BINARY := busybox
276$(RECOVERY_BUSYBOX_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
277 @echo "Symlink: $@ -> $(BUSYBOX_BINARY)"
278 @mkdir -p $(dir $@)
279 @rm -rf $@
280 $(hide) ln -sf $(BUSYBOX_BINARY) $@
281
282ALL_DEFAULT_INSTALLED_MODULES += $(RECOVERY_BUSYBOX_SYMLINKS)
283
284include $(CLEAR_VARS)
Doug Zongkerdaefc1d2011-10-31 09:34:15 -0700285LOCAL_MODULE := verifier_test
Doug Zongkerdaefc1d2011-10-31 09:34:15 -0700286LOCAL_FORCE_STATIC_EXECUTABLE := true
Doug Zongkerdaefc1d2011-10-31 09:34:15 -0700287LOCAL_MODULE_TAGS := tests
Joe Onorato6396e702012-05-31 23:21:46 -0700288LOCAL_SRC_FILES := \
289 verifier_test.cpp \
290 verifier.cpp \
291 ui.cpp
292LOCAL_STATIC_LIBRARIES := \
293 libmincrypt \
294 libminui \
295 libcutils \
296 libstdc++ \
297 libc
Doug Zongkerdaefc1d2011-10-31 09:34:15 -0700298include $(BUILD_EXECUTABLE)
Doug Zongker73ae31c2009-12-09 17:01:45 -0800299
Dees_Troy2673cec2013-04-02 20:22:16 +0000300include $(CLEAR_VARS)
301
302LOCAL_MODULE := libaosprecovery
303LOCAL_MODULE_TAGS := eng
304LOCAL_MODULES_TAGS = optional
305LOCAL_CFLAGS =
Dees_Troy1669f892013-09-04 18:35:08 +0000306ifneq ($(wildcard system/core/libmincrypt/rsa_e_3.c),)
307 LOCAL_CFLAGS += -DHAS_EXPONENT
308endif
Dees_Troy76543db2013-06-19 16:24:30 +0000309LOCAL_SRC_FILES = adb_install.cpp bootloader.cpp verifier.cpp mtdutils/mtdutils.c
Dees_Troy2673cec2013-04-02 20:22:16 +0000310LOCAL_SHARED_LIBRARIES += libc liblog libcutils libmtdutils
311LOCAL_STATIC_LIBRARIES += libmincrypt
312
313include $(BUILD_SHARED_LIBRARY)
314
Dees_Troy51a0e822012-09-05 15:24:24 -0400315commands_recovery_local_path := $(LOCAL_PATH)
Joe Onorato6396e702012-05-31 23:21:46 -0700316include $(LOCAL_PATH)/minui/Android.mk \
317 $(LOCAL_PATH)/minelf/Android.mk \
Joe Onorato6396e702012-05-31 23:21:46 -0700318 $(LOCAL_PATH)/minadbd/Android.mk \
Joe Onorato6396e702012-05-31 23:21:46 -0700319 $(LOCAL_PATH)/tools/Android.mk \
320 $(LOCAL_PATH)/edify/Android.mk \
321 $(LOCAL_PATH)/updater/Android.mk \
322 $(LOCAL_PATH)/applypatch/Android.mk
Dees_Troy51a0e822012-09-05 15:24:24 -0400323
324#includes for TWRP
Dees_Troy930bf012013-08-10 22:19:03 +0000325include $(commands_recovery_local_path)/injecttwrp/Android.mk \
Dees_Troy51a0e822012-09-05 15:24:24 -0400326 $(commands_recovery_local_path)/htcdumlock/Android.mk \
Dees_Troy51a0e822012-09-05 15:24:24 -0400327 $(commands_recovery_local_path)/gui/Android.mk \
328 $(commands_recovery_local_path)/mmcutils/Android.mk \
329 $(commands_recovery_local_path)/bmlutils/Android.mk \
Dees_Troy51a0e822012-09-05 15:24:24 -0400330 $(commands_recovery_local_path)/prebuilt/Android.mk \
331 $(commands_recovery_local_path)/mtdutils/Android.mk \
bigbiff bigbiff9c754052013-01-09 09:09:08 -0500332 $(commands_recovery_local_path)/flashutils/Android.mk \
Dees_Troy51a0e822012-09-05 15:24:24 -0400333 $(commands_recovery_local_path)/pigz/Android.mk \
bigbiff bigbiff9c754052013-01-09 09:09:08 -0500334 $(commands_recovery_local_path)/dosfstools/Android.mk \
335 $(commands_recovery_local_path)/libtar/Android.mk \
Dees_Troy51a0e822012-09-05 15:24:24 -0400336 $(commands_recovery_local_path)/crypto/cryptsettings/Android.mk \
a39552696ff55ce2013-01-08 16:14:56 +0000337 $(commands_recovery_local_path)/crypto/cryptfs/Android.mk \
Dees_Troyb9d88ac2012-09-14 14:34:19 -0400338 $(commands_recovery_local_path)/libcrecovery/Android.mk \
Dees_Troy2673cec2013-04-02 20:22:16 +0000339 $(commands_recovery_local_path)/libblkid/Android.mk \
Dees_Troy83bd4832013-05-04 12:39:56 +0000340 $(commands_recovery_local_path)/minuitwrp/Android.mk \
341 $(commands_recovery_local_path)/openaes/Android.mk
Dees_Troyb9d88ac2012-09-14 14:34:19 -0400342
a39552696ff55ce2013-01-08 16:14:56 +0000343ifeq ($(TW_INCLUDE_CRYPTO_SAMSUNG), true)
344 include $(commands_recovery_local_path)/crypto/libcrypt_samsung/Android.mk
345endif
Dees_Troy51a0e822012-09-05 15:24:24 -0400346
347ifeq ($(TW_INCLUDE_JB_CRYPTO), true)
Dees_Troy2673cec2013-04-02 20:22:16 +0000348 include $(commands_recovery_local_path)/crypto/jb/Android.mk
Dees_Troy51a0e822012-09-05 15:24:24 -0400349 include $(commands_recovery_local_path)/crypto/fs_mgr/Android.mk
350endif
Dees Troyb7ae0982013-09-10 20:47:35 +0000351ifeq ($(HAVE_SELINUX), true)
352 include $(commands_recovery_local_path)/minzip/Android.mk
353else
354 include $(commands_recovery_local_path)/minzipold/Android.mk
355endif
Vojtech Bocek7cc278b2013-02-24 01:40:19 +0100356ifeq ($(BUILD_ID), GINGERBREAD)
357 TW_NO_EXFAT := true
358endif
Dees_Troyb05ddee2013-01-28 20:24:50 +0000359ifneq ($(TW_NO_EXFAT), true)
360 include $(commands_recovery_local_path)/exfat/exfat-fuse/Android.mk \
361 $(commands_recovery_local_path)/exfat/mkfs/Android.mk \
362 $(commands_recovery_local_path)/fuse/Android.mk \
363 $(commands_recovery_local_path)/exfat/libexfat/Android.mk
bigbiff bigbiff9c754052013-01-09 09:09:08 -0500364endif
Dees_Troy2673cec2013-04-02 20:22:16 +0000365ifeq ($(TW_INCLUDE_CRYPTO), true)
366 include $(commands_recovery_local_path)/crypto/ics/Android.mk
367endif
bigbiff bigbiff9c754052013-01-09 09:09:08 -0500368
Talustus3019a912013-04-06 11:50:07 +0200369# FB2PNG
370ifeq ($(TW_INCLUDE_FB2PNG), true)
371 include $(commands_recovery_local_path)/fb2png/Android.mk
372endif
373
Dees_Troy51a0e822012-09-05 15:24:24 -0400374commands_recovery_local_path :=