Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 1 | # 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 Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 14 | |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 15 | LOCAL_PATH := $(call my-dir) |
| 16 | |
Matt Mower | 66766fe | 2014-10-06 18:03:39 -0500 | [diff] [blame] | 17 | ifdef project-path-for |
| 18 | ifeq ($(LOCAL_PATH),$(call project-path-for,recovery)) |
| 19 | PROJECT_PATH_AGREES := true |
| 20 | endif |
| 21 | else |
| 22 | ifeq ($(LOCAL_PATH),bootable/recovery) |
| 23 | PROJECT_PATH_AGREES := true |
| 24 | endif |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 25 | endif |
| 26 | |
Matt Mower | 66766fe | 2014-10-06 18:03:39 -0500 | [diff] [blame] | 27 | ifeq ($(PROJECT_PATH_AGREES),true) |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 28 | |
Motorhead1991 | 75b6f66 | 2014-06-12 15:58:33 -0700 | [diff] [blame] | 29 | include $(CLEAR_VARS) |
| 30 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 31 | TARGET_RECOVERY_GUI := true |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 32 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 33 | LOCAL_SRC_FILES := \ |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 34 | twrp.cpp \ |
bigbiff bigbiff | a0f8a59 | 2012-10-09 21:01:03 -0400 | [diff] [blame] | 35 | fixPermissions.cpp \ |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 36 | twrpTar.cpp \ |
bigbiff bigbiff | 34684ff | 2013-12-01 21:03:45 -0500 | [diff] [blame] | 37 | twrpDU.cpp \ |
bigbiff bigbiff | cdcfee4 | 2013-02-27 21:11:26 -0500 | [diff] [blame] | 38 | twrpDigest.cpp \ |
Ethan Yonker | 1b7a31b | 2014-07-03 15:09:22 -0500 | [diff] [blame] | 39 | find_file.cpp \ |
| 40 | infomanager.cpp |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 41 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 42 | LOCAL_SRC_FILES += \ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 43 | data.cpp \ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 44 | partition.cpp \ |
| 45 | partitionmanager.cpp \ |
Dees_Troy | 32c8eb8 | 2012-09-11 15:28:06 -0400 | [diff] [blame] | 46 | twinstall.cpp \ |
Dees_Troy | 812660f | 2012-09-20 09:55:17 -0400 | [diff] [blame] | 47 | twrp-functions.cpp \ |
Dees_Troy | e34c133 | 2013-02-06 19:13:00 +0000 | [diff] [blame] | 48 | openrecoveryscript.cpp \ |
| 49 | tarWrite.c |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 50 | |
Dees_Troy | a58bead | 2012-09-27 09:49:29 -0400 | [diff] [blame] | 51 | ifneq ($(TARGET_RECOVERY_REBOOT_SRC),) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 52 | LOCAL_SRC_FILES += $(TARGET_RECOVERY_REBOOT_SRC) |
| 53 | endif |
| 54 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 55 | LOCAL_MODULE := recovery |
| 56 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 57 | #LOCAL_FORCE_STATIC_EXECUTABLE := true |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 58 | |
Ethan Yonker | a167416 | 2014-11-06 08:35:10 -0600 | [diff] [blame] | 59 | #ifeq ($(HOST_OS),linux) |
| 60 | #LOCAL_REQUIRED_MODULES := mkfs.f2fs |
| 61 | #endif |
JP Abgrall | 37aedb3 | 2014-06-16 19:07:39 -0700 | [diff] [blame] | 62 | |
Doug Zongker | e08991e | 2010-02-02 13:09:52 -0800 | [diff] [blame] | 63 | RECOVERY_API_VERSION := 3 |
Ken Sumrall | f35d1ce | 2013-02-13 12:59:35 -0800 | [diff] [blame] | 64 | RECOVERY_FSTAB_VERSION := 2 |
Doug Zongker | fb2e3af | 2009-06-17 17:29:40 -0700 | [diff] [blame] | 65 | LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) |
Doug Zongker | 0d32f25 | 2014-02-13 15:07:56 -0800 | [diff] [blame] | 66 | LOCAL_CFLAGS += -Wno-unused-parameter |
Doug Zongker | fb2e3af | 2009-06-17 17:29:40 -0700 | [diff] [blame] | 67 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 68 | #LOCAL_STATIC_LIBRARIES := \ |
Dees_Troy | 1669f89 | 2013-09-04 18:35:08 +0000 | [diff] [blame] | 69 | # libext4_utils_static \ |
| 70 | # libsparse_static \ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 71 | # libminzip \ |
Dees_Troy | 1669f89 | 2013-09-04 18:35:08 +0000 | [diff] [blame] | 72 | # libz \ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 73 | # libmtdutils \ |
| 74 | # libmincrypt \ |
| 75 | # libminadbd \ |
Dees_Troy | 1669f89 | 2013-09-04 18:35:08 +0000 | [diff] [blame] | 76 | # libminui \ |
| 77 | # libpixelflinger_static \ |
| 78 | # libpng \ |
| 79 | # libfs_mgr \ |
| 80 | # libcutils \ |
| 81 | # liblog \ |
| 82 | # libselinux \ |
| 83 | # libstdc++ \ |
| 84 | # libm \ |
| 85 | # libc |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 86 | |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 87 | LOCAL_C_INCLUDES += bionic external/stlport/stlport external/openssl/include $(LOCAL_PATH)/libmincrypt/includes |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 88 | |
| 89 | LOCAL_STATIC_LIBRARIES := |
| 90 | LOCAL_SHARED_LIBRARIES := |
| 91 | |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 92 | LOCAL_STATIC_LIBRARIES += libguitwrp |
Ethan Yonker | 1702eb4 | 2014-11-06 09:16:16 -0600 | [diff] [blame] | 93 | LOCAL_SHARED_LIBRARIES += libz libc libstlport libcutils libstdc++ libtar libblkid libminuitwrp libminadbd libmtdutils libminzip libaosprecovery |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 94 | LOCAL_SHARED_LIBRARIES += libgccdemangle libcrecovery |
Doug Zongker | 49c73a7 | 2010-06-29 17:36:28 -0700 | [diff] [blame] | 95 | |
Dees_Troy | 4546fe7 | 2013-01-10 14:33:27 +0000 | [diff] [blame] | 96 | ifneq ($(wildcard system/core/libsparse/Android.mk),) |
| 97 | LOCAL_SHARED_LIBRARIES += libsparse |
| 98 | endif |
| 99 | |
Ethan Yonker | 7af51ce | 2014-04-04 13:33:30 -0500 | [diff] [blame] | 100 | ifeq ($(TW_OEM_BUILD),true) |
| 101 | LOCAL_CFLAGS += -DTW_OEM_BUILD |
| 102 | BOARD_HAS_NO_REAL_SDCARD := true |
| 103 | TW_USE_TOOLBOX := true |
| 104 | TW_EXCLUDE_SUPERSU := true |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 105 | TW_EXCLUDE_MTP := true |
Ethan Yonker | 7af51ce | 2014-04-04 13:33:30 -0500 | [diff] [blame] | 106 | endif |
Doug Zongker | 49c73a7 | 2010-06-29 17:36:28 -0700 | [diff] [blame] | 107 | ifeq ($(TARGET_USERIMAGES_USE_EXT4), true) |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 108 | LOCAL_CFLAGS += -DUSE_EXT4 |
| 109 | LOCAL_C_INCLUDES += system/extras/ext4_utils |
Dees_Troy | a95f55c | 2013-08-17 13:14:43 +0000 | [diff] [blame] | 110 | LOCAL_SHARED_LIBRARIES += libext4_utils |
Doug Zongker | 49c73a7 | 2010-06-29 17:36:28 -0700 | [diff] [blame] | 111 | endif |
Dees Troy | 4bf3b0d | 2013-09-11 19:12:49 +0000 | [diff] [blame] | 112 | ifneq ($(wildcard external/libselinux/Android.mk),) |
| 113 | TWHAVE_SELINUX := true |
| 114 | endif |
| 115 | ifeq ($(TWHAVE_SELINUX), true) |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 116 | #LOCAL_C_INCLUDES += external/libselinux/include |
| 117 | #LOCAL_STATIC_LIBRARIES += libselinux |
| 118 | #LOCAL_CFLAGS += -DHAVE_SELINUX -g |
Stephen Smalley | 1a11449 | 2012-01-13 07:59:51 -0500 | [diff] [blame] | 119 | endif # HAVE_SELINUX |
Dees Troy | 4bf3b0d | 2013-09-11 19:12:49 +0000 | [diff] [blame] | 120 | ifeq ($(TWHAVE_SELINUX), true) |
Dees_Troy | f2280ff | 2013-08-06 18:01:12 +0000 | [diff] [blame] | 121 | LOCAL_C_INCLUDES += external/libselinux/include |
Dees_Troy | a95f55c | 2013-08-17 13:14:43 +0000 | [diff] [blame] | 122 | LOCAL_SHARED_LIBRARIES += libselinux |
Dees_Troy | f2280ff | 2013-08-06 18:01:12 +0000 | [diff] [blame] | 123 | LOCAL_CFLAGS += -DHAVE_SELINUX -g |
Dees_Troy | a95f55c | 2013-08-17 13:14:43 +0000 | [diff] [blame] | 124 | ifneq ($(TARGET_USERIMAGES_USE_EXT4), true) |
| 125 | LOCAL_CFLAGS += -DUSE_EXT4 |
| 126 | LOCAL_C_INCLUDES += system/extras/ext4_utils |
| 127 | LOCAL_SHARED_LIBRARIES += libext4_utils |
| 128 | endif |
Dees_Troy | f2280ff | 2013-08-06 18:01:12 +0000 | [diff] [blame] | 129 | endif |
Doug Zongker | 49c73a7 | 2010-06-29 17:36:28 -0700 | [diff] [blame] | 130 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 131 | # This binary is in the recovery ramdisk, which is otherwise a copy of root. |
| 132 | # It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses |
| 133 | # a (redundant) copy of the binary in /system/bin for user builds. |
| 134 | # TODO: Build the ramdisk image in a more principled way. |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 135 | LOCAL_MODULE_TAGS := eng |
| 136 | |
Dees_Troy | 1669f89 | 2013-09-04 18:35:08 +0000 | [diff] [blame] | 137 | #ifeq ($(TARGET_RECOVERY_UI_LIB),) |
Doug Zongker | daefc1d | 2011-10-31 09:34:15 -0700 | [diff] [blame] | 138 | LOCAL_SRC_FILES += default_device.cpp |
Dees_Troy | 1669f89 | 2013-09-04 18:35:08 +0000 | [diff] [blame] | 139 | #else |
| 140 | # LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB) |
| 141 | #endif |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 142 | |
Doug Zongker | cc8cd3f | 2010-09-20 12:16:13 -0700 | [diff] [blame] | 143 | LOCAL_C_INCLUDES += system/extras/ext4_utils |
| 144 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 145 | #TWRP Build Flags |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 146 | ifeq ($(TW_EXCLUDE_MTP),) |
| 147 | LOCAL_SHARED_LIBRARIES += libtwrpmtp |
| 148 | LOCAL_CFLAGS += -DTW_HAS_MTP |
| 149 | endif |
Ricardo Gomez | c9ecd44 | 2013-07-05 16:13:52 -0700 | [diff] [blame] | 150 | ifneq ($(TW_NO_SCREEN_TIMEOUT),) |
| 151 | LOCAL_CFLAGS += -DTW_NO_SCREEN_TIMEOUT |
| 152 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 153 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD), true) |
| 154 | LOCAL_CFLAGS += -DBOARD_HAS_NO_REAL_SDCARD |
| 155 | endif |
| 156 | ifneq ($(SP1_NAME),) |
| 157 | LOCAL_CFLAGS += -DSP1_NAME=$(SP1_NAME) -DSP1_BACKUP_METHOD=$(SP1_BACKUP_METHOD) -DSP1_MOUNTABLE=$(SP1_MOUNTABLE) |
| 158 | endif |
| 159 | ifneq ($(SP1_DISPLAY_NAME),) |
| 160 | LOCAL_CFLAGS += -DSP1_DISPLAY_NAME=$(SP1_DISPLAY_NAME) |
| 161 | endif |
| 162 | ifneq ($(SP2_NAME),) |
| 163 | LOCAL_CFLAGS += -DSP2_NAME=$(SP2_NAME) -DSP2_BACKUP_METHOD=$(SP2_BACKUP_METHOD) -DSP2_MOUNTABLE=$(SP2_MOUNTABLE) |
| 164 | endif |
| 165 | ifneq ($(SP2_DISPLAY_NAME),) |
| 166 | LOCAL_CFLAGS += -DSP2_DISPLAY_NAME=$(SP2_DISPLAY_NAME) |
| 167 | endif |
| 168 | ifneq ($(SP3_NAME),) |
| 169 | LOCAL_CFLAGS += -DSP3_NAME=$(SP3_NAME) -DSP3_BACKUP_METHOD=$(SP3_BACKUP_METHOD) -DSP3_MOUNTABLE=$(SP3_MOUNTABLE) |
| 170 | endif |
| 171 | ifneq ($(SP3_DISPLAY_NAME),) |
| 172 | LOCAL_CFLAGS += -DSP3_DISPLAY_NAME=$(SP3_DISPLAY_NAME) |
| 173 | endif |
| 174 | ifneq ($(RECOVERY_SDCARD_ON_DATA),) |
| 175 | LOCAL_CFLAGS += -DRECOVERY_SDCARD_ON_DATA |
| 176 | endif |
| 177 | ifneq ($(TW_INCLUDE_DUMLOCK),) |
| 178 | LOCAL_CFLAGS += -DTW_INCLUDE_DUMLOCK |
| 179 | endif |
| 180 | ifneq ($(TW_INTERNAL_STORAGE_PATH),) |
| 181 | LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_PATH=$(TW_INTERNAL_STORAGE_PATH) |
| 182 | endif |
| 183 | ifneq ($(TW_INTERNAL_STORAGE_MOUNT_POINT),) |
| 184 | LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_MOUNT_POINT=$(TW_INTERNAL_STORAGE_MOUNT_POINT) |
| 185 | endif |
| 186 | ifneq ($(TW_EXTERNAL_STORAGE_PATH),) |
| 187 | LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_PATH=$(TW_EXTERNAL_STORAGE_PATH) |
| 188 | endif |
| 189 | ifneq ($(TW_EXTERNAL_STORAGE_MOUNT_POINT),) |
| 190 | LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_MOUNT_POINT=$(TW_EXTERNAL_STORAGE_MOUNT_POINT) |
| 191 | endif |
| 192 | ifeq ($(TW_HAS_NO_RECOVERY_PARTITION), true) |
| 193 | LOCAL_CFLAGS += -DTW_HAS_NO_RECOVERY_PARTITION |
| 194 | endif |
ChampionSwimmer | cf33e4d | 2013-02-03 13:59:22 +0530 | [diff] [blame] | 195 | ifeq ($(TW_HAS_NO_BOOT_PARTITION), true) |
| 196 | LOCAL_CFLAGS += -DTW_HAS_NO_BOOT_PARTITION |
| 197 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 198 | ifeq ($(TW_NO_REBOOT_BOOTLOADER), true) |
| 199 | LOCAL_CFLAGS += -DTW_NO_REBOOT_BOOTLOADER |
| 200 | endif |
| 201 | ifeq ($(TW_NO_REBOOT_RECOVERY), true) |
| 202 | LOCAL_CFLAGS += -DTW_NO_REBOOT_RECOVERY |
| 203 | endif |
| 204 | ifeq ($(TW_NO_BATT_PERCENT), true) |
| 205 | LOCAL_CFLAGS += -DTW_NO_BATT_PERCENT |
| 206 | endif |
Jenkins | 1710bf2 | 2014-10-02 20:22:21 -0400 | [diff] [blame] | 207 | ifeq ($(TW_NO_CPU_TEMP), true) |
| 208 | LOCAL_CFLAGS += -DTW_NO_CPU_TEMP |
| 209 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 210 | ifneq ($(TW_CUSTOM_POWER_BUTTON),) |
| 211 | LOCAL_CFLAGS += -DTW_CUSTOM_POWER_BUTTON=$(TW_CUSTOM_POWER_BUTTON) |
| 212 | endif |
| 213 | ifeq ($(TW_ALWAYS_RMRF), true) |
| 214 | LOCAL_CFLAGS += -DTW_ALWAYS_RMRF |
| 215 | endif |
| 216 | ifeq ($(TW_NEVER_UNMOUNT_SYSTEM), true) |
| 217 | LOCAL_CFLAGS += -DTW_NEVER_UNMOUNT_SYSTEM |
| 218 | endif |
| 219 | ifeq ($(TW_NO_USB_STORAGE), true) |
| 220 | LOCAL_CFLAGS += -DTW_NO_USB_STORAGE |
| 221 | endif |
| 222 | ifeq ($(TW_INCLUDE_INJECTTWRP), true) |
| 223 | LOCAL_CFLAGS += -DTW_INCLUDE_INJECTTWRP |
| 224 | endif |
| 225 | ifeq ($(TW_INCLUDE_BLOBPACK), true) |
| 226 | LOCAL_CFLAGS += -DTW_INCLUDE_BLOBPACK |
| 227 | endif |
| 228 | ifeq ($(TW_DEFAULT_EXTERNAL_STORAGE), true) |
| 229 | LOCAL_CFLAGS += -DTW_DEFAULT_EXTERNAL_STORAGE |
| 230 | endif |
| 231 | ifneq ($(TARGET_USE_CUSTOM_LUN_FILE_PATH),) |
| 232 | LOCAL_CFLAGS += -DCUSTOM_LUN_FILE=\"$(TARGET_USE_CUSTOM_LUN_FILE_PATH)\" |
| 233 | endif |
| 234 | ifneq ($(BOARD_UMS_LUNFILE),) |
| 235 | LOCAL_CFLAGS += -DCUSTOM_LUN_FILE=\"$(BOARD_UMS_LUNFILE)\" |
| 236 | endif |
| 237 | #ifeq ($(TW_FLASH_FROM_STORAGE), true) Making this the default behavior |
| 238 | LOCAL_CFLAGS += -DTW_FLASH_FROM_STORAGE |
| 239 | #endif |
| 240 | ifeq ($(TW_HAS_DOWNLOAD_MODE), true) |
| 241 | LOCAL_CFLAGS += -DTW_HAS_DOWNLOAD_MODE |
| 242 | endif |
bigbiff bigbiff | 8794036 | 2013-03-09 09:58:50 -0500 | [diff] [blame] | 243 | ifeq ($(TW_NO_SCREEN_BLANK), true) |
| 244 | LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK |
| 245 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 246 | ifeq ($(TW_SDEXT_NO_EXT4), true) |
| 247 | LOCAL_CFLAGS += -DTW_SDEXT_NO_EXT4 |
| 248 | endif |
Dees_Troy | fdf5fcc | 2012-09-11 10:27:01 -0400 | [diff] [blame] | 249 | ifeq ($(TW_FORCE_CPUINFO_FOR_DEVICE_ID), true) |
| 250 | LOCAL_CFLAGS += -DTW_FORCE_CPUINFO_FOR_DEVICE_ID |
| 251 | endif |
Dees_Troy | 3f5c4e8 | 2013-02-01 15:16:59 +0000 | [diff] [blame] | 252 | ifeq ($(TW_NO_EXFAT_FUSE), true) |
| 253 | LOCAL_CFLAGS += -DTW_NO_EXFAT_FUSE |
| 254 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 255 | ifeq ($(TW_INCLUDE_JB_CRYPTO), true) |
Ethan Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 256 | TW_INCLUDE_CRYPTO := true |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 257 | endif |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 258 | ifeq ($(TW_INCLUDE_L_CRYPTO), true) |
Ethan Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 259 | TW_INCLUDE_CRYPTO := true |
| 260 | endif |
| 261 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 262 | LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 263 | LOCAL_SHARED_LIBRARIES += libcryptfslollipop |
| 264 | endif |
Anatoly Smaznov | 10c11f6 | 2013-02-12 13:33:40 +0700 | [diff] [blame] | 265 | ifeq ($(TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID), true) |
| 266 | LOCAL_CFLAGS += -DTW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID |
| 267 | endif |
Dees_Troy | 2f9117a | 2013-02-17 19:52:09 -0600 | [diff] [blame] | 268 | ifneq ($(TW_BRIGHTNESS_PATH),) |
| 269 | LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=$(TW_BRIGHTNESS_PATH) |
| 270 | endif |
xNUTx | e85f02d | 2014-07-18 01:30:58 +0200 | [diff] [blame] | 271 | ifneq ($(TW_SECONDARY_BRIGHTNESS_PATH),) |
| 272 | LOCAL_CFLAGS += -DTW_SECONDARY_BRIGHTNESS_PATH=$(TW_SECONDARY_BRIGHTNESS_PATH) |
| 273 | endif |
Dees_Troy | 2f9117a | 2013-02-17 19:52:09 -0600 | [diff] [blame] | 274 | ifneq ($(TW_MAX_BRIGHTNESS),) |
| 275 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS) |
| 276 | endif |
Dees_Troy | f33b490 | 2013-03-01 00:51:39 +0000 | [diff] [blame] | 277 | ifneq ($(TW_CUSTOM_BATTERY_PATH),) |
| 278 | LOCAL_CFLAGS += -DTW_CUSTOM_BATTERY_PATH=$(TW_CUSTOM_BATTERY_PATH) |
| 279 | endif |
Jenkins | 1710bf2 | 2014-10-02 20:22:21 -0400 | [diff] [blame] | 280 | ifneq ($(TW_CUSTOM_CPU_TEMP_PATH),) |
| 281 | LOCAL_CFLAGS += -DTW_CUSTOM_CPU_TEMP_PATH=$(TW_CUSTOM_CPU_TEMP_PATH) |
| 282 | endif |
| 283 | ifneq ($(TW_NO_CPU_TEMP),) |
| 284 | LOCAL_CFLAGS += -DTW_NO_CPU_TEMP=$(TW_NO_CPU_TEMP) |
| 285 | endif |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 286 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
| 287 | LOCAL_SHARED_LIBRARIES += libopenaes |
| 288 | else |
| 289 | LOCAL_CFLAGS += -DTW_EXCLUDE_ENCRYPTED_BACKUPS |
| 290 | endif |
Vojtech Bocek | d0e38bc | 2014-02-03 23:36:57 +0100 | [diff] [blame] | 291 | ifeq ($(TARGET_RECOVERY_QCOM_RTC_FIX),) |
| 292 | ifeq ($(TARGET_CPU_VARIANT),krait) |
| 293 | LOCAL_CFLAGS += -DQCOM_RTC_FIX |
| 294 | endif |
| 295 | else ifeq ($(TARGET_RECOVERY_QCOM_RTC_FIX),true) |
| 296 | LOCAL_CFLAGS += -DQCOM_RTC_FIX |
| 297 | endif |
Matt Mower | 6883d73 | 2014-03-20 17:28:13 -0500 | [diff] [blame] | 298 | ifneq ($(TW_NO_LEGACY_PROPS),) |
| 299 | LOCAL_CFLAGS += -DTW_NO_LEGACY_PROPS |
| 300 | endif |
Dees Troy | 4159aed | 2014-02-28 17:24:43 +0000 | [diff] [blame] | 301 | ifneq ($(wildcard bionic/libc/include/sys/capability.h),) |
| 302 | LOCAL_CFLAGS += -DHAVE_CAPABILITIES |
| 303 | endif |
Sergey 'Jin' Bostandzhyan | 80a90ed | 2013-01-04 02:29:03 +0100 | [diff] [blame] | 304 | |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 305 | LOCAL_ADDITIONAL_DEPENDENCIES := \ |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 306 | dump_image \ |
| 307 | erase_image \ |
| 308 | flash_image \ |
| 309 | fix_permissions.sh \ |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 310 | mke2fs.conf \ |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 311 | pigz \ |
| 312 | teamwin \ |
| 313 | toolbox_symlinks \ |
| 314 | twrp \ |
Ethan Yonker | 2d11d49 | 2014-12-12 11:43:21 -0600 | [diff] [blame] | 315 | unpigz_symlink \ |
| 316 | dosfsck \ |
| 317 | dosfslabel \ |
| 318 | fsck_msdos_symlink \ |
| 319 | mkdosfs |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 320 | |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 321 | ifneq ($(TARGET_ARCH), arm64) |
Ethan Yonker | 1902c79 | 2014-12-03 16:48:36 -0600 | [diff] [blame] | 322 | LOCAL_LDFLAGS += -Wl,-dynamic-linker,/sbin/linker |
| 323 | else |
| 324 | LOCAL_LDFLAGS += -Wl,-dynamic-linker,/sbin/linker64 |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 325 | endif |
| 326 | ifneq ($(TW_USE_TOOLBOX), true) |
| 327 | LOCAL_ADDITIONAL_DEPENDENCIES += busybox_symlinks |
| 328 | endif |
Matt Mower | 2017279 | 2014-11-14 10:54:03 -0600 | [diff] [blame] | 329 | ifneq ($(TW_NO_EXFAT), true) |
| 330 | LOCAL_ADDITIONAL_DEPENDENCIES += mkexfatfs |
| 331 | endif |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 332 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
| 333 | LOCAL_ADDITIONAL_DEPENDENCIES += parted |
| 334 | endif |
| 335 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
| 336 | LOCAL_ADDITIONAL_DEPENDENCIES += openaes ../openaes/LICENSE |
| 337 | endif |
| 338 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
| 339 | LOCAL_ADDITIONAL_DEPENDENCIES += \ |
| 340 | htcdumlock htcdumlocksys flash_imagesys dump_imagesys libbmlutils.so \ |
| 341 | libflashutils.so libmmcutils.so libmtdutils.so HTCDumlock.apk |
| 342 | endif |
| 343 | ifneq ($(TW_EXCLUDE_SUPERSU), true) |
| 344 | LOCAL_ADDITIONAL_DEPENDENCIES += \ |
| 345 | su install-recovery.sh 99SuperSUDaemon Superuser.apk |
| 346 | endif |
| 347 | ifneq ($(TW_NO_EXFAT_FUSE), true) |
| 348 | LOCAL_ADDITIONAL_DEPENDENCIES += exfat-fuse |
| 349 | endif |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 350 | ifeq ($(TW_INCLUDE_FB2PNG), true) |
| 351 | LOCAL_ADDITIONAL_DEPENDENCIES += fb2png |
| 352 | endif |
| 353 | ifneq ($(TW_OEM_BUILD),true) |
| 354 | LOCAL_ADDITIONAL_DEPENDENCIES += orscmd |
| 355 | endif |
| 356 | ifeq ($(BOARD_USES_BML_OVER_MTD),true) |
| 357 | LOCAL_ADDITIONAL_DEPENDENCIES += bml_over_mtd |
| 358 | endif |
| 359 | ifeq ($(TW_INCLUDE_INJECTTWRP), true) |
| 360 | LOCAL_ADDITIONAL_DEPENDENCIES += injecttwrp |
| 361 | endif |
| 362 | # Allow devices to specify device-specific recovery dependencies |
| 363 | ifneq ($(TARGET_RECOVERY_DEVICE_MODULES),) |
| 364 | LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_RECOVERY_DEVICE_MODULES) |
| 365 | endif |
| 366 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 367 | include $(BUILD_EXECUTABLE) |
| 368 | |
Ethan Yonker | 5c93369 | 2014-04-04 11:26:32 -0500 | [diff] [blame] | 369 | ifneq ($(TW_USE_TOOLBOX), true) |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 370 | include $(CLEAR_VARS) |
Dees_Troy | c04dcf7 | 2012-10-02 10:46:37 -0400 | [diff] [blame] | 371 | # Create busybox symlinks... gzip and gunzip are excluded because those need to link to pigz instead |
| 372 | BUSYBOX_LINKS := $(shell cat external/busybox/busybox-full.links) |
| 373 | exclude := tune2fs mke2fs mkdosfs gzip gunzip |
Matt Mower | 81742fb | 2014-09-01 14:40:52 -0500 | [diff] [blame] | 374 | |
| 375 | # If busybox does not have restorecon, assume it does not have SELinux support. |
| 376 | # Then, let toolbox provide 'ls' so -Z is available to list SELinux contexts. |
Dees Troy | 8d66f8b | 2013-10-08 14:04:55 +0000 | [diff] [blame] | 377 | ifeq ($(TWHAVE_SELINUX), true) |
Matt Mower | 81742fb | 2014-09-01 14:40:52 -0500 | [diff] [blame] | 378 | ifeq ($(filter restorecon, $(notdir $(BUSYBOX_LINKS))),) |
| 379 | exclude += ls |
| 380 | endif |
Dees Troy | 8d66f8b | 2013-10-08 14:04:55 +0000 | [diff] [blame] | 381 | endif |
Matt Mower | 81742fb | 2014-09-01 14:40:52 -0500 | [diff] [blame] | 382 | |
| 383 | RECOVERY_BUSYBOX_TOOLS := $(filter-out $(exclude), $(notdir $(BUSYBOX_LINKS))) |
| 384 | RECOVERY_BUSYBOX_SYMLINKS := $(addprefix $(TARGET_RECOVERY_ROOT_OUT)/sbin/, $(RECOVERY_BUSYBOX_TOOLS)) |
Dees_Troy | c04dcf7 | 2012-10-02 10:46:37 -0400 | [diff] [blame] | 385 | $(RECOVERY_BUSYBOX_SYMLINKS): BUSYBOX_BINARY := busybox |
| 386 | $(RECOVERY_BUSYBOX_SYMLINKS): $(LOCAL_INSTALLED_MODULE) |
| 387 | @echo "Symlink: $@ -> $(BUSYBOX_BINARY)" |
| 388 | @mkdir -p $(dir $@) |
| 389 | @rm -rf $@ |
| 390 | $(hide) ln -sf $(BUSYBOX_BINARY) $@ |
| 391 | |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 392 | include $(CLEAR_VARS) |
| 393 | LOCAL_MODULE := busybox_symlinks |
| 394 | LOCAL_MODULE_TAGS := optional |
| 395 | LOCAL_ADDITIONAL_DEPENDENCIES := $(RECOVERY_BUSYBOX_SYMLINKS) |
Dees Troy | b47f28b | 2014-12-11 17:20:59 +0000 | [diff] [blame] | 396 | ifneq (,$(filter $(PLATFORM_SDK_VERSION),16 17 18)) |
| 397 | ALL_DEFAULT_INSTALLED_MODULES += $(RECOVERY_BUSYBOX_SYMLINKS) |
| 398 | endif |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 399 | include $(BUILD_PHONY_PACKAGE) |
| 400 | RECOVERY_BUSYBOX_SYMLINKS := |
| 401 | endif # !TW_USE_TOOLBOX |
Dees_Troy | c04dcf7 | 2012-10-02 10:46:37 -0400 | [diff] [blame] | 402 | |
Kenny Root | 7a4adb5 | 2013-10-09 10:14:35 -0700 | [diff] [blame] | 403 | # All the APIs for testing |
| 404 | include $(CLEAR_VARS) |
| 405 | LOCAL_MODULE := libverifier |
| 406 | LOCAL_MODULE_TAGS := tests |
| 407 | LOCAL_SRC_FILES := \ |
| 408 | asn1_decoder.cpp |
| 409 | include $(BUILD_STATIC_LIBRARY) |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 410 | |
| 411 | include $(CLEAR_VARS) |
Ethan Yonker | a167416 | 2014-11-06 08:35:10 -0600 | [diff] [blame] | 412 | LOCAL_SRC_FILES := fuse_sideload.c |
| 413 | |
| 414 | LOCAL_CFLAGS := -O2 -g -DADB_HOST=0 -Wall -Wno-unused-parameter |
| 415 | LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE |
Ethan Yonker | 75bf041 | 2014-11-21 13:54:27 -0600 | [diff] [blame] | 416 | LOCAL_MODULE_TAGS := optional |
Ethan Yonker | a167416 | 2014-11-06 08:35:10 -0600 | [diff] [blame] | 417 | LOCAL_MODULE := libfusesideload |
Ethan Yonker | 1702eb4 | 2014-11-06 09:16:16 -0600 | [diff] [blame] | 418 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/libmincrypt/includes |
Ethan Yonker | 560e65f | 2014-11-17 11:37:00 -0600 | [diff] [blame] | 419 | LOCAL_SHARED_LIBRARIES := libcutils libc libmincrypttwrp |
Ethan Yonker | a167416 | 2014-11-06 08:35:10 -0600 | [diff] [blame] | 420 | include $(BUILD_SHARED_LIBRARY) |
| 421 | |
Dees_Troy | c04dcf7 | 2012-10-02 10:46:37 -0400 | [diff] [blame] | 422 | include $(CLEAR_VARS) |
Doug Zongker | daefc1d | 2011-10-31 09:34:15 -0700 | [diff] [blame] | 423 | LOCAL_MODULE := verifier_test |
Doug Zongker | daefc1d | 2011-10-31 09:34:15 -0700 | [diff] [blame] | 424 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
Doug Zongker | daefc1d | 2011-10-31 09:34:15 -0700 | [diff] [blame] | 425 | LOCAL_MODULE_TAGS := tests |
Ethan Yonker | a167416 | 2014-11-06 08:35:10 -0600 | [diff] [blame] | 426 | |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 427 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/libmincrypt/includes |
Ethan Yonker | a167416 | 2014-11-06 08:35:10 -0600 | [diff] [blame] | 428 | |
Doug Zongker | 9e805d6 | 2013-09-04 13:44:38 -0700 | [diff] [blame] | 429 | LOCAL_CFLAGS += -DNO_RECOVERY_MOUNT |
Doug Zongker | 0d32f25 | 2014-02-13 15:07:56 -0800 | [diff] [blame] | 430 | LOCAL_CFLAGS += -Wno-unused-parameter |
Ethan Yonker | a167416 | 2014-11-06 08:35:10 -0600 | [diff] [blame] | 431 | |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 432 | LOCAL_SRC_FILES := \ |
| 433 | verifier_test.cpp \ |
Kenny Root | 7a4adb5 | 2013-10-09 10:14:35 -0700 | [diff] [blame] | 434 | asn1_decoder.cpp \ |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 435 | verifier.cpp \ |
| 436 | ui.cpp |
| 437 | LOCAL_STATIC_LIBRARIES := \ |
Dees Troy | d63c764 | 2013-11-03 13:03:55 +0000 | [diff] [blame] | 438 | libmincrypttwrp \ |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 439 | libminui \ |
Doug Zongker | 99916f0 | 2014-01-13 14:16:58 -0800 | [diff] [blame] | 440 | libminzip \ |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 441 | libcutils \ |
| 442 | libstdc++ \ |
| 443 | libc |
Doug Zongker | daefc1d | 2011-10-31 09:34:15 -0700 | [diff] [blame] | 444 | include $(BUILD_EXECUTABLE) |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 445 | |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 446 | include $(CLEAR_VARS) |
| 447 | |
| 448 | LOCAL_MODULE := libaosprecovery |
Matt Mower | db22044 | 2014-10-31 22:43:59 -0500 | [diff] [blame] | 449 | LOCAL_MODULE_TAGS := eng optional |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 450 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/libmincrypt/includes |
Ethan Yonker | 4b94cfd | 2014-12-11 10:00:45 -0600 | [diff] [blame] | 451 | LOCAL_SRC_FILES := adb_install.cpp asn1_decoder.cpp bootloader.cpp mtdutils/mtdutils.c legacy_property_service.c verifier.cpp set_metadata.c |
| 452 | LOCAL_SHARED_LIBRARIES += libc liblog libcutils libmtdutils libfusesideload libmincrypttwrp libselinux |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 453 | |
Matt Mower | fb60a94 | 2014-07-08 22:25:38 -0500 | [diff] [blame] | 454 | ifneq ($(BOARD_RECOVERY_BLDRMSG_OFFSET),) |
| 455 | LOCAL_CFLAGS += -DBOARD_RECOVERY_BLDRMSG_OFFSET=$(BOARD_RECOVERY_BLDRMSG_OFFSET) |
| 456 | endif |
| 457 | |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 458 | include $(BUILD_SHARED_LIBRARY) |
| 459 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 460 | commands_recovery_local_path := $(LOCAL_PATH) |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 461 | include $(LOCAL_PATH)/minui/Android.mk \ |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 462 | $(LOCAL_PATH)/minadbd/Android.mk \ |
Kenny Root | 7a4adb5 | 2013-10-09 10:14:35 -0700 | [diff] [blame] | 463 | $(LOCAL_PATH)/tests/Android.mk \ |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 464 | $(LOCAL_PATH)/tools/Android.mk \ |
| 465 | $(LOCAL_PATH)/edify/Android.mk \ |
Doug Zongker | 76adfc5 | 2014-01-13 10:04:25 -0800 | [diff] [blame] | 466 | $(LOCAL_PATH)/uncrypt/Android.mk \ |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 467 | $(LOCAL_PATH)/updater/Android.mk \ |
| 468 | $(LOCAL_PATH)/applypatch/Android.mk |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 469 | |
| 470 | #includes for TWRP |
Dees_Troy | 930bf01 | 2013-08-10 22:19:03 +0000 | [diff] [blame] | 471 | include $(commands_recovery_local_path)/injecttwrp/Android.mk \ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 472 | $(commands_recovery_local_path)/htcdumlock/Android.mk \ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 473 | $(commands_recovery_local_path)/gui/Android.mk \ |
| 474 | $(commands_recovery_local_path)/mmcutils/Android.mk \ |
| 475 | $(commands_recovery_local_path)/bmlutils/Android.mk \ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 476 | $(commands_recovery_local_path)/prebuilt/Android.mk \ |
| 477 | $(commands_recovery_local_path)/mtdutils/Android.mk \ |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 478 | $(commands_recovery_local_path)/flashutils/Android.mk \ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 479 | $(commands_recovery_local_path)/pigz/Android.mk \ |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 480 | $(commands_recovery_local_path)/libtar/Android.mk \ |
Dees_Troy | b9d88ac | 2012-09-14 14:34:19 -0400 | [diff] [blame] | 481 | $(commands_recovery_local_path)/libcrecovery/Android.mk \ |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 482 | $(commands_recovery_local_path)/libblkid/Android.mk \ |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 483 | $(commands_recovery_local_path)/minuitwrp/Android.mk \ |
Dees Troy | 8d66f8b | 2013-10-08 14:04:55 +0000 | [diff] [blame] | 484 | $(commands_recovery_local_path)/openaes/Android.mk \ |
Dees Troy | bb4c0cb | 2013-11-02 20:25:14 +0000 | [diff] [blame] | 485 | $(commands_recovery_local_path)/toolbox/Android.mk \ |
Ethan Yonker | 5038197 | 2014-02-11 11:44:06 -0600 | [diff] [blame] | 486 | $(commands_recovery_local_path)/libmincrypt/Android.mk \ |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 487 | $(commands_recovery_local_path)/twrpTarMain/Android.mk \ |
Ethan Yonker | 738be7a | 2014-12-10 11:40:43 -0600 | [diff] [blame] | 488 | $(commands_recovery_local_path)/mtp/Android.mk \ |
Ethan Yonker | 2d11d49 | 2014-12-12 11:43:21 -0600 | [diff] [blame] | 489 | $(commands_recovery_local_path)/minzip/Android.mk \ |
| 490 | $(commands_recovery_local_path)/dosfstools/Android.mk |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 491 | |
Ethan Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 492 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 493 | include $(commands_recovery_local_path)/crypto/lollipop/Android.mk |
Ethan Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 494 | include $(commands_recovery_local_path)/crypto/scrypt/Android.mk |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 495 | endif |
Vojtech Bocek | 7cc278b | 2013-02-24 01:40:19 +0100 | [diff] [blame] | 496 | ifeq ($(BUILD_ID), GINGERBREAD) |
| 497 | TW_NO_EXFAT := true |
| 498 | endif |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 499 | ifneq ($(TW_NO_EXFAT), true) |
Captain Throwback | 6a1acf2 | 2014-09-18 12:46:35 -0400 | [diff] [blame] | 500 | include $(commands_recovery_local_path)/exfat/mkfs/Android.mk \ |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 501 | $(commands_recovery_local_path)/fuse/Android.mk \ |
| 502 | $(commands_recovery_local_path)/exfat/libexfat/Android.mk |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 503 | endif |
Captain Throwback | 6a1acf2 | 2014-09-18 12:46:35 -0400 | [diff] [blame] | 504 | ifneq ($(TW_NO_EXFAT_FUSE), true) |
| 505 | include $(commands_recovery_local_path)/exfat/exfat-fuse/Android.mk |
| 506 | endif |
Ethan Yonker | 03a42f6 | 2014-08-08 11:03:51 -0500 | [diff] [blame] | 507 | ifneq ($(TW_OEM_BUILD),true) |
| 508 | include $(commands_recovery_local_path)/orscmd/Android.mk |
| 509 | endif |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 510 | |
Talustus | 3019a91 | 2013-04-06 11:50:07 +0200 | [diff] [blame] | 511 | # FB2PNG |
| 512 | ifeq ($(TW_INCLUDE_FB2PNG), true) |
| 513 | include $(commands_recovery_local_path)/fb2png/Android.mk |
| 514 | endif |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 515 | |
| 516 | commands_recovery_local_path := |
| 517 | |
| 518 | endif |