blob: da06b9a6072acd7bc5c4f845869662eb6d30b655 [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
Doug Zongkerfb2e3af2009-06-17 17:29:40 -070043LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
44
Dees_Troy51a0e822012-09-05 15:24:24 -040045#LOCAL_STATIC_LIBRARIES := \
46# libext4_utils \
47# libminzip \
48# libmtdutils \
49# libmincrypt \
50# libminadbd \
51# libpixelflinger_static
52
53LOCAL_C_INCLUDES += bionic external/stlport/stlport
54
55LOCAL_STATIC_LIBRARIES :=
56LOCAL_SHARED_LIBRARIES :=
57
Dees_Troy2673cec2013-04-02 20:22:16 +000058LOCAL_STATIC_LIBRARIES += libcrecovery libguitwrp
59LOCAL_SHARED_LIBRARIES += libz libc libstlport libcutils libstdc++ libext4_utils libtar libblkid libminuitwrp libminadbd libmtdutils libminzip libaosprecovery
Doug Zongker49c73a72010-06-29 17:36:28 -070060
Dees_Troy4546fe72013-01-10 14:33:27 +000061ifneq ($(wildcard system/core/libsparse/Android.mk),)
62LOCAL_SHARED_LIBRARIES += libsparse
63endif
64
Doug Zongker49c73a72010-06-29 17:36:28 -070065ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
Joe Onorato6396e702012-05-31 23:21:46 -070066 LOCAL_CFLAGS += -DUSE_EXT4
67 LOCAL_C_INCLUDES += system/extras/ext4_utils
Dees_Troy43d8b002012-09-17 16:00:01 -040068 #LOCAL_STATIC_LIBRARIES += libext4_utils
Doug Zongker49c73a72010-06-29 17:36:28 -070069endif
70
Stephen Smalley1a114492012-01-13 07:59:51 -050071ifeq ($(HAVE_SELINUX), true)
Dees_Troy2673cec2013-04-02 20:22:16 +000072 #LOCAL_C_INCLUDES += external/libselinux/include
73 #LOCAL_STATIC_LIBRARIES += libselinux
74 #LOCAL_CFLAGS += -DHAVE_SELINUX -g
Stephen Smalley1a114492012-01-13 07:59:51 -050075endif # HAVE_SELINUX
Dees_Troyf2280ff2013-08-06 18:01:12 +000076ifneq ($(wildcard external/libselinux/Android.mk),)
77 LOCAL_C_INCLUDES += external/libselinux/include
78 LOCAL_STATIC_LIBRARIES += libselinux
79 LOCAL_CFLAGS += -DHAVE_SELINUX -g
80endif
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080081
82# This binary is in the recovery ramdisk, which is otherwise a copy of root.
83# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
84# a (redundant) copy of the binary in /system/bin for user builds.
85# TODO: Build the ramdisk image in a more principled way.
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080086LOCAL_MODULE_TAGS := eng
87
Doug Zongkerddd6a282009-06-09 12:22:33 -070088ifeq ($(TARGET_RECOVERY_UI_LIB),)
Doug Zongkerdaefc1d2011-10-31 09:34:15 -070089 LOCAL_SRC_FILES += default_device.cpp
Doug Zongkerddd6a282009-06-09 12:22:33 -070090else
91 LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
92endif
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080093
Doug Zongkercc8cd3f2010-09-20 12:16:13 -070094LOCAL_C_INCLUDES += system/extras/ext4_utils
95
Dees_Troy51a0e822012-09-05 15:24:24 -040096#TWRP Build Flags
97ifeq ($(BOARD_HAS_NO_REAL_SDCARD), true)
98 LOCAL_CFLAGS += -DBOARD_HAS_NO_REAL_SDCARD
99endif
100ifneq ($(SP1_NAME),)
101 LOCAL_CFLAGS += -DSP1_NAME=$(SP1_NAME) -DSP1_BACKUP_METHOD=$(SP1_BACKUP_METHOD) -DSP1_MOUNTABLE=$(SP1_MOUNTABLE)
102endif
103ifneq ($(SP1_DISPLAY_NAME),)
104 LOCAL_CFLAGS += -DSP1_DISPLAY_NAME=$(SP1_DISPLAY_NAME)
105endif
106ifneq ($(SP2_NAME),)
107 LOCAL_CFLAGS += -DSP2_NAME=$(SP2_NAME) -DSP2_BACKUP_METHOD=$(SP2_BACKUP_METHOD) -DSP2_MOUNTABLE=$(SP2_MOUNTABLE)
108endif
109ifneq ($(SP2_DISPLAY_NAME),)
110 LOCAL_CFLAGS += -DSP2_DISPLAY_NAME=$(SP2_DISPLAY_NAME)
111endif
112ifneq ($(SP3_NAME),)
113 LOCAL_CFLAGS += -DSP3_NAME=$(SP3_NAME) -DSP3_BACKUP_METHOD=$(SP3_BACKUP_METHOD) -DSP3_MOUNTABLE=$(SP3_MOUNTABLE)
114endif
115ifneq ($(SP3_DISPLAY_NAME),)
116 LOCAL_CFLAGS += -DSP3_DISPLAY_NAME=$(SP3_DISPLAY_NAME)
117endif
118ifneq ($(RECOVERY_SDCARD_ON_DATA),)
119 LOCAL_CFLAGS += -DRECOVERY_SDCARD_ON_DATA
120endif
121ifneq ($(TW_INCLUDE_DUMLOCK),)
122 LOCAL_CFLAGS += -DTW_INCLUDE_DUMLOCK
123endif
124ifneq ($(TW_INTERNAL_STORAGE_PATH),)
125 LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_PATH=$(TW_INTERNAL_STORAGE_PATH)
126endif
127ifneq ($(TW_INTERNAL_STORAGE_MOUNT_POINT),)
128 LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_MOUNT_POINT=$(TW_INTERNAL_STORAGE_MOUNT_POINT)
129endif
130ifneq ($(TW_EXTERNAL_STORAGE_PATH),)
131 LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_PATH=$(TW_EXTERNAL_STORAGE_PATH)
132endif
133ifneq ($(TW_EXTERNAL_STORAGE_MOUNT_POINT),)
134 LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_MOUNT_POINT=$(TW_EXTERNAL_STORAGE_MOUNT_POINT)
135endif
136ifeq ($(TW_HAS_NO_RECOVERY_PARTITION), true)
137 LOCAL_CFLAGS += -DTW_HAS_NO_RECOVERY_PARTITION
138endif
ChampionSwimmercf33e4d2013-02-03 13:59:22 +0530139ifeq ($(TW_HAS_NO_BOOT_PARTITION), true)
140 LOCAL_CFLAGS += -DTW_HAS_NO_BOOT_PARTITION
141endif
Dees_Troy51a0e822012-09-05 15:24:24 -0400142ifeq ($(TW_NO_REBOOT_BOOTLOADER), true)
143 LOCAL_CFLAGS += -DTW_NO_REBOOT_BOOTLOADER
144endif
145ifeq ($(TW_NO_REBOOT_RECOVERY), true)
146 LOCAL_CFLAGS += -DTW_NO_REBOOT_RECOVERY
147endif
148ifeq ($(TW_NO_BATT_PERCENT), true)
149 LOCAL_CFLAGS += -DTW_NO_BATT_PERCENT
150endif
151ifneq ($(TW_CUSTOM_POWER_BUTTON),)
152 LOCAL_CFLAGS += -DTW_CUSTOM_POWER_BUTTON=$(TW_CUSTOM_POWER_BUTTON)
153endif
154ifeq ($(TW_ALWAYS_RMRF), true)
155 LOCAL_CFLAGS += -DTW_ALWAYS_RMRF
156endif
157ifeq ($(TW_NEVER_UNMOUNT_SYSTEM), true)
158 LOCAL_CFLAGS += -DTW_NEVER_UNMOUNT_SYSTEM
159endif
160ifeq ($(TW_NO_USB_STORAGE), true)
161 LOCAL_CFLAGS += -DTW_NO_USB_STORAGE
162endif
163ifeq ($(TW_INCLUDE_INJECTTWRP), true)
164 LOCAL_CFLAGS += -DTW_INCLUDE_INJECTTWRP
165endif
166ifeq ($(TW_INCLUDE_BLOBPACK), true)
167 LOCAL_CFLAGS += -DTW_INCLUDE_BLOBPACK
168endif
169ifeq ($(TW_DEFAULT_EXTERNAL_STORAGE), true)
170 LOCAL_CFLAGS += -DTW_DEFAULT_EXTERNAL_STORAGE
171endif
172ifneq ($(TARGET_USE_CUSTOM_LUN_FILE_PATH),)
173 LOCAL_CFLAGS += -DCUSTOM_LUN_FILE=\"$(TARGET_USE_CUSTOM_LUN_FILE_PATH)\"
174endif
175ifneq ($(BOARD_UMS_LUNFILE),)
176 LOCAL_CFLAGS += -DCUSTOM_LUN_FILE=\"$(BOARD_UMS_LUNFILE)\"
177endif
178#ifeq ($(TW_FLASH_FROM_STORAGE), true) Making this the default behavior
179 LOCAL_CFLAGS += -DTW_FLASH_FROM_STORAGE
180#endif
181ifeq ($(TW_HAS_DOWNLOAD_MODE), true)
182 LOCAL_CFLAGS += -DTW_HAS_DOWNLOAD_MODE
183endif
bigbiff bigbiff87940362013-03-09 09:58:50 -0500184ifeq ($(TW_NO_SCREEN_BLANK), true)
185 LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK
186endif
Dees_Troy51a0e822012-09-05 15:24:24 -0400187ifeq ($(TW_SDEXT_NO_EXT4), true)
188 LOCAL_CFLAGS += -DTW_SDEXT_NO_EXT4
189endif
Dees_Troyfdf5fcc2012-09-11 10:27:01 -0400190ifeq ($(TW_FORCE_CPUINFO_FOR_DEVICE_ID), true)
191 LOCAL_CFLAGS += -DTW_FORCE_CPUINFO_FOR_DEVICE_ID
192endif
Dees_Troy3f5c4e82013-02-01 15:16:59 +0000193ifeq ($(TW_NO_EXFAT_FUSE), true)
194 LOCAL_CFLAGS += -DTW_NO_EXFAT_FUSE
195endif
Dees_Troy51a0e822012-09-05 15:24:24 -0400196ifeq ($(TW_INCLUDE_CRYPTO), true)
197 LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO
198 LOCAL_CFLAGS += -DCRYPTO_FS_TYPE=\"$(TW_CRYPTO_FS_TYPE)\"
199 LOCAL_CFLAGS += -DCRYPTO_REAL_BLKDEV=\"$(TW_CRYPTO_REAL_BLKDEV)\"
200 LOCAL_CFLAGS += -DCRYPTO_MNT_POINT=\"$(TW_CRYPTO_MNT_POINT)\"
201 LOCAL_CFLAGS += -DCRYPTO_FS_OPTIONS=\"$(TW_CRYPTO_FS_OPTIONS)\"
202 LOCAL_CFLAGS += -DCRYPTO_FS_FLAGS=\"$(TW_CRYPTO_FS_FLAGS)\"
203 LOCAL_CFLAGS += -DCRYPTO_KEY_LOC=\"$(TW_CRYPTO_KEY_LOC)\"
a39552696ff55ce2013-01-08 16:14:56 +0000204ifeq ($(TW_INCLUDE_CRYPTO_SAMSUNG), true)
205 LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO_SAMSUNG=\"$(TW_INCLUDE_CRYPTO_SAMSUNG)\"
206 ifdef TW_CRYPTO_SD_REAL_BLKDEV
207 LOCAL_CFLAGS += -DCRYPTO_SD_REAL_BLKDEV=\"$(TW_CRYPTO_SD_REAL_BLKDEV)\"
208 LOCAL_CFLAGS += -DCRYPTO_SD_FS_TYPE=\"$(TW_CRYPTO_SD_FS_TYPE)\"
209 endif
210 #LOCAL_LDFLAGS += -L$(TARGET_OUT_SHARED_LIBRARIES) -lsec_km
211 LOCAL_LDFLAGS += -ldl
212 LOCAL_STATIC_LIBRARIES += libcrypt_samsung
213endif
Dees_Troy2673cec2013-04-02 20:22:16 +0000214 LOCAL_SHARED_LIBRARIES += libcryptfsics
215 #LOCAL_SRC_FILES += crypto/ics/cryptfs.c
216 #LOCAL_C_INCLUDES += system/extras/ext4_utils external/openssl/include
Dees_Troy51a0e822012-09-05 15:24:24 -0400217endif
218ifeq ($(TW_INCLUDE_JB_CRYPTO), true)
219 LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO
220 LOCAL_CFLAGS += -DTW_INCLUDE_JB_CRYPTO
Dees_Troy2673cec2013-04-02 20:22:16 +0000221 LOCAL_SHARED_LIBRARIES += libcryptfsjb
222 #LOCAL_SRC_FILES += crypto/jb/cryptfs.c
223 #LOCAL_C_INCLUDES += system/extras/ext4_utils external/openssl/include
Dees_Troy51a0e822012-09-05 15:24:24 -0400224endif
Anatoly Smaznov10c11f62013-02-12 13:33:40 +0700225ifeq ($(TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID), true)
226 LOCAL_CFLAGS += -DTW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID
227endif
Dees_Troy2f9117a2013-02-17 19:52:09 -0600228ifneq ($(TW_BRIGHTNESS_PATH),)
229 LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=$(TW_BRIGHTNESS_PATH)
230endif
231ifneq ($(TW_MAX_BRIGHTNESS),)
232 LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS)
233endif
Dees_Troyf33b4902013-03-01 00:51:39 +0000234ifneq ($(TW_CUSTOM_BATTERY_PATH),)
235 LOCAL_CFLAGS += -DTW_CUSTOM_BATTERY_PATH=$(TW_CUSTOM_BATTERY_PATH)
236endif
Sergey 'Jin' Bostandzhyan80a90ed2013-01-04 02:29:03 +0100237ifeq ($(TARGET_BOARD_PLATFORM),rk30xx)
Anatoly Smaznov10c11f62013-02-12 13:33:40 +0700238 LOCAL_CFLAGS += -DRK3066
Sergey 'Jin' Bostandzhyan80a90ed2013-01-04 02:29:03 +0100239endif
Dees_Troy83bd4832013-05-04 12:39:56 +0000240ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true)
241 LOCAL_SHARED_LIBRARIES += libopenaes
242else
243 LOCAL_CFLAGS += -DTW_EXCLUDE_ENCRYPTED_BACKUPS
244endif
Sergey 'Jin' Bostandzhyan80a90ed2013-01-04 02:29:03 +0100245
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -0800246include $(BUILD_EXECUTABLE)
247
Doug Zongker73ae31c2009-12-09 17:01:45 -0800248include $(CLEAR_VARS)
Dees_Troyc04dcf72012-10-02 10:46:37 -0400249# Create busybox symlinks... gzip and gunzip are excluded because those need to link to pigz instead
250BUSYBOX_LINKS := $(shell cat external/busybox/busybox-full.links)
251exclude := tune2fs mke2fs mkdosfs gzip gunzip
252RECOVERY_BUSYBOX_SYMLINKS := $(addprefix $(TARGET_RECOVERY_ROOT_OUT)/sbin/,$(filter-out $(exclude),$(notdir $(BUSYBOX_LINKS))))
253$(RECOVERY_BUSYBOX_SYMLINKS): BUSYBOX_BINARY := busybox
254$(RECOVERY_BUSYBOX_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
255 @echo "Symlink: $@ -> $(BUSYBOX_BINARY)"
256 @mkdir -p $(dir $@)
257 @rm -rf $@
258 $(hide) ln -sf $(BUSYBOX_BINARY) $@
259
260ALL_DEFAULT_INSTALLED_MODULES += $(RECOVERY_BUSYBOX_SYMLINKS)
261
262include $(CLEAR_VARS)
Doug Zongkerdaefc1d2011-10-31 09:34:15 -0700263LOCAL_MODULE := verifier_test
Doug Zongkerdaefc1d2011-10-31 09:34:15 -0700264LOCAL_FORCE_STATIC_EXECUTABLE := true
Doug Zongkerdaefc1d2011-10-31 09:34:15 -0700265LOCAL_MODULE_TAGS := tests
Joe Onorato6396e702012-05-31 23:21:46 -0700266LOCAL_SRC_FILES := \
267 verifier_test.cpp \
268 verifier.cpp \
269 ui.cpp
270LOCAL_STATIC_LIBRARIES := \
271 libmincrypt \
272 libminui \
273 libcutils \
274 libstdc++ \
275 libc
Doug Zongkerdaefc1d2011-10-31 09:34:15 -0700276include $(BUILD_EXECUTABLE)
Doug Zongker73ae31c2009-12-09 17:01:45 -0800277
Dees_Troy2673cec2013-04-02 20:22:16 +0000278include $(CLEAR_VARS)
279
280LOCAL_MODULE := libaosprecovery
281LOCAL_MODULE_TAGS := eng
282LOCAL_MODULES_TAGS = optional
283LOCAL_CFLAGS =
Dees_Troy76543db2013-06-19 16:24:30 +0000284LOCAL_SRC_FILES = adb_install.cpp bootloader.cpp verifier.cpp mtdutils/mtdutils.c
Dees_Troy2673cec2013-04-02 20:22:16 +0000285LOCAL_SHARED_LIBRARIES += libc liblog libcutils libmtdutils
286LOCAL_STATIC_LIBRARIES += libmincrypt
287
288include $(BUILD_SHARED_LIBRARY)
289
Dees_Troy51a0e822012-09-05 15:24:24 -0400290commands_recovery_local_path := $(LOCAL_PATH)
Joe Onorato6396e702012-05-31 23:21:46 -0700291include $(LOCAL_PATH)/minui/Android.mk \
292 $(LOCAL_PATH)/minelf/Android.mk \
293 $(LOCAL_PATH)/minzip/Android.mk \
294 $(LOCAL_PATH)/minadbd/Android.mk \
Joe Onorato6396e702012-05-31 23:21:46 -0700295 $(LOCAL_PATH)/tools/Android.mk \
296 $(LOCAL_PATH)/edify/Android.mk \
297 $(LOCAL_PATH)/updater/Android.mk \
298 $(LOCAL_PATH)/applypatch/Android.mk
Dees_Troy51a0e822012-09-05 15:24:24 -0400299
300#includes for TWRP
Dees_Troy930bf012013-08-10 22:19:03 +0000301include $(commands_recovery_local_path)/injecttwrp/Android.mk \
Dees_Troy51a0e822012-09-05 15:24:24 -0400302 $(commands_recovery_local_path)/htcdumlock/Android.mk \
Dees_Troy51a0e822012-09-05 15:24:24 -0400303 $(commands_recovery_local_path)/gui/Android.mk \
304 $(commands_recovery_local_path)/mmcutils/Android.mk \
305 $(commands_recovery_local_path)/bmlutils/Android.mk \
Dees_Troy51a0e822012-09-05 15:24:24 -0400306 $(commands_recovery_local_path)/prebuilt/Android.mk \
307 $(commands_recovery_local_path)/mtdutils/Android.mk \
bigbiff bigbiff9c754052013-01-09 09:09:08 -0500308 $(commands_recovery_local_path)/flashutils/Android.mk \
Dees_Troy51a0e822012-09-05 15:24:24 -0400309 $(commands_recovery_local_path)/pigz/Android.mk \
bigbiff bigbiff9c754052013-01-09 09:09:08 -0500310 $(commands_recovery_local_path)/dosfstools/Android.mk \
311 $(commands_recovery_local_path)/libtar/Android.mk \
Dees_Troy51a0e822012-09-05 15:24:24 -0400312 $(commands_recovery_local_path)/crypto/cryptsettings/Android.mk \
a39552696ff55ce2013-01-08 16:14:56 +0000313 $(commands_recovery_local_path)/crypto/cryptfs/Android.mk \
Dees_Troyb9d88ac2012-09-14 14:34:19 -0400314 $(commands_recovery_local_path)/libcrecovery/Android.mk \
Dees_Troy2673cec2013-04-02 20:22:16 +0000315 $(commands_recovery_local_path)/libblkid/Android.mk \
Dees_Troy83bd4832013-05-04 12:39:56 +0000316 $(commands_recovery_local_path)/minuitwrp/Android.mk \
317 $(commands_recovery_local_path)/openaes/Android.mk
Dees_Troyb9d88ac2012-09-14 14:34:19 -0400318
a39552696ff55ce2013-01-08 16:14:56 +0000319ifeq ($(TW_INCLUDE_CRYPTO_SAMSUNG), true)
320 include $(commands_recovery_local_path)/crypto/libcrypt_samsung/Android.mk
321endif
Dees_Troy51a0e822012-09-05 15:24:24 -0400322
323ifeq ($(TW_INCLUDE_JB_CRYPTO), true)
Dees_Troy2673cec2013-04-02 20:22:16 +0000324 include $(commands_recovery_local_path)/crypto/jb/Android.mk
Dees_Troy51a0e822012-09-05 15:24:24 -0400325 include $(commands_recovery_local_path)/crypto/fs_mgr/Android.mk
326endif
Vojtech Bocek7cc278b2013-02-24 01:40:19 +0100327ifeq ($(BUILD_ID), GINGERBREAD)
328 TW_NO_EXFAT := true
329endif
Dees_Troyb05ddee2013-01-28 20:24:50 +0000330ifneq ($(TW_NO_EXFAT), true)
331 include $(commands_recovery_local_path)/exfat/exfat-fuse/Android.mk \
332 $(commands_recovery_local_path)/exfat/mkfs/Android.mk \
333 $(commands_recovery_local_path)/fuse/Android.mk \
334 $(commands_recovery_local_path)/exfat/libexfat/Android.mk
bigbiff bigbiff9c754052013-01-09 09:09:08 -0500335endif
Dees_Troy2673cec2013-04-02 20:22:16 +0000336ifeq ($(TW_INCLUDE_CRYPTO), true)
337 include $(commands_recovery_local_path)/crypto/ics/Android.mk
338endif
bigbiff bigbiff9c754052013-01-09 09:09:08 -0500339
Talustus3019a912013-04-06 11:50:07 +0200340# FB2PNG
341ifeq ($(TW_INCLUDE_FB2PNG), true)
342 include $(commands_recovery_local_path)/fb2png/Android.mk
343endif
344
Dees_Troy51a0e822012-09-05 15:24:24 -0400345commands_recovery_local_path :=