Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | # Copyright 2011 The Android Open Source Project |
OliverG96 | 06b91e7 | 2013-12-06 00:10:56 +0000 | [diff] [blame] | 2 | ifeq ($(TW_INCLUDE_JB_CRYPTO), true) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 3 | LOCAL_PATH:= $(call my-dir) |
| 4 | include $(CLEAR_VARS) |
| 5 | |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 6 | LOCAL_SRC_FILES:= fs_mgr.c fs_mgr_verity.c |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 7 | |
| 8 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
| 9 | |
| 10 | LOCAL_MODULE:= libfs_mgrtwrp |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 11 | LOCAL_SHARED_LIBRARIES := libext4_utils |
| 12 | LOCAL_STATIC_LIBRARIES := liblogwraptwrp libmincrypttwrp |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 13 | LOCAL_C_INCLUDES += \ |
| 14 | system/extras/ext4_utils \ |
| 15 | $(commands_recovery_local_path)/libmincrypt/includes |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 16 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 17 | |
| 18 | include $(BUILD_STATIC_LIBRARY) |
| 19 | |
| 20 | |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 21 | include $(CLEAR_VARS) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 22 | |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 23 | LOCAL_SRC_FILES:= fs_mgr_main.c |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 24 | |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 25 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 26 | |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 27 | LOCAL_MODULE:= fs_mgrtwrp |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 28 | |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 29 | LOCAL_MODULE_TAGS := optional |
| 30 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 31 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin |
| 32 | LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 33 | |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 34 | LOCAL_STATIC_LIBRARIES := libfs_mgrtwrp liblogwraptwrp libcutils liblog libc libmincrypttwrp libext4_utils_static |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 35 | |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 36 | include $(BUILD_EXECUTABLE) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 37 | |
OliverG96 | 06b91e7 | 2013-12-06 00:10:56 +0000 | [diff] [blame] | 38 | endif |