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