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) |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 16 | commands_TWRP_local_path := $(LOCAL_PATH) |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 17 | |
Ethan Yonker | 66bcd49 | 2018-12-20 09:03:17 -0600 | [diff] [blame] | 18 | ifneq ($(project-path-for),) |
Matt Mower | 66766fe | 2014-10-06 18:03:39 -0500 | [diff] [blame] | 19 | ifeq ($(LOCAL_PATH),$(call project-path-for,recovery)) |
| 20 | PROJECT_PATH_AGREES := true |
Andrea Mennillo | f591c87 | 2015-11-03 20:58:11 +0100 | [diff] [blame] | 21 | BOARD_SEPOLICY_DIRS += $(call project-path-for,recovery)/sepolicy |
Matt Mower | 66766fe | 2014-10-06 18:03:39 -0500 | [diff] [blame] | 22 | endif |
| 23 | else |
| 24 | ifeq ($(LOCAL_PATH),bootable/recovery) |
| 25 | PROJECT_PATH_AGREES := true |
Ethan Yonker | 11309e9 | 2015-07-01 07:58:56 -0500 | [diff] [blame] | 26 | BOARD_SEPOLICY_DIRS += bootable/recovery/sepolicy |
Ethan Yonker | f0a7e59 | 2019-04-04 10:06:41 -0500 | [diff] [blame] | 27 | else |
| 28 | ifeq ($(LOCAL_PATH),bootable/recovery-twrp) |
| 29 | ifeq ($(RECOVERY_VARIANT),twrp) |
| 30 | PROJECT_PATH_AGREES := true |
| 31 | BOARD_SEPOLICY_DIRS += bootable/recovery-twrp/sepolicy |
| 32 | endif |
| 33 | endif |
Matt Mower | 66766fe | 2014-10-06 18:03:39 -0500 | [diff] [blame] | 34 | endif |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 35 | endif |
| 36 | |
Matt Mower | 66766fe | 2014-10-06 18:03:39 -0500 | [diff] [blame] | 37 | ifeq ($(PROJECT_PATH_AGREES),true) |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 38 | |
Michael Bestas | 0cc2376 | 2018-07-13 21:37:56 +0300 | [diff] [blame] | 39 | ifeq ($(CM_PLATFORM_SDK_VERSION),) |
| 40 | CM_PLATFORM_SDK_VERSION := 0 |
| 41 | endif |
| 42 | |
Motorhead1991 | 75b6f66 | 2014-06-12 15:58:33 -0700 | [diff] [blame] | 43 | include $(CLEAR_VARS) |
| 44 | |
Matt Mower | 1777cdc | 2015-09-26 15:56:56 -0500 | [diff] [blame] | 45 | TWRES_PATH := /twres/ |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 46 | TWHTCD_PATH := $(TWRES_PATH)htcd/ |
| 47 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 48 | TARGET_RECOVERY_GUI := true |
Joe Onorato | 6396e70 | 2012-05-31 23:21:46 -0700 | [diff] [blame] | 49 | |
bigbiff | ee7b7ff | 2020-03-23 15:08:27 -0400 | [diff] [blame] | 50 | LOCAL_STATIC_LIBRARIES := |
| 51 | LOCAL_SHARED_LIBRARIES := |
| 52 | |
bigbiff bigbiff | 584b977 | 2016-12-08 21:21:17 -0500 | [diff] [blame] | 53 | ifneq ($(TW_DEVICE_VERSION),) |
| 54 | LOCAL_CFLAGS += -DTW_DEVICE_VERSION='"-$(TW_DEVICE_VERSION)"' |
| 55 | else |
| 56 | LOCAL_CFLAGS += -DTW_DEVICE_VERSION='"-0"' |
| 57 | endif |
dianlujitao | 4879b37 | 2018-12-03 18:45:47 +0800 | [diff] [blame] | 58 | LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) |
bigbiff bigbiff | 584b977 | 2016-12-08 21:21:17 -0500 | [diff] [blame] | 59 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 60 | LOCAL_SRC_FILES := \ |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 61 | twrp.cpp \ |
Ethan Yonker | b5fab76 | 2016-01-28 14:03:33 -0600 | [diff] [blame] | 62 | fixContexts.cpp \ |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 63 | twrpTar.cpp \ |
Ethan Yonker | 3fdcda4 | 2016-11-30 12:29:37 -0600 | [diff] [blame] | 64 | exclude.cpp \ |
Ethan Yonker | 1b7a31b | 2014-07-03 15:09:22 -0500 | [diff] [blame] | 65 | find_file.cpp \ |
bigbiff bigbiff | 56cf564 | 2016-08-19 17:43:45 -0400 | [diff] [blame] | 66 | infomanager.cpp \ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 67 | data.cpp \ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 68 | partition.cpp \ |
| 69 | partitionmanager.cpp \ |
Ethan Yonker | 472f506 | 2016-02-25 13:47:30 -0600 | [diff] [blame] | 70 | progresstracking.cpp \ |
Dees_Troy | 32c8eb8 | 2012-09-11 15:28:06 -0400 | [diff] [blame] | 71 | twinstall.cpp \ |
Dees_Troy | 812660f | 2012-09-20 09:55:17 -0400 | [diff] [blame] | 72 | twrp-functions.cpp \ |
bigbiff bigbiff | 56cf564 | 2016-08-19 17:43:45 -0400 | [diff] [blame] | 73 | twrpDigestDriver.cpp \ |
Dees_Troy | e34c133 | 2013-02-06 19:13:00 +0000 | [diff] [blame] | 74 | openrecoveryscript.cpp \ |
bigbiff bigbiff | 19fb79c | 2016-09-05 21:04:51 -0400 | [diff] [blame] | 75 | tarWrite.c \ |
bigbiff | 32cbabe | 2020-04-12 19:16:19 -0400 | [diff] [blame] | 76 | twrpAdbBuFifo.cpp \ |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 77 | twrpApex.cpp \ |
| 78 | twrpRepacker.cpp |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 79 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 80 | LOCAL_STATIC_LIBRARIES += libavb |
| 81 | LOCAL_SHARED_LIBRARIES += libfs_mgr libinit |
| 82 | ifeq ($(TW_INCLUDE_CRYPTO),true) |
| 83 | LOCAL_CFLAGS += -DUSE_FSCRYPT -Wno-macro-redefined |
| 84 | LOCAL_C_INCLUDES += bootable/recovery/crypto/fscrypt \ |
| 85 | bootable/recovery/crypto |
bigbiff | ee7b7ff | 2020-03-23 15:08:27 -0400 | [diff] [blame] | 86 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 87 | LOCAL_C_INCLUDES += \ |
| 88 | system/core/fs_mgr/libfs_avb/include/ \ |
| 89 | system/core/fs_mgr/include_fstab/ \ |
| 90 | system/core/fs_mgr/include/ \ |
| 91 | system/core/fs_mgr/libdm/include/ \ |
| 92 | system/core/fs_mgr/liblp/include/ \ |
| 93 | system/gsid/include/ \ |
| 94 | system/core/init/ \ |
| 95 | system/extras/ext4_utils/include |
bigbiff | ee7b7ff | 2020-03-23 15:08:27 -0400 | [diff] [blame] | 96 | |
Dees_Troy | a58bead | 2012-09-27 09:49:29 -0400 | [diff] [blame] | 97 | ifneq ($(TARGET_RECOVERY_REBOOT_SRC),) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 98 | LOCAL_SRC_FILES += $(TARGET_RECOVERY_REBOOT_SRC) |
| 99 | endif |
| 100 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 101 | LOCAL_MODULE := recovery |
| 102 | |
Doug Zongker | e08991e | 2010-02-02 13:09:52 -0800 | [diff] [blame] | 103 | RECOVERY_API_VERSION := 3 |
Ken Sumrall | f35d1ce | 2013-02-13 12:59:35 -0800 | [diff] [blame] | 104 | RECOVERY_FSTAB_VERSION := 2 |
Doug Zongker | fb2e3af | 2009-06-17 17:29:40 -0700 | [diff] [blame] | 105 | LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 106 | LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-function |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 107 | LOCAL_CLANG := true |
Doug Zongker | fb2e3af | 2009-06-17 17:29:40 -0700 | [diff] [blame] | 108 | |
Dan Albert | 1ddd350 | 2015-02-18 15:58:15 -0800 | [diff] [blame] | 109 | LOCAL_C_INCLUDES += \ |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 110 | bionic \ |
Dan Albert | 1ddd350 | 2015-02-18 15:58:15 -0800 | [diff] [blame] | 111 | system/vold \ |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 112 | system/extras \ |
Dan Albert | 1ddd350 | 2015-02-18 15:58:15 -0800 | [diff] [blame] | 113 | system/core/adb \ |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 114 | system/core/libsparse \ |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 115 | external/zlib \ |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 116 | system/core/libpixelflinger/include \ |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 117 | system/core/libziparchive/include \ |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 118 | external/freetype/include \ |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 119 | external/boringssl/include \ |
| 120 | external/libcxx/include \ |
| 121 | external/libselinux/include \ |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 122 | $(LOCAL_PATH)/bootloader_message_twrp/include \ |
| 123 | $(LOCAL_PATH)/recovery_ui/include \ |
| 124 | $(LOCAL_PATH)/otautil/include \ |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 125 | $(LOCAL_PATH)/install/include \ |
| 126 | $(LOCAL_PATH)/fuse_sideload/include \ |
| 127 | $(LOCAL_PATH)/install/include \ |
| 128 | $(LOCAL_PATH)/verifier28/ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 129 | |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 130 | LOCAL_STATIC_LIBRARIES += libguitwrp |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 131 | LOCAL_SHARED_LIBRARIES += libz libc libcutils libstdc++ libtar libblkid libminuitwrp libminadbd libmtdutils libtwadbbu libbootloader_message_twrp |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 132 | LOCAL_SHARED_LIBRARIES += libcrecovery libtwadbbu libtwrpdigest libc++ libaosprecovery libinit libcrypto libbase libziparchive libselinux |
| 133 | LOCAL_CFLAGS += -DUSE_28_VERIFIER |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 134 | |
Dees_Troy | 4546fe7 | 2013-01-10 14:33:27 +0000 | [diff] [blame] | 135 | ifneq ($(wildcard system/core/libsparse/Android.mk),) |
| 136 | LOCAL_SHARED_LIBRARIES += libsparse |
| 137 | endif |
| 138 | |
Ethan Yonker | 7af51ce | 2014-04-04 13:33:30 -0500 | [diff] [blame] | 139 | ifeq ($(TW_OEM_BUILD),true) |
| 140 | LOCAL_CFLAGS += -DTW_OEM_BUILD |
| 141 | BOARD_HAS_NO_REAL_SDCARD := true |
| 142 | TW_USE_TOOLBOX := true |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 143 | TW_EXCLUDE_MTP := true |
Ethan Yonker | 7af51ce | 2014-04-04 13:33:30 -0500 | [diff] [blame] | 144 | endif |
Yabin Cui | 99281df | 2016-02-17 12:21:52 -0800 | [diff] [blame] | 145 | |
Elliott Hughes | 01fcbe1 | 2016-05-23 17:43:41 -0700 | [diff] [blame] | 146 | ifeq ($(AB_OTA_UPDATER),true) |
| 147 | LOCAL_CFLAGS += -DAB_OTA_UPDATER=1 |
bigbiff bigbiff | c630cee | 2019-01-03 20:14:06 -0500 | [diff] [blame] | 148 | LOCAL_SHARED_LIBRARIES += libhardware android.hardware.boot@1.0 |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 149 | TWRP_REQUIRED_MODULES += libhardware |
Elliott Hughes | 01fcbe1 | 2016-05-23 17:43:41 -0700 | [diff] [blame] | 150 | endif |
| 151 | |
bigbiff | ee7b7ff | 2020-03-23 15:08:27 -0400 | [diff] [blame] | 152 | ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true) |
| 153 | LOCAL_CFLAGS += -DPRODUCT_USE_DYNAMIC_PARTITIONS=1 |
| 154 | endif |
| 155 | |
bigbiff | 32cbabe | 2020-04-12 19:16:19 -0400 | [diff] [blame] | 156 | ifeq ($(TW_NO_BIND_SYSTEM),true) |
| 157 | LOCAL_CFLAGS += -DTW_NO_BIND_SYSTEM |
| 158 | endif |
| 159 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 160 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 161 | |
Ethan Yonker | 9338282 | 2018-11-01 15:25:31 -0500 | [diff] [blame] | 162 | ifeq ($(TARGET_RECOVERY_TWRP_LIB),) |
| 163 | LOCAL_SRC_FILES += BasePartition.cpp |
| 164 | else |
| 165 | LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_TWRP_LIB) |
| 166 | endif |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 167 | |
Doug Zongker | cc8cd3f | 2010-09-20 12:16:13 -0700 | [diff] [blame] | 168 | LOCAL_C_INCLUDES += system/extras/ext4_utils |
| 169 | |
that | 0e2140e | 2016-08-10 21:04:26 +0200 | [diff] [blame] | 170 | tw_git_revision := $(shell git -C $(LOCAL_PATH) rev-parse --short=8 HEAD 2>/dev/null) |
| 171 | ifeq ($(shell git -C $(LOCAL_PATH) diff --quiet; echo $$?),1) |
| 172 | tw_git_revision := $(tw_git_revision)-dirty |
| 173 | endif |
| 174 | LOCAL_CFLAGS += -DTW_GIT_REVISION='"$(tw_git_revision)"' |
| 175 | |
mauronofrio | babc15e | 2020-03-16 14:59:39 +0000 | [diff] [blame] | 176 | ifeq ($(TW_FORCE_USE_BUSYBOX), true) |
| 177 | TW_USE_TOOLBOX := false |
| 178 | else |
| 179 | TW_USE_TOOLBOX := true |
| 180 | endif |
bigbiff bigbiff | af32bb9 | 2018-12-18 18:39:53 -0500 | [diff] [blame] | 181 | ifeq ($(TW_EXCLUDE_MTP),) |
| 182 | LOCAL_SHARED_LIBRARIES += libtwrpmtp-ffs |
| 183 | endif |
bigbiff bigbiff | af32bb9 | 2018-12-18 18:39:53 -0500 | [diff] [blame] | 184 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 185 | #TWRP Build Flags |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 186 | ifeq ($(TW_EXCLUDE_MTP),) |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 187 | LOCAL_CFLAGS += -DTW_HAS_MTP |
| 188 | endif |
Ricardo Gomez | c9ecd44 | 2013-07-05 16:13:52 -0700 | [diff] [blame] | 189 | ifneq ($(TW_NO_SCREEN_TIMEOUT),) |
| 190 | LOCAL_CFLAGS += -DTW_NO_SCREEN_TIMEOUT |
| 191 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 192 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD), true) |
| 193 | LOCAL_CFLAGS += -DBOARD_HAS_NO_REAL_SDCARD |
| 194 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 195 | ifneq ($(RECOVERY_SDCARD_ON_DATA),) |
| 196 | LOCAL_CFLAGS += -DRECOVERY_SDCARD_ON_DATA |
| 197 | endif |
| 198 | ifneq ($(TW_INCLUDE_DUMLOCK),) |
| 199 | LOCAL_CFLAGS += -DTW_INCLUDE_DUMLOCK |
| 200 | endif |
| 201 | ifneq ($(TW_INTERNAL_STORAGE_PATH),) |
| 202 | LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_PATH=$(TW_INTERNAL_STORAGE_PATH) |
| 203 | endif |
| 204 | ifneq ($(TW_INTERNAL_STORAGE_MOUNT_POINT),) |
| 205 | LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_MOUNT_POINT=$(TW_INTERNAL_STORAGE_MOUNT_POINT) |
| 206 | endif |
| 207 | ifneq ($(TW_EXTERNAL_STORAGE_PATH),) |
| 208 | LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_PATH=$(TW_EXTERNAL_STORAGE_PATH) |
| 209 | endif |
| 210 | ifneq ($(TW_EXTERNAL_STORAGE_MOUNT_POINT),) |
| 211 | LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_MOUNT_POINT=$(TW_EXTERNAL_STORAGE_MOUNT_POINT) |
| 212 | endif |
ChampionSwimmer | cf33e4d | 2013-02-03 13:59:22 +0530 | [diff] [blame] | 213 | ifeq ($(TW_HAS_NO_BOOT_PARTITION), true) |
| 214 | LOCAL_CFLAGS += -DTW_HAS_NO_BOOT_PARTITION |
| 215 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 216 | ifeq ($(TW_NO_REBOOT_BOOTLOADER), true) |
| 217 | LOCAL_CFLAGS += -DTW_NO_REBOOT_BOOTLOADER |
| 218 | endif |
| 219 | ifeq ($(TW_NO_REBOOT_RECOVERY), true) |
| 220 | LOCAL_CFLAGS += -DTW_NO_REBOOT_RECOVERY |
| 221 | endif |
| 222 | ifeq ($(TW_NO_BATT_PERCENT), true) |
| 223 | LOCAL_CFLAGS += -DTW_NO_BATT_PERCENT |
| 224 | endif |
Jenkins | 1710bf2 | 2014-10-02 20:22:21 -0400 | [diff] [blame] | 225 | ifeq ($(TW_NO_CPU_TEMP), true) |
| 226 | LOCAL_CFLAGS += -DTW_NO_CPU_TEMP |
| 227 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 228 | ifneq ($(TW_CUSTOM_POWER_BUTTON),) |
| 229 | LOCAL_CFLAGS += -DTW_CUSTOM_POWER_BUTTON=$(TW_CUSTOM_POWER_BUTTON) |
| 230 | endif |
| 231 | ifeq ($(TW_ALWAYS_RMRF), true) |
| 232 | LOCAL_CFLAGS += -DTW_ALWAYS_RMRF |
| 233 | endif |
| 234 | ifeq ($(TW_NEVER_UNMOUNT_SYSTEM), true) |
| 235 | LOCAL_CFLAGS += -DTW_NEVER_UNMOUNT_SYSTEM |
| 236 | endif |
| 237 | ifeq ($(TW_NO_USB_STORAGE), true) |
| 238 | LOCAL_CFLAGS += -DTW_NO_USB_STORAGE |
| 239 | endif |
| 240 | ifeq ($(TW_INCLUDE_INJECTTWRP), true) |
| 241 | LOCAL_CFLAGS += -DTW_INCLUDE_INJECTTWRP |
| 242 | endif |
| 243 | ifeq ($(TW_INCLUDE_BLOBPACK), true) |
| 244 | LOCAL_CFLAGS += -DTW_INCLUDE_BLOBPACK |
| 245 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 246 | ifneq ($(TARGET_USE_CUSTOM_LUN_FILE_PATH),) |
| 247 | LOCAL_CFLAGS += -DCUSTOM_LUN_FILE=\"$(TARGET_USE_CUSTOM_LUN_FILE_PATH)\" |
| 248 | endif |
| 249 | ifneq ($(BOARD_UMS_LUNFILE),) |
| 250 | LOCAL_CFLAGS += -DCUSTOM_LUN_FILE=\"$(BOARD_UMS_LUNFILE)\" |
| 251 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 252 | ifeq ($(TW_HAS_DOWNLOAD_MODE), true) |
| 253 | LOCAL_CFLAGS += -DTW_HAS_DOWNLOAD_MODE |
| 254 | endif |
mauronofrio | e9a49ef | 2018-10-03 13:38:16 +0200 | [diff] [blame] | 255 | ifeq ($(TW_HAS_EDL_MODE), true) |
| 256 | LOCAL_CFLAGS += -DTW_HAS_EDL_MODE |
| 257 | endif |
bigbiff bigbiff | 8794036 | 2013-03-09 09:58:50 -0500 | [diff] [blame] | 258 | ifeq ($(TW_NO_SCREEN_BLANK), true) |
| 259 | LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK |
| 260 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 261 | ifeq ($(TW_SDEXT_NO_EXT4), true) |
| 262 | LOCAL_CFLAGS += -DTW_SDEXT_NO_EXT4 |
| 263 | endif |
Dees_Troy | fdf5fcc | 2012-09-11 10:27:01 -0400 | [diff] [blame] | 264 | ifeq ($(TW_FORCE_CPUINFO_FOR_DEVICE_ID), true) |
| 265 | LOCAL_CFLAGS += -DTW_FORCE_CPUINFO_FOR_DEVICE_ID |
| 266 | endif |
Dees_Troy | 3f5c4e8 | 2013-02-01 15:16:59 +0000 | [diff] [blame] | 267 | ifeq ($(TW_NO_EXFAT_FUSE), true) |
| 268 | LOCAL_CFLAGS += -DTW_NO_EXFAT_FUSE |
| 269 | endif |
bigbiff bigbiff | 3ed778a | 2019-03-12 19:28:31 -0400 | [diff] [blame] | 270 | ifeq ($(TW_NO_HAPTICS), true) |
| 271 | LOCAL_CFLAGS += -DTW_NO_HAPTICS |
| 272 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 273 | ifeq ($(TW_INCLUDE_JB_CRYPTO), true) |
Ethan Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 274 | TW_INCLUDE_CRYPTO := true |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 275 | endif |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 276 | ifeq ($(TW_INCLUDE_L_CRYPTO), true) |
Ethan Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 277 | TW_INCLUDE_CRYPTO := true |
| 278 | endif |
| 279 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 280 | LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO |
Ethan Yonker | 98661c1 | 2018-10-17 08:39:28 -0500 | [diff] [blame] | 281 | LOCAL_SHARED_LIBRARIES += libcryptfsfde libgpt_twrp |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 282 | LOCAL_C_INCLUDES += external/boringssl/src/include |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 283 | TW_INCLUDE_CRYPTO_FBE := true |
| 284 | LOCAL_CFLAGS += -DTW_INCLUDE_FBE |
| 285 | LOCAL_SHARED_LIBRARIES += libtwrpfscrypt android.frameworks.stats@1.0 android.hardware.authsecret@1.0 \ |
| 286 | android.hardware.oemlock@1.0 |
| 287 | LOCAL_CFLAGS += -DTW_INCLUDE_FBE_METADATA_DECRYPT |
nkk71 | 71c6c50 | 2017-01-05 23:55:05 +0200 | [diff] [blame] | 288 | ifneq ($(TW_CRYPTO_USE_SYSTEM_VOLD),) |
| 289 | ifneq ($(TW_CRYPTO_USE_SYSTEM_VOLD),false) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 290 | TW_INCLUDE_LIBRESETPROP := true |
nkk71 | 71c6c50 | 2017-01-05 23:55:05 +0200 | [diff] [blame] | 291 | LOCAL_CFLAGS += -DTW_CRYPTO_USE_SYSTEM_VOLD |
| 292 | LOCAL_STATIC_LIBRARIES += libvolddecrypt |
| 293 | endif |
| 294 | endif |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 295 | endif |
D. Andrei Măceș | b29a5e2 | 2016-12-22 06:19:44 -0500 | [diff] [blame] | 296 | WITH_CRYPTO_UTILS := \ |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 297 | $(if $(wildcard system/core/libcrypto_utils/android_pubkey.c),true) |
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 |
lambdadroid | fc0b16d | 2017-08-04 17:16:53 +0200 | [diff] [blame] | 301 | ifeq ($(TW_USE_SERIALNO_PROPERTY_FOR_DEVICE_ID), true) |
| 302 | LOCAL_CFLAGS += -DTW_USE_SERIALNO_PROPERTY_FOR_DEVICE_ID |
| 303 | endif |
Dees_Troy | 2f9117a | 2013-02-17 19:52:09 -0600 | [diff] [blame] | 304 | ifneq ($(TW_BRIGHTNESS_PATH),) |
| 305 | LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=$(TW_BRIGHTNESS_PATH) |
| 306 | endif |
xNUTx | e85f02d | 2014-07-18 01:30:58 +0200 | [diff] [blame] | 307 | ifneq ($(TW_SECONDARY_BRIGHTNESS_PATH),) |
| 308 | LOCAL_CFLAGS += -DTW_SECONDARY_BRIGHTNESS_PATH=$(TW_SECONDARY_BRIGHTNESS_PATH) |
| 309 | endif |
Dees_Troy | 2f9117a | 2013-02-17 19:52:09 -0600 | [diff] [blame] | 310 | ifneq ($(TW_MAX_BRIGHTNESS),) |
| 311 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS) |
| 312 | endif |
Greg Wallace | 36ade45 | 2015-11-08 13:54:25 -0500 | [diff] [blame] | 313 | ifneq ($(TW_DEFAULT_BRIGHTNESS),) |
| 314 | LOCAL_CFLAGS += -DTW_DEFAULT_BRIGHTNESS=$(TW_DEFAULT_BRIGHTNESS) |
| 315 | endif |
Dees_Troy | f33b490 | 2013-03-01 00:51:39 +0000 | [diff] [blame] | 316 | ifneq ($(TW_CUSTOM_BATTERY_PATH),) |
| 317 | LOCAL_CFLAGS += -DTW_CUSTOM_BATTERY_PATH=$(TW_CUSTOM_BATTERY_PATH) |
| 318 | endif |
Jenkins | 1710bf2 | 2014-10-02 20:22:21 -0400 | [diff] [blame] | 319 | ifneq ($(TW_CUSTOM_CPU_TEMP_PATH),) |
| 320 | LOCAL_CFLAGS += -DTW_CUSTOM_CPU_TEMP_PATH=$(TW_CUSTOM_CPU_TEMP_PATH) |
| 321 | endif |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 322 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
| 323 | LOCAL_SHARED_LIBRARIES += libopenaes |
| 324 | else |
| 325 | LOCAL_CFLAGS += -DTW_EXCLUDE_ENCRYPTED_BACKUPS |
| 326 | endif |
Vojtech Bocek | d0e38bc | 2014-02-03 23:36:57 +0100 | [diff] [blame] | 327 | ifeq ($(TARGET_RECOVERY_QCOM_RTC_FIX),) |
Michael Bestas | 4a18558 | 2017-04-28 15:45:26 +0300 | [diff] [blame] | 328 | ifneq ($(filter msm8226 msm8x26 msm8610 msm8974 msm8x74 msm8084 msm8x84 apq8084 msm8909 msm8916 msm8992 msm8994 msm8952 msm8996 msm8937 msm8953 msm8998,$(TARGET_BOARD_PLATFORM)),) |
| 329 | LOCAL_CFLAGS += -DQCOM_RTC_FIX |
| 330 | else ifeq ($(TARGET_CPU_VARIANT),krait) |
Vojtech Bocek | d0e38bc | 2014-02-03 23:36:57 +0100 | [diff] [blame] | 331 | LOCAL_CFLAGS += -DQCOM_RTC_FIX |
| 332 | endif |
| 333 | else ifeq ($(TARGET_RECOVERY_QCOM_RTC_FIX),true) |
| 334 | LOCAL_CFLAGS += -DQCOM_RTC_FIX |
| 335 | endif |
Matt Mower | 6883d73 | 2014-03-20 17:28:13 -0500 | [diff] [blame] | 336 | ifneq ($(TW_NO_LEGACY_PROPS),) |
| 337 | LOCAL_CFLAGS += -DTW_NO_LEGACY_PROPS |
| 338 | endif |
Dees Troy | 4159aed | 2014-02-28 17:24:43 +0000 | [diff] [blame] | 339 | ifneq ($(wildcard bionic/libc/include/sys/capability.h),) |
| 340 | LOCAL_CFLAGS += -DHAVE_CAPABILITIES |
| 341 | endif |
Matt Mower | ec009e8 | 2015-01-30 13:00:49 -0600 | [diff] [blame] | 342 | ifneq ($(TARGET_RECOVERY_INITRC),) |
| 343 | TW_EXCLUDE_DEFAULT_USB_INIT := true |
| 344 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 345 | LOCAL_CFLAGS += -DTW_USE_NEW_MINADBD |
Ethan Yonker | 74db157 | 2015-10-28 12:44:49 -0500 | [diff] [blame] | 346 | ifneq ($(TW_DEFAULT_LANGUAGE),) |
| 347 | LOCAL_CFLAGS += -DTW_DEFAULT_LANGUAGE=$(TW_DEFAULT_LANGUAGE) |
| 348 | else |
| 349 | LOCAL_CFLAGS += -DTW_DEFAULT_LANGUAGE=en |
| 350 | endif |
Phoenix591 | e444d11 | 2018-02-03 07:23:54 +0000 | [diff] [blame] | 351 | ifneq ($(TW_CLOCK_OFFSET),) |
| 352 | LOCAL_CFLAGS += -DTW_CLOCK_OFFSET=$(TW_CLOCK_OFFSET) |
| 353 | endif |
Chaosmaster | 461e39f | 2020-02-07 01:48:13 +0100 | [diff] [blame] | 354 | ifneq ($(TW_OVERRIDE_SYSTEM_PROPS),) |
| 355 | TW_INCLUDE_LIBRESETPROP := true |
| 356 | LOCAL_CFLAGS += -DTW_OVERRIDE_SYSTEM_PROPS=$(TW_OVERRIDE_SYSTEM_PROPS) |
| 357 | endif |
| 358 | ifneq ($(TW_INCLUDE_LIBRESETPROP),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 359 | LOCAL_SHARED_LIBRARIES += libresetprop |
| 360 | LOCAL_C_INCLUDES += external/magisk-prebuilt/include |
| 361 | LOCAL_CFLAGS += -DTW_INCLUDE_LIBRESETPROP |
Chaosmaster | 461e39f | 2020-02-07 01:48:13 +0100 | [diff] [blame] | 362 | endif |
| 363 | |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 364 | TWRP_REQUIRED_MODULES += \ |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 365 | relink_libraries \ |
| 366 | relink_binaries \ |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 367 | twrp_ramdisk \ |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 368 | dump_image \ |
| 369 | erase_image \ |
| 370 | flash_image \ |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 371 | mke2fs.conf \ |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 372 | pigz \ |
| 373 | teamwin \ |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 374 | twrp \ |
Matt Mower | 18794c8 | 2015-11-11 16:22:45 -0600 | [diff] [blame] | 375 | fsck.fat \ |
| 376 | fatlabel \ |
| 377 | mkfs.fat \ |
HashBang | ed974bb | 2016-01-30 14:20:09 -0500 | [diff] [blame] | 378 | permissive.sh \ |
Ethan Yonker | f117962 | 2016-08-25 15:32:21 -0500 | [diff] [blame] | 379 | simg2img_twrp \ |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 380 | libbootloader_message_twrp \ |
| 381 | init.recovery.hlthchrg.rc \ |
bigbiff | 973167a | 2020-04-06 15:44:20 -0400 | [diff] [blame] | 382 | init.recovery.service.rc \ |
| 383 | init.recovery.ldconfig.rc \ |
Captain Throwback | ca2ba93 | 2020-10-14 12:45:52 -0400 | [diff] [blame] | 384 | hwservicemanager.rc \ |
| 385 | servicemanager.rc \ |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 386 | awk \ |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 387 | toybox \ |
| 388 | toolbox \ |
| 389 | mkshrc_twrp |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 390 | |
| 391 | ifneq ($(TW_INCLUDE_CRYPTO),) |
| 392 | TWRP_REQUIRED_MODULES += \ |
| 393 | plat_service_contexts \ |
| 394 | plat_hwservice_contexts \ |
| 395 | vendor_hwservice_contexts \ |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 396 | hwservicemanager \ |
| 397 | servicemanager \ |
| 398 | vndservicemanager \ |
| 399 | vold_prepare_subdirs \ |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 400 | task_recovery_profiles.json \ |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 401 | fscryptpolicyget |
| 402 | endif |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 403 | |
bigbiff | 416fe3a | 2020-03-28 13:46:48 -0400 | [diff] [blame] | 404 | ifneq ($(wildcard external/zip/Android.mk),) |
| 405 | TWRP_REQUIRED_MODULES += zip |
| 406 | endif |
| 407 | ifneq ($(wildcard external/unzip/Android.mk),) |
| 408 | TWRP_REQUIRED_MODULES += unzip |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 409 | endif |
Matt Mower | 8405761 | 2017-01-08 13:32:18 -0600 | [diff] [blame] | 410 | |
Matt Mower | 2017279 | 2014-11-14 10:54:03 -0600 | [diff] [blame] | 411 | ifneq ($(TW_NO_EXFAT), true) |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 412 | TWRP_REQUIRED_MODULES += mkexfatfs fsckexfat |
Ethan Yonker | 34741d9 | 2016-02-06 13:22:45 -0600 | [diff] [blame] | 413 | ifneq ($(TW_NO_EXFAT_FUSE), true) |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 414 | TWRP_REQUIRED_MODULES += exfat-fuse |
Ethan Yonker | 34741d9 | 2016-02-06 13:22:45 -0600 | [diff] [blame] | 415 | endif |
Matt Mower | 2017279 | 2014-11-14 10:54:03 -0600 | [diff] [blame] | 416 | endif |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 417 | ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 418 | TWRP_REQUIRED_MODULES += sgdisk |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 419 | endif |
| 420 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 421 | TWRP_REQUIRED_MODULES += openaes openaes_license |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 422 | endif |
| 423 | ifeq ($(TW_INCLUDE_DUMLOCK), true) |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 424 | TWRP_REQUIRED_MODULES += \ |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 425 | htcdumlock htcdumlocksys flash_imagesys dump_imagesys libbmlutils.so \ |
| 426 | libflashutils.so libmmcutils.so libmtdutils.so HTCDumlock.apk |
| 427 | endif |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 428 | ifeq ($(TW_INCLUDE_FB2PNG), true) |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 429 | TWRP_REQUIRED_MODULES += fb2png |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 430 | endif |
| 431 | ifneq ($(TW_OEM_BUILD),true) |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 432 | TWRP_REQUIRED_MODULES += orscmd |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 433 | endif |
| 434 | ifeq ($(BOARD_USES_BML_OVER_MTD),true) |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 435 | TWRP_REQUIRED_MODULES += bml_over_mtd |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 436 | endif |
| 437 | ifeq ($(TW_INCLUDE_INJECTTWRP), true) |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 438 | TWRP_REQUIRED_MODULES += injecttwrp |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 439 | endif |
Matt Mower | ec009e8 | 2015-01-30 13:00:49 -0600 | [diff] [blame] | 440 | ifneq ($(TW_EXCLUDE_DEFAULT_USB_INIT), true) |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 441 | TWRP_REQUIRED_MODULES += init.recovery.usb.rc |
Matt Mower | ec009e8 | 2015-01-30 13:00:49 -0600 | [diff] [blame] | 442 | endif |
Captain Throwback | 1f12775 | 2016-01-19 17:30:20 -0500 | [diff] [blame] | 443 | ifeq ($(TWRP_INCLUDE_LOGCAT), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 444 | TWRP_REQUIRED_MODULES += logcat event-log-tags |
Ethan Yonker | e5a288c | 2016-02-15 09:23:57 -0600 | [diff] [blame] | 445 | ifeq ($(TARGET_USES_LOGD), true) |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 446 | TWRP_REQUIRED_MODULES += logd libsysutils libnl init.recovery.logd.rc |
Ethan Yonker | e5a288c | 2016-02-15 09:23:57 -0600 | [diff] [blame] | 447 | endif |
Captain Throwback | 1f12775 | 2016-01-19 17:30:20 -0500 | [diff] [blame] | 448 | endif |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 449 | # Allow devices to specify device-specific recovery dependencies |
| 450 | ifneq ($(TARGET_RECOVERY_DEVICE_MODULES),) |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 451 | TWRP_REQUIRED_MODULES += $(TARGET_RECOVERY_DEVICE_MODULES) |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 452 | endif |
Dees Troy | 3454ade | 2015-01-20 19:21:04 +0000 | [diff] [blame] | 453 | LOCAL_CFLAGS += -DTWRES=\"$(TWRES_PATH)\" |
| 454 | LOCAL_CFLAGS += -DTWHTCD_PATH=\"$(TWHTCD_PATH)\" |
Ethan Yonker | b81d905 | 2015-07-09 13:20:53 -0500 | [diff] [blame] | 455 | ifeq ($(TW_INCLUDE_NTFS_3G),true) |
Ethan Yonker | abf1fb0 | 2019-04-24 16:09:07 -0500 | [diff] [blame] | 456 | TWRP_REQUIRED_MODULES += \ |
Greg Wallace | b39e6c6 | 2015-12-29 00:55:26 -0500 | [diff] [blame] | 457 | mount.ntfs \ |
| 458 | fsck.ntfs \ |
| 459 | mkfs.ntfs |
Greg Wallace | b39e6c6 | 2015-12-29 00:55:26 -0500 | [diff] [blame] | 460 | endif |
Matt Mower | 5829491 | 2015-12-10 11:54:28 -0600 | [diff] [blame] | 461 | ifeq ($(TARGET_USERIMAGES_USE_F2FS), true) |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 462 | TWRP_REQUIRED_MODULES += sload.f2fs \ |
| 463 | libfs_mgr \ |
| 464 | fs_mgr \ |
| 465 | libinit |
Ethan Yonker | 9338282 | 2018-11-01 15:25:31 -0500 | [diff] [blame] | 466 | endif |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 467 | |
| 468 | TWRP_REQUIRED_MODULES += file_contexts_text |
| 469 | |
| 470 | ifeq ($(BOARD_CACHEIMAGE_PARTITION_SIZE),) |
| 471 | TWRP_REQUIRED_MODULES += recovery-persist recovery-refresh |
Matt Mower | 5829491 | 2015-12-10 11:54:28 -0600 | [diff] [blame] | 472 | endif |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 473 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 474 | LOCAL_REQUIRED_MODULES += $(TWRP_REQUIRED_MODULES) |
Mark Salyzyn | 13aca59 | 2016-03-09 14:58:16 -0800 | [diff] [blame] | 475 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 476 | include $(BUILD_EXECUTABLE) |
| 477 | |
Matt Mower | d821c96 | 2017-02-15 12:36:18 -0600 | [diff] [blame] | 478 | # Symlink for file_contexts |
| 479 | include $(CLEAR_VARS) |
| 480 | |
Captain Throwback | 3184b2f | 2017-03-07 12:07:40 -0500 | [diff] [blame] | 481 | LOCAL_MODULE := file_contexts_text |
Matt Mower | d821c96 | 2017-02-15 12:36:18 -0600 | [diff] [blame] | 482 | LOCAL_MODULE_TAGS := optional |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 483 | LOCAL_REQUIRED_MODULES := file_contexts.bin |
| 484 | |
Matt Mower | d821c96 | 2017-02-15 12:36:18 -0600 | [diff] [blame] | 485 | LOCAL_POST_INSTALL_CMD := \ |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 486 | $(hide) cp -f $(PRODUCT_OUT)/obj/ETC/file_contexts.bin_intermediates/file_contexts.concat.tmp $(TARGET_RECOVERY_ROOT_OUT)/file_contexts |
Matt Mower | d821c96 | 2017-02-15 12:36:18 -0600 | [diff] [blame] | 487 | |
bigbiff | 416fe3a | 2020-03-28 13:46:48 -0400 | [diff] [blame] | 488 | include $(BUILD_PHONY_PACKAGE) |
Dees_Troy | c04dcf7 | 2012-10-02 10:46:37 -0400 | [diff] [blame] | 489 | |
Mark Salyzyn | 13aca59 | 2016-03-09 14:58:16 -0800 | [diff] [blame] | 490 | # recovery-persist (system partition dynamic executable run after /data mounts) |
| 491 | # =============================== |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 492 | include $(CLEAR_VARS) |
| 493 | LOCAL_SRC_FILES := \ |
| 494 | recovery-persist.cpp |
| 495 | LOCAL_MODULE := recovery-persist |
| 496 | LOCAL_SHARED_LIBRARIES := liblog libbase libmetricslogger |
| 497 | LOCAL_STATIC_LIBRARIES := libotautil |
| 498 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/otautil/include |
| 499 | LOCAL_C_INCLUDES += system/core/libmetricslogger/include \ |
| 500 | system/core/libstats/include |
| 501 | LOCAL_CFLAGS := -Werror |
| 502 | LOCAL_INIT_RC := recovery-persist.rc |
| 503 | include $(BUILD_EXECUTABLE) |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 504 | |
Mark Salyzyn | 13aca59 | 2016-03-09 14:58:16 -0800 | [diff] [blame] | 505 | # recovery-refresh (system partition dynamic executable run at init) |
| 506 | # =============================== |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 507 | include $(CLEAR_VARS) |
| 508 | LOCAL_SRC_FILES := \ |
| 509 | recovery-refresh.cpp |
| 510 | LOCAL_MODULE := recovery-refresh |
| 511 | LOCAL_SHARED_LIBRARIES := liblog libbase |
| 512 | LOCAL_STATIC_LIBRARIES := libotautil |
| 513 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/otautil/include |
| 514 | LOCAL_CFLAGS := -Werror |
| 515 | LOCAL_INIT_RC := recovery-refresh.rc |
| 516 | include $(BUILD_EXECUTABLE) |
Tao Bao | 42c45e2 | 2018-07-31 09:37:12 -0700 | [diff] [blame] | 517 | |
Elliott Hughes | 63a3192 | 2016-06-09 17:41:22 -0700 | [diff] [blame] | 518 | # libmounts (static library) |
| 519 | # =============================== |
| 520 | include $(CLEAR_VARS) |
| 521 | LOCAL_SRC_FILES := mounts.cpp |
Tao Bao | 5f85d1f | 2017-03-28 21:12:36 -0700 | [diff] [blame] | 522 | LOCAL_CFLAGS := \ |
| 523 | -Wall \ |
| 524 | -Werror |
Elliott Hughes | 63a3192 | 2016-06-09 17:41:22 -0700 | [diff] [blame] | 525 | LOCAL_MODULE := libmounts |
Tao Bao | 5f85d1f | 2017-03-28 21:12:36 -0700 | [diff] [blame] | 526 | LOCAL_STATIC_LIBRARIES := libbase |
Elliott Hughes | 63a3192 | 2016-06-09 17:41:22 -0700 | [diff] [blame] | 527 | include $(BUILD_STATIC_LIBRARY) |
| 528 | |
Tao Bao | 62e0bc7 | 2017-04-10 16:55:57 -0700 | [diff] [blame] | 529 | # librecovery (static library) |
| 530 | # =============================== |
| 531 | include $(CLEAR_VARS) |
| 532 | LOCAL_SRC_FILES := \ |
| 533 | install.cpp |
Tao Bao | b24510c | 2017-04-20 17:54:27 -0700 | [diff] [blame] | 534 | LOCAL_CFLAGS := -Wall -Werror |
Tao Bao | 62e0bc7 | 2017-04-10 16:55:57 -0700 | [diff] [blame] | 535 | LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) |
Tao Bao | 25dbe17 | 2017-04-12 23:52:20 -0700 | [diff] [blame] | 536 | |
| 537 | ifeq ($(AB_OTA_UPDATER),true) |
| 538 | LOCAL_CFLAGS += -DAB_OTA_UPDATER=1 |
| 539 | endif |
| 540 | |
Tao Bao | 62e0bc7 | 2017-04-10 16:55:57 -0700 | [diff] [blame] | 541 | LOCAL_MODULE := librecovery |
| 542 | LOCAL_STATIC_LIBRARIES := \ |
| 543 | libminui \ |
Tao Bao | cfe53c2 | 2017-10-03 14:37:21 -0700 | [diff] [blame] | 544 | libotautil \ |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 545 | libvintf \ |
Tao Bao | 62e0bc7 | 2017-04-10 16:55:57 -0700 | [diff] [blame] | 546 | libcrypto_utils \ |
| 547 | libcrypto \ |
Elliott Hughes | e1bb7a5 | 2017-06-28 08:00:17 -0700 | [diff] [blame] | 548 | libbase \ |
| 549 | libziparchive \ |
Tao Bao | 62e0bc7 | 2017-04-10 16:55:57 -0700 | [diff] [blame] | 550 | |
| 551 | include $(BUILD_STATIC_LIBRARY) |
| 552 | |
Ethan Yonker | 34ae483 | 2016-08-24 15:32:18 -0500 | [diff] [blame] | 553 | # shared libaosprecovery for Apache code |
| 554 | # =============================== |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 555 | include $(CLEAR_VARS) |
| 556 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 557 | |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 558 | LOCAL_MODULE := libaosprecovery |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 559 | LOCAL_MODULE_TAGS := optional |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 560 | |
| 561 | LOCAL_SRC_FILES := install/adb_install.cpp install/asn1_decoder.cpp install/fuse_sdcard_install.cpp\ |
| 562 | install/install.cpp install/installcommand.cpp install/legacy_property_service.cpp \ |
| 563 | install/package.cpp install/verifier.cpp install/wipe_data.cpp install/tw_atomic.cpp \ |
| 564 | install/set_metadata.cpp verifier28/verifier.cpp install/zipwrap.cpp install/ZipUtil.cpp |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 565 | LOCAL_SHARED_LIBRARIES += libbase libbootloader_message libcrypto libext4_utils \ |
bigbiff | 7ba7500 | 2020-04-11 20:47:09 -0400 | [diff] [blame] | 566 | libfs_mgr libfusesideload libhidl-gen-utils libhidlbase \ |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 567 | liblog libselinux libtinyxml2 libutils libz libziparchive libcutils |
Ethan Yonker | 941a899 | 2016-12-05 09:04:30 -0600 | [diff] [blame] | 568 | LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 569 | LOCAL_SHARED_LIBRARIES += libc++ |
| 570 | LOCAL_CFLAGS := -std=gnu++2a |
| 571 | LOCAL_C_INCLUDES += $(commands_TWRP_local_path)/install/include \ |
| 572 | $(commands_TWRP_local_path)/recovery_ui/include \ |
| 573 | $(commands_TWRP_local_path)/otautil/include \ |
| 574 | $(commands_TWRP_local_path)/minadbd \ |
| 575 | $(commands_TWRP_local_path)/minzip \ |
| 576 | system/libvintf/include |
| 577 | LOCAL_STATIC_LIBRARIES += libotautil libvintf_recovery libvintf libhidl-gen-utils |
| 578 | LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) |
Tao Bao | a92d8fb | 2017-06-20 18:11:21 -0700 | [diff] [blame] | 579 | |
Ethan Yonker | 941a899 | 2016-12-05 09:04:30 -0600 | [diff] [blame] | 580 | ifeq ($(AB_OTA_UPDATER),true) |
| 581 | LOCAL_CFLAGS += -DAB_OTA_UPDATER=1 |
| 582 | endif |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 583 | |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 584 | include $(BUILD_SHARED_LIBRARY) |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 585 | |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 586 | # libverifier (static library) |
| 587 | # =============================== |
Kenny Root | 7a4adb5 | 2013-10-09 10:14:35 -0700 | [diff] [blame] | 588 | include $(CLEAR_VARS) |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 589 | LOCAL_CLANG := true |
Kenny Root | 7a4adb5 | 2013-10-09 10:14:35 -0700 | [diff] [blame] | 590 | LOCAL_MODULE := libverifier |
Kenny Root | 7a4adb5 | 2013-10-09 10:14:35 -0700 | [diff] [blame] | 591 | LOCAL_SRC_FILES := \ |
Kenny Root | 7a4adb5 | 2013-10-09 10:14:35 -0700 | [diff] [blame] | 592 | asn1_decoder.cpp \ |
Tao Bao | d7bf82e | 2017-03-18 09:24:11 -0700 | [diff] [blame] | 593 | verifier.cpp |
Tao Bao | 0ecbd76 | 2017-01-16 21:16:58 -0800 | [diff] [blame] | 594 | LOCAL_STATIC_LIBRARIES := \ |
Tao Bao | 09e468f | 2017-09-29 14:39:33 -0700 | [diff] [blame] | 595 | libotautil \ |
Tao Bao | 0ecbd76 | 2017-01-16 21:16:58 -0800 | [diff] [blame] | 596 | libcrypto_utils \ |
| 597 | libcrypto \ |
| 598 | libbase |
Tianjie Xu | c89d1e7 | 2017-08-28 14:15:07 -0700 | [diff] [blame] | 599 | LOCAL_CFLAGS := -Wall -Werror |
Jed Estep | 4329186 | 2016-02-03 17:02:09 -0800 | [diff] [blame] | 600 | include $(BUILD_STATIC_LIBRARY) |
Doug Zongker | 73ae31c | 2009-12-09 17:01:45 -0800 | [diff] [blame] | 601 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 602 | commands_recovery_local_path := $(LOCAL_PATH) |
Ethan Yonker | ecbd3e8 | 2017-12-14 14:43:59 -0600 | [diff] [blame] | 603 | |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 604 | # $(LOCAL_PATH)/edify/Android.mk |
| 605 | # $(LOCAL_PATH)/otafault/Android.mk |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 606 | |
| 607 | # $(commands_TWRP_local_path)/boot_control/Android.bp |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 608 | # $(commands_TWRP_local_path)/update_verifier/Android.mk |
Yabin Cui | 2f272c0 | 2016-06-24 18:22:02 -0700 | [diff] [blame] | 609 | include \ |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 610 | $(commands_TWRP_local_path)/updater/Android.mk \ |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 611 | $(commands_TWRP_local_path)/bootloader_message_twrp/Android.mk |
| 612 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 613 | include $(commands_TWRP_local_path)/mtp/ffs/Android.mk |
bigbiff bigbiff | af32bb9 | 2018-12-18 18:39:53 -0500 | [diff] [blame] | 614 | |
Matt Mower | f746dbb | 2015-05-13 22:56:31 -0500 | [diff] [blame] | 615 | ifeq ($(wildcard system/core/uncrypt/Android.mk),) |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 616 | #include $(commands_TWRP_local_path)/uncrypt/Android.mk |
Matt Mower | f746dbb | 2015-05-13 22:56:31 -0500 | [diff] [blame] | 617 | endif |
| 618 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 619 | include $(commands_TWRP_local_path)/minadbd/Android.mk \ |
| 620 | $(commands_TWRP_local_path)/minui/Android.mk |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 621 | |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 622 | # $(commands_TWRP_local_path)/otautil/Android.mk \ |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 623 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 624 | #includes for TWRP |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 625 | include $(commands_TWRP_local_path)/injecttwrp/Android.mk \ |
| 626 | $(commands_TWRP_local_path)/htcdumlock/Android.mk \ |
| 627 | $(commands_TWRP_local_path)/gui/Android.mk \ |
| 628 | $(commands_TWRP_local_path)/mmcutils/Android.mk \ |
| 629 | $(commands_TWRP_local_path)/bmlutils/Android.mk \ |
| 630 | $(commands_TWRP_local_path)/prebuilt/Android.mk \ |
| 631 | $(commands_TWRP_local_path)/mtdutils/Android.mk \ |
| 632 | $(commands_TWRP_local_path)/flashutils/Android.mk \ |
| 633 | $(commands_TWRP_local_path)/pigz/Android.mk \ |
| 634 | $(commands_TWRP_local_path)/libtar/Android.mk \ |
| 635 | $(commands_TWRP_local_path)/libcrecovery/Android.mk \ |
| 636 | $(commands_TWRP_local_path)/libblkid/Android.mk \ |
| 637 | $(commands_TWRP_local_path)/minuitwrp/Android.mk \ |
| 638 | $(commands_TWRP_local_path)/openaes/Android.mk \ |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 639 | $(commands_TWRP_local_path)/twrpTarMain/Android.mk \ |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 640 | $(commands_TWRP_local_path)/minzip/Android.mk \ |
| 641 | $(commands_TWRP_local_path)/dosfstools/Android.mk \ |
| 642 | $(commands_TWRP_local_path)/etc/Android.mk \ |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 643 | $(commands_TWRP_local_path)/simg2img/Android.mk \ |
| 644 | $(commands_TWRP_local_path)/adbbu/Android.mk \ |
| 645 | $(commands_TWRP_local_path)/libpixelflinger/Android.mk \ |
| 646 | $(commands_TWRP_local_path)/twrpDigest/Android.mk \ |
| 647 | $(commands_TWRP_local_path)/attr/Android.mk |
Ethan Yonker | bcc502c | 2014-11-10 11:22:10 -0600 | [diff] [blame] | 648 | |
mauronofrio | 6d3bf89 | 2019-10-26 19:47:55 +0200 | [diff] [blame] | 649 | ifneq ($(TW_OZIP_DECRYPT_KEY),) |
| 650 | TWRP_REQUIRED_MODULES += ozip_decrypt |
| 651 | include $(commands_TWRP_local_path)/ozip_decrypt/Android.mk |
| 652 | endif |
| 653 | |
Ethan Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 654 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Ethan Yonker | 98661c1 | 2018-10-17 08:39:28 -0500 | [diff] [blame] | 655 | include $(commands_TWRP_local_path)/crypto/fde/Android.mk |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 656 | include $(commands_TWRP_local_path)/crypto/scrypt/Android.mk |
Ethan Yonker | bd7492d | 2016-12-07 13:55:01 -0600 | [diff] [blame] | 657 | ifeq ($(TW_INCLUDE_CRYPTO_FBE), true) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 658 | include $(commands_TWRP_local_path)/crypto/fscrypt/Android.mk |
Ethan Yonker | bd7492d | 2016-12-07 13:55:01 -0600 | [diff] [blame] | 659 | endif |
nkk71 | 71c6c50 | 2017-01-05 23:55:05 +0200 | [diff] [blame] | 660 | ifneq ($(TW_CRYPTO_USE_SYSTEM_VOLD),) |
| 661 | ifneq ($(TW_CRYPTO_USE_SYSTEM_VOLD),false) |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 662 | include $(commands_TWRP_local_path)/crypto/vold_decrypt/Android.mk |
nkk71 | 71c6c50 | 2017-01-05 23:55:05 +0200 | [diff] [blame] | 663 | endif |
| 664 | endif |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 665 | include $(commands_TWRP_local_path)/gpt/Android.mk |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 666 | endif |
Vojtech Bocek | 7cc278b | 2013-02-24 01:40:19 +0100 | [diff] [blame] | 667 | ifeq ($(BUILD_ID), GINGERBREAD) |
| 668 | TW_NO_EXFAT := true |
| 669 | endif |
Dees_Troy | b05ddee | 2013-01-28 20:24:50 +0000 | [diff] [blame] | 670 | ifneq ($(TW_NO_EXFAT), true) |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 671 | include $(commands_TWRP_local_path)/exfat/mkfs/Android.mk \ |
| 672 | $(commands_TWRP_local_path)/exfat/fsck/Android.mk \ |
| 673 | $(commands_TWRP_local_path)/fuse/Android.mk \ |
| 674 | $(commands_TWRP_local_path)/exfat/libexfat/Android.mk |
Ethan Yonker | 34741d9 | 2016-02-06 13:22:45 -0600 | [diff] [blame] | 675 | ifneq ($(TW_NO_EXFAT_FUSE), true) |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 676 | include $(commands_TWRP_local_path)/exfat/fuse/Android.mk |
Ethan Yonker | 34741d9 | 2016-02-06 13:22:45 -0600 | [diff] [blame] | 677 | endif |
Captain Throwback | 6a1acf2 | 2014-09-18 12:46:35 -0400 | [diff] [blame] | 678 | endif |
Ethan Yonker | 03a42f6 | 2014-08-08 11:03:51 -0500 | [diff] [blame] | 679 | ifneq ($(TW_OEM_BUILD),true) |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 680 | include $(commands_TWRP_local_path)/orscmd/Android.mk |
Ethan Yonker | 03a42f6 | 2014-08-08 11:03:51 -0500 | [diff] [blame] | 681 | endif |
bigbiff bigbiff | 9c75405 | 2013-01-09 09:09:08 -0500 | [diff] [blame] | 682 | |
Talustus | 3019a91 | 2013-04-06 11:50:07 +0200 | [diff] [blame] | 683 | # FB2PNG |
| 684 | ifeq ($(TW_INCLUDE_FB2PNG), true) |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 685 | include $(commands_TWRP_local_path)/fb2png/Android.mk |
Talustus | 3019a91 | 2013-04-06 11:50:07 +0200 | [diff] [blame] | 686 | endif |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 687 | |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 688 | endif |
Ethan Yonker | 58f2132 | 2018-08-24 11:17:36 -0500 | [diff] [blame] | 689 | |
| 690 | commands_TWRP_local_path := |