San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
2 | |||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 3 | common_src_files := \ |
4 | VolumeManager.cpp \ | ||||
5 | CommandListener.cpp \ | ||||
Paul Lawrence | d0b4295 | 2015-06-03 14:19:51 -0700 | [diff] [blame] | 6 | CryptCommandListener.cpp \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 7 | VoldCommand.cpp \ |
8 | NetlinkManager.cpp \ | ||||
9 | NetlinkHandler.cpp \ | ||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 10 | Process.cpp \ |
Jeff Sharkey | d0640f6 | 2015-05-21 22:35:42 -0700 | [diff] [blame] | 11 | fs/Ext4.cpp \ |
12 | fs/F2fs.cpp \ | ||||
13 | fs/Vfat.cpp \ | ||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 14 | Loop.cpp \ |
15 | Devmapper.cpp \ | ||||
16 | ResponseCode.cpp \ | ||||
Paul Lawrence | 8799917 | 2014-02-20 12:21:31 -0800 | [diff] [blame] | 17 | CheckBattery.cpp \ |
Paul Lawrence | 707fd6c | 2015-04-28 22:14:15 +0000 | [diff] [blame] | 18 | Ext4Crypt.cpp \ |
Ken Sumrall | 9caab76 | 2013-06-11 19:10:20 -0700 | [diff] [blame] | 19 | VoldUtil.c \ |
Jeff Sharkey | deb2405 | 2015-03-02 21:01:40 -0800 | [diff] [blame] | 20 | cryptfs.c \ |
21 | Disk.cpp \ | ||||
22 | VolumeBase.cpp \ | ||||
23 | PublicVolume.cpp \ | ||||
Jeff Sharkey | 9c48498 | 2015-03-31 10:35:33 -0700 | [diff] [blame] | 24 | PrivateVolume.cpp \ |
Jeff Sharkey | deb2405 | 2015-03-02 21:01:40 -0800 | [diff] [blame] | 25 | EmulatedVolume.cpp \ |
26 | Utils.cpp \ | ||||
Jeff Sharkey | 1d6fbcc | 2015-04-24 16:00:03 -0700 | [diff] [blame] | 27 | MoveTask.cpp \ |
Jeff Sharkey | 5a6bfca | 2015-05-14 20:33:55 -0700 | [diff] [blame] | 28 | Benchmark.cpp \ |
Jeff Sharkey | c86ab6f | 2015-06-26 14:02:09 -0700 | [diff] [blame] | 29 | TrimTask.cpp \ |
Jeff Vander Stoep | df72575 | 2016-01-29 15:34:43 -0800 | [diff] [blame] | 30 | secontext.cpp \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 31 | |
32 | common_c_includes := \ | ||||
Ken Sumrall | 3ed8236 | 2011-01-28 23:31:16 -0800 | [diff] [blame] | 33 | system/extras/ext4_utils \ |
Daniel Rosenberg | e82df16 | 2014-08-15 22:19:23 +0000 | [diff] [blame] | 34 | system/extras/f2fs_utils \ |
Paul Lawrence | 8799917 | 2014-02-20 12:21:31 -0800 | [diff] [blame] | 35 | external/scrypt/lib/crypto \ |
Paul Lawrence | 69f4ebd | 2014-04-14 12:17:14 -0700 | [diff] [blame] | 36 | frameworks/native/include \ |
37 | system/security/keystore \ | ||||
38 | hardware/libhardware/include/hardware \ | ||||
39 | system/security/softkeymaster/include/keymaster | ||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 40 | |
41 | common_shared_libraries := \ | ||||
42 | libsysutils \ | ||||
Paul Lawrence | 8799917 | 2014-02-20 12:21:31 -0800 | [diff] [blame] | 43 | libbinder \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 44 | libcutils \ |
Ying Wang | 741a169 | 2013-04-09 22:05:28 -0700 | [diff] [blame] | 45 | liblog \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 46 | libdiskconfig \ |
Ken Sumrall | 5d4c68e | 2011-01-30 19:06:03 -0800 | [diff] [blame] | 47 | libhardware_legacy \ |
Rom Lemarchand | 2ba45aa | 2013-01-16 12:29:28 -0800 | [diff] [blame] | 48 | liblogwrap \ |
Ken Sumrall | 5cf759a | 2013-08-14 20:15:17 -0700 | [diff] [blame] | 49 | libext4_utils \ |
Daniel Rosenberg | e82df16 | 2014-08-15 22:19:23 +0000 | [diff] [blame] | 50 | libf2fs_sparseblock \ |
Mattias Nissler | dc80323 | 2016-03-31 16:32:59 +0200 | [diff] [blame] | 51 | libcrypto_utils \ |
Robert Craig | b9e3ba5 | 2014-02-04 10:53:00 -0500 | [diff] [blame] | 52 | libcrypto \ |
Paul Lawrence | 8799917 | 2014-02-20 12:21:31 -0800 | [diff] [blame] | 53 | libselinux \ |
Paul Lawrence | 69f4ebd | 2014-04-14 12:17:14 -0700 | [diff] [blame] | 54 | libutils \ |
55 | libhardware \ | ||||
Dan Albert | ae9e890 | 2015-03-16 10:35:17 -0700 | [diff] [blame] | 56 | libsoftkeymaster \ |
Paul Crowley | 75a5202 | 2015-05-06 15:04:43 +0100 | [diff] [blame] | 57 | libbase |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 58 | |
Kenny Root | c4c70f1 | 2013-06-14 12:11:38 -0700 | [diff] [blame] | 59 | common_static_libraries := \ |
60 | libfs_mgr \ | ||||
Sami Tolvanen | efe67cd | 2015-06-01 15:38:29 +0100 | [diff] [blame] | 61 | libfec \ |
62 | libfec_rs \ | ||||
Mohamad Ayyash | c489d7f | 2015-04-06 18:15:53 -0700 | [diff] [blame] | 63 | libsquashfs_utils \ |
Geremy Condra | c49f0f2 | 2013-08-07 13:12:41 -0700 | [diff] [blame] | 64 | libscrypt_static \ |
Paul Lawrence | 8799917 | 2014-02-20 12:21:31 -0800 | [diff] [blame] | 65 | libbatteryservice |
Kenny Root | c4c70f1 | 2013-06-14 12:11:38 -0700 | [diff] [blame] | 66 | |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 67 | vold_conlyflags := -std=c11 |
Jeff Sharkey | deb2405 | 2015-03-02 21:01:40 -0800 | [diff] [blame] | 68 | vold_cflags := -Werror -Wall -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 69 | |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 70 | include $(CLEAR_VARS) |
71 | |||||
Dan Albert | b2aaf3a | 2014-09-12 10:48:12 -0700 | [diff] [blame] | 72 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 73 | LOCAL_MODULE := libvold |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 74 | LOCAL_CLANG := true |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 75 | LOCAL_SRC_FILES := $(common_src_files) |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 76 | LOCAL_C_INCLUDES := $(common_c_includes) |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 77 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
Kenny Root | c4c70f1 | 2013-06-14 12:11:38 -0700 | [diff] [blame] | 78 | LOCAL_STATIC_LIBRARIES := $(common_static_libraries) |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 79 | LOCAL_MODULE_TAGS := eng tests |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 80 | LOCAL_CFLAGS := $(vold_cflags) |
81 | LOCAL_CONLYFLAGS := $(vold_conlyflags) | ||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 82 | |
83 | include $(BUILD_STATIC_LIBRARY) | ||||
84 | |||||
85 | include $(CLEAR_VARS) | ||||
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 86 | |
Dan Albert | b2aaf3a | 2014-09-12 10:48:12 -0700 | [diff] [blame] | 87 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 88 | LOCAL_MODULE:= vold |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 89 | LOCAL_CLANG := true |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 90 | LOCAL_SRC_FILES := \ |
91 | main.cpp \ | ||||
92 | $(common_src_files) | ||||
93 | |||||
Tom Cherry | a285984 | 2015-08-14 13:06:45 -0700 | [diff] [blame] | 94 | LOCAL_INIT_RC := vold.rc |
95 | |||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 96 | LOCAL_C_INCLUDES := $(common_c_includes) |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 97 | LOCAL_CFLAGS := $(vold_cflags) |
98 | LOCAL_CONLYFLAGS := $(vold_conlyflags) | ||||
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 99 | |
Ajay Dudani | 87701e2 | 2014-09-17 21:02:52 -0700 | [diff] [blame] | 100 | ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) |
101 | LOCAL_C_INCLUDES += $(TARGET_CRYPTFS_HW_PATH) | ||||
102 | common_shared_libraries += libcryptfs_hw | ||||
103 | LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION | ||||
104 | endif | ||||
105 | |||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 106 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
Kenny Root | c4c70f1 | 2013-06-14 12:11:38 -0700 | [diff] [blame] | 107 | LOCAL_STATIC_LIBRARIES := $(common_static_libraries) |
Ken Sumrall | f0679f0 | 2012-04-01 23:58:44 -0700 | [diff] [blame] | 108 | |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 109 | include $(BUILD_EXECUTABLE) |
110 | |||||
111 | include $(CLEAR_VARS) | ||||
Kenny Root | 7b18a7b | 2010-03-15 13:13:41 -0700 | [diff] [blame] | 112 | |
Dan Albert | b2aaf3a | 2014-09-12 10:48:12 -0700 | [diff] [blame] | 113 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 114 | LOCAL_CLANG := true |
Paul Crowley | fde9cd8 | 2015-05-06 11:27:44 +0100 | [diff] [blame] | 115 | LOCAL_SRC_FILES:= vdc.cpp |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 116 | LOCAL_MODULE:= vdc |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 117 | LOCAL_SHARED_LIBRARIES := libcutils |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 118 | LOCAL_CFLAGS := $(vold_cflags) |
119 | LOCAL_CONLYFLAGS := $(vold_conlyflags) | ||||
Tom Cherry | a285984 | 2015-08-14 13:06:45 -0700 | [diff] [blame] | 120 | LOCAL_INIT_RC := vdc.rc |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 121 | |
122 | include $(BUILD_EXECUTABLE) | ||||
Paul Crowley | 5bd0daf | 2015-05-19 17:31:39 +0100 | [diff] [blame] | 123 | |
124 | include $(CLEAR_VARS) | ||||
125 | |||||
126 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk | ||||
127 | LOCAL_CLANG := true | ||||
128 | LOCAL_SRC_FILES:= secdiscard.cpp | ||||
129 | LOCAL_MODULE:= secdiscard | ||||
Dimitry Ivanov | 01f86a5 | 2016-02-12 16:10:22 -0800 | [diff] [blame] | 130 | LOCAL_SHARED_LIBRARIES := liblog libcutils |
Paul Crowley | 5bd0daf | 2015-05-19 17:31:39 +0100 | [diff] [blame] | 131 | LOCAL_CFLAGS := $(vold_cflags) |
132 | LOCAL_CONLYFLAGS := $(vold_conlyflags) | ||||
133 | |||||
134 | include $(BUILD_EXECUTABLE) |