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
39 lines
993 B
Makefile
39 lines
993 B
Makefile
# Copyright 2011 The Android Open Source Project
|
|
ifeq ($(TW_INCLUDE_JB_CRYPTO), true)
|
|
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= fs_mgr.c fs_mgr_verity.c
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_MODULE:= libfs_mgrtwrp
|
|
LOCAL_SHARED_LIBRARIES := libext4_utils
|
|
LOCAL_STATIC_LIBRARIES := liblogwraptwrp libmincrypttwrp
|
|
LOCAL_C_INCLUDES += \
|
|
system/extras/ext4_utils \
|
|
$(commands_recovery_local_path)/libmincrypt/includes
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= fs_mgr_main.c
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_MODULE:= fs_mgrtwrp
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin
|
|
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)
|
|
|
|
LOCAL_STATIC_LIBRARIES := libfs_mgrtwrp liblogwraptwrp libcutils liblog libc libmincrypttwrp libext4_utils_static
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
endif
|