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