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 \ | ||||
6 | VoldCommand.cpp \ | ||||
7 | NetlinkManager.cpp \ | ||||
8 | NetlinkHandler.cpp \ | ||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 9 | Process.cpp \ |
Kenny Root | 344ca10 | 2012-04-03 17:23:01 -0700 | [diff] [blame] | 10 | Ext4.cpp \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 11 | Fat.cpp \ |
12 | Loop.cpp \ | ||||
13 | Devmapper.cpp \ | ||||
14 | ResponseCode.cpp \ | ||||
Paul Lawrence | 8799917 | 2014-02-20 12:21:31 -0800 | [diff] [blame] | 15 | CheckBattery.cpp \ |
Ken Sumrall | 9caab76 | 2013-06-11 19:10:20 -0700 | [diff] [blame] | 16 | VoldUtil.c \ |
Ken Sumrall | b87937c | 2013-03-19 21:46:39 -0700 | [diff] [blame] | 17 | fstrim.c \ |
Jeff Sharkey | deb2405 | 2015-03-02 21:01:40 -0800 | [diff] [blame] | 18 | cryptfs.c \ |
19 | Disk.cpp \ | ||||
20 | VolumeBase.cpp \ | ||||
21 | PublicVolume.cpp \ | ||||
Jeff Sharkey | 9c48498 | 2015-03-31 10:35:33 -0700 | [diff] [blame] | 22 | PrivateVolume.cpp \ |
Jeff Sharkey | deb2405 | 2015-03-02 21:01:40 -0800 | [diff] [blame] | 23 | EmulatedVolume.cpp \ |
24 | Utils.cpp \ | ||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 25 | |
26 | common_c_includes := \ | ||||
Ken Sumrall | 3ed8236 | 2011-01-28 23:31:16 -0800 | [diff] [blame] | 27 | system/extras/ext4_utils \ |
Daniel Rosenberg | e82df16 | 2014-08-15 22:19:23 +0000 | [diff] [blame] | 28 | system/extras/f2fs_utils \ |
Paul Lawrence | 8799917 | 2014-02-20 12:21:31 -0800 | [diff] [blame] | 29 | external/scrypt/lib/crypto \ |
Paul Lawrence | 69f4ebd | 2014-04-14 12:17:14 -0700 | [diff] [blame] | 30 | frameworks/native/include \ |
31 | system/security/keystore \ | ||||
32 | hardware/libhardware/include/hardware \ | ||||
33 | system/security/softkeymaster/include/keymaster | ||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 34 | |
35 | common_shared_libraries := \ | ||||
36 | libsysutils \ | ||||
Paul Lawrence | 8799917 | 2014-02-20 12:21:31 -0800 | [diff] [blame] | 37 | libbinder \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 38 | libcutils \ |
Ying Wang | 741a169 | 2013-04-09 22:05:28 -0700 | [diff] [blame] | 39 | liblog \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 40 | libdiskconfig \ |
Ken Sumrall | 5d4c68e | 2011-01-30 19:06:03 -0800 | [diff] [blame] | 41 | libhardware_legacy \ |
Rom Lemarchand | 2ba45aa | 2013-01-16 12:29:28 -0800 | [diff] [blame] | 42 | liblogwrap \ |
Ken Sumrall | 5cf759a | 2013-08-14 20:15:17 -0700 | [diff] [blame] | 43 | libext4_utils \ |
Daniel Rosenberg | e82df16 | 2014-08-15 22:19:23 +0000 | [diff] [blame] | 44 | libf2fs_sparseblock \ |
Robert Craig | b9e3ba5 | 2014-02-04 10:53:00 -0500 | [diff] [blame] | 45 | libcrypto \ |
Paul Lawrence | 8799917 | 2014-02-20 12:21:31 -0800 | [diff] [blame] | 46 | libselinux \ |
Paul Lawrence | 69f4ebd | 2014-04-14 12:17:14 -0700 | [diff] [blame] | 47 | libutils \ |
48 | libhardware \ | ||||
Dan Albert | ae9e890 | 2015-03-16 10:35:17 -0700 | [diff] [blame] | 49 | libsoftkeymaster \ |
50 | libbase \ | ||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 51 | |
Kenny Root | c4c70f1 | 2013-06-14 12:11:38 -0700 | [diff] [blame] | 52 | common_static_libraries := \ |
53 | libfs_mgr \ | ||||
Mohamad Ayyash | c489d7f | 2015-04-06 18:15:53 -0700 | [diff] [blame] | 54 | libsquashfs_utils \ |
Geremy Condra | c49f0f2 | 2013-08-07 13:12:41 -0700 | [diff] [blame] | 55 | libscrypt_static \ |
Paul Lawrence | 8799917 | 2014-02-20 12:21:31 -0800 | [diff] [blame] | 56 | libmincrypt \ |
57 | libbatteryservice | ||||
Kenny Root | c4c70f1 | 2013-06-14 12:11:38 -0700 | [diff] [blame] | 58 | |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 59 | vold_conlyflags := -std=c11 |
Jeff Sharkey | deb2405 | 2015-03-02 21:01:40 -0800 | [diff] [blame] | 60 | 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] | 61 | |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 62 | include $(CLEAR_VARS) |
63 | |||||
Dan Albert | b2aaf3a | 2014-09-12 10:48:12 -0700 | [diff] [blame] | 64 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 65 | LOCAL_MODULE := libvold |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 66 | LOCAL_CLANG := true |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 67 | LOCAL_SRC_FILES := $(common_src_files) |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 68 | LOCAL_C_INCLUDES := $(common_c_includes) |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 69 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
Kenny Root | c4c70f1 | 2013-06-14 12:11:38 -0700 | [diff] [blame] | 70 | LOCAL_STATIC_LIBRARIES := $(common_static_libraries) |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 71 | LOCAL_MODULE_TAGS := eng tests |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 72 | LOCAL_CFLAGS := $(vold_cflags) |
73 | LOCAL_CONLYFLAGS := $(vold_conlyflags) | ||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 74 | |
75 | include $(BUILD_STATIC_LIBRARY) | ||||
76 | |||||
77 | include $(CLEAR_VARS) | ||||
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 78 | |
Dan Albert | b2aaf3a | 2014-09-12 10:48:12 -0700 | [diff] [blame] | 79 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 80 | LOCAL_MODULE:= vold |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 81 | LOCAL_CLANG := true |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 82 | LOCAL_SRC_FILES := \ |
83 | main.cpp \ | ||||
84 | $(common_src_files) | ||||
85 | |||||
86 | LOCAL_C_INCLUDES := $(common_c_includes) | ||||
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 87 | LOCAL_CFLAGS := $(vold_cflags) |
88 | LOCAL_CONLYFLAGS := $(vold_conlyflags) | ||||
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 89 | |
Ajay Dudani | 87701e2 | 2014-09-17 21:02:52 -0700 | [diff] [blame] | 90 | ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) |
91 | LOCAL_C_INCLUDES += $(TARGET_CRYPTFS_HW_PATH) | ||||
92 | common_shared_libraries += libcryptfs_hw | ||||
93 | LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION | ||||
94 | endif | ||||
95 | |||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 96 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
Kenny Root | c4c70f1 | 2013-06-14 12:11:38 -0700 | [diff] [blame] | 97 | LOCAL_STATIC_LIBRARIES := $(common_static_libraries) |
Ken Sumrall | f0679f0 | 2012-04-01 23:58:44 -0700 | [diff] [blame] | 98 | |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 99 | include $(BUILD_EXECUTABLE) |
100 | |||||
101 | include $(CLEAR_VARS) | ||||
Kenny Root | 7b18a7b | 2010-03-15 13:13:41 -0700 | [diff] [blame] | 102 | |
Dan Albert | b2aaf3a | 2014-09-12 10:48:12 -0700 | [diff] [blame] | 103 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 104 | LOCAL_CLANG := true |
Kenny Root | 7b18a7b | 2010-03-15 13:13:41 -0700 | [diff] [blame] | 105 | LOCAL_SRC_FILES:= vdc.c |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 106 | LOCAL_MODULE:= vdc |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 107 | LOCAL_SHARED_LIBRARIES := libcutils |
Dan Albert | c07fa3f | 2014-12-18 10:00:55 -0800 | [diff] [blame] | 108 | LOCAL_CFLAGS := $(vold_cflags) |
109 | LOCAL_CONLYFLAGS := $(vold_conlyflags) | ||||
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 110 | |
111 | include $(BUILD_EXECUTABLE) |