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 |
| 13 | LOCAL_C_INCLUDES += system/extras/ext4_utils bootable/recovery/libmincrypt/includes |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 14 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 15 | |
| 16 | include $(BUILD_STATIC_LIBRARY) |
| 17 | |
| 18 | |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 19 | include $(CLEAR_VARS) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 20 | |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 21 | LOCAL_SRC_FILES:= fs_mgr_main.c |
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_C_INCLUDES := $(LOCAL_PATH)/include |
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_MODULE:= fs_mgrtwrp |
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_TAGS := optional |
| 28 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 29 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin |
| 30 | LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 31 | |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 32 | 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] | 33 | |
Dees Troy | 4dff2e6 | 2013-11-10 04:11:43 +0000 | [diff] [blame] | 34 | include $(BUILD_EXECUTABLE) |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 35 | |
OliverG96 | 06b91e7 | 2013-12-06 00:10:56 +0000 | [diff] [blame] | 36 | endif |