55c75cad80
Enable TWRP to reside alongside other recoveries with the naming convention: bootable/recovery(-flag). If TWRP resides at bootable/recovery and a device does not specify RECOVERY_VARIANT, then it will build like normal. If TWRP resides at bootable/recovery-twrp, then its makefiles will only be parsed if a device specifies 'RECOVERY_VARIANT := twrp'. This prevents TWRP specific makefile warnings/errors (notably, missing DEVICE_RESOLUTION) when another recovery is being built. Change-Id: I8f02fffcd79c309c7123b9428eedc69af02e126e
18 lines
564 B
Makefile
18 lines
564 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
ifeq ($(TW_INCLUDE_JB_CRYPTO), true)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := libcryptfsjb
|
|
LOCAL_MODULE_TAGS := eng
|
|
LOCAL_MODULES_TAGS = optional
|
|
LOCAL_CFLAGS =
|
|
LOCAL_SRC_FILES = cryptfs.c
|
|
LOCAL_C_INCLUDES += \
|
|
system/extras/ext4_utils \
|
|
external/openssl/include \
|
|
$(commands_recovery_local_path)/crypto/scrypt/lib/crypto
|
|
LOCAL_SHARED_LIBRARIES += libc liblog libcutils libcrypto libext4_utils
|
|
LOCAL_STATIC_LIBRARIES += libfs_mgrtwrp libscrypttwrp_static liblogwraptwrp libmincrypttwrp
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
endif |