blob: d83e6502c840a54c6bb374167975f4404de36985 [file] [log] [blame]
San Mehatf1b736b2009-10-10 17:22:08 -07001LOCAL_PATH:= $(call my-dir)
2
Kenny Rootacc9e7d2010-06-18 19:06:50 -07003common_src_files := \
4 VolumeManager.cpp \
5 CommandListener.cpp \
Paul Lawrenced0b42952015-06-03 14:19:51 -07006 CryptCommandListener.cpp \
Kenny Rootacc9e7d2010-06-18 19:06:50 -07007 VoldCommand.cpp \
8 NetlinkManager.cpp \
9 NetlinkHandler.cpp \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070010 Process.cpp \
Jeff Sharkeyd0640f62015-05-21 22:35:42 -070011 fs/Ext4.cpp \
12 fs/F2fs.cpp \
13 fs/Vfat.cpp \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070014 Loop.cpp \
15 Devmapper.cpp \
16 ResponseCode.cpp \
Paul Lawrence87999172014-02-20 12:21:31 -080017 CheckBattery.cpp \
Paul Lawrence707fd6c2015-04-28 22:14:15 +000018 Ext4Crypt.cpp \
Ken Sumrall9caab762013-06-11 19:10:20 -070019 VoldUtil.c \
Jeff Sharkeydeb24052015-03-02 21:01:40 -080020 cryptfs.c \
21 Disk.cpp \
22 VolumeBase.cpp \
23 PublicVolume.cpp \
Jeff Sharkey9c484982015-03-31 10:35:33 -070024 PrivateVolume.cpp \
Jeff Sharkeydeb24052015-03-02 21:01:40 -080025 EmulatedVolume.cpp \
26 Utils.cpp \
Jeff Sharkey1d6fbcc2015-04-24 16:00:03 -070027 MoveTask.cpp \
Jeff Sharkey5a6bfca2015-05-14 20:33:55 -070028 Benchmark.cpp \
Jeff Sharkeyc86ab6f2015-06-26 14:02:09 -070029 TrimTask.cpp \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070030
31common_c_includes := \
Ken Sumrall3ed82362011-01-28 23:31:16 -080032 system/extras/ext4_utils \
Daniel Rosenberge82df162014-08-15 22:19:23 +000033 system/extras/f2fs_utils \
Paul Lawrence87999172014-02-20 12:21:31 -080034 external/scrypt/lib/crypto \
Paul Lawrence69f4ebd2014-04-14 12:17:14 -070035 frameworks/native/include \
36 system/security/keystore \
37 hardware/libhardware/include/hardware \
38 system/security/softkeymaster/include/keymaster
Kenny Rootacc9e7d2010-06-18 19:06:50 -070039
40common_shared_libraries := \
41 libsysutils \
Paul Lawrence87999172014-02-20 12:21:31 -080042 libbinder \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070043 libcutils \
Ying Wang741a1692013-04-09 22:05:28 -070044 liblog \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070045 libdiskconfig \
Ken Sumrall5d4c68e2011-01-30 19:06:03 -080046 libhardware_legacy \
Rom Lemarchand2ba45aa2013-01-16 12:29:28 -080047 liblogwrap \
Ken Sumrall5cf759a2013-08-14 20:15:17 -070048 libext4_utils \
Daniel Rosenberge82df162014-08-15 22:19:23 +000049 libf2fs_sparseblock \
Robert Craigb9e3ba52014-02-04 10:53:00 -050050 libcrypto \
Paul Lawrence87999172014-02-20 12:21:31 -080051 libselinux \
Paul Lawrence69f4ebd2014-04-14 12:17:14 -070052 libutils \
53 libhardware \
Dan Albertae9e8902015-03-16 10:35:17 -070054 libsoftkeymaster \
Paul Crowley75a52022015-05-06 15:04:43 +010055 libbase
Kenny Rootacc9e7d2010-06-18 19:06:50 -070056
Kenny Rootc4c70f12013-06-14 12:11:38 -070057common_static_libraries := \
58 libfs_mgr \
Sami Tolvanenefe67cd2015-06-01 15:38:29 +010059 libfec \
60 libfec_rs \
Mohamad Ayyashc489d7f2015-04-06 18:15:53 -070061 libsquashfs_utils \
Geremy Condrac49f0f22013-08-07 13:12:41 -070062 libscrypt_static \
Paul Lawrence87999172014-02-20 12:21:31 -080063 libmincrypt \
64 libbatteryservice
Kenny Rootc4c70f12013-06-14 12:11:38 -070065
Dan Albertc07fa3f2014-12-18 10:00:55 -080066vold_conlyflags := -std=c11
Jeff Sharkeydeb24052015-03-02 21:01:40 -080067vold_cflags := -Werror -Wall -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter
Dan Albertc07fa3f2014-12-18 10:00:55 -080068
San Mehatf1b736b2009-10-10 17:22:08 -070069include $(CLEAR_VARS)
70
Dan Albertb2aaf3a2014-09-12 10:48:12 -070071LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Kenny Rootacc9e7d2010-06-18 19:06:50 -070072LOCAL_MODULE := libvold
Dan Albertc07fa3f2014-12-18 10:00:55 -080073LOCAL_CLANG := true
Kenny Rootacc9e7d2010-06-18 19:06:50 -070074LOCAL_SRC_FILES := $(common_src_files)
Kenny Rootacc9e7d2010-06-18 19:06:50 -070075LOCAL_C_INCLUDES := $(common_c_includes)
Kenny Rootacc9e7d2010-06-18 19:06:50 -070076LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
Kenny Rootc4c70f12013-06-14 12:11:38 -070077LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
Kenny Rootacc9e7d2010-06-18 19:06:50 -070078LOCAL_MODULE_TAGS := eng tests
Dan Albertc07fa3f2014-12-18 10:00:55 -080079LOCAL_CFLAGS := $(vold_cflags)
80LOCAL_CONLYFLAGS := $(vold_conlyflags)
Kenny Rootacc9e7d2010-06-18 19:06:50 -070081
82include $(BUILD_STATIC_LIBRARY)
83
84include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070085
Dan Albertb2aaf3a2014-09-12 10:48:12 -070086LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
San Mehatf1b736b2009-10-10 17:22:08 -070087LOCAL_MODULE:= vold
Dan Albertc07fa3f2014-12-18 10:00:55 -080088LOCAL_CLANG := true
Kenny Rootacc9e7d2010-06-18 19:06:50 -070089LOCAL_SRC_FILES := \
90 main.cpp \
91 $(common_src_files)
92
Tom Cherrya2859842015-08-14 13:06:45 -070093LOCAL_INIT_RC := vold.rc
94
Kenny Rootacc9e7d2010-06-18 19:06:50 -070095LOCAL_C_INCLUDES := $(common_c_includes)
Dan Albertc07fa3f2014-12-18 10:00:55 -080096LOCAL_CFLAGS := $(vold_cflags)
97LOCAL_CONLYFLAGS := $(vold_conlyflags)
San Mehatf1b736b2009-10-10 17:22:08 -070098
Ajay Dudani87701e22014-09-17 21:02:52 -070099ifeq ($(TARGET_HW_DISK_ENCRYPTION),true)
100LOCAL_C_INCLUDES += $(TARGET_CRYPTFS_HW_PATH)
101common_shared_libraries += libcryptfs_hw
102LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION
103endif
104
Kenny Rootacc9e7d2010-06-18 19:06:50 -0700105LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
Kenny Rootc4c70f12013-06-14 12:11:38 -0700106LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
Ken Sumrallf0679f02012-04-01 23:58:44 -0700107
San Mehatf1b736b2009-10-10 17:22:08 -0700108include $(BUILD_EXECUTABLE)
109
110include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -0700111
Dan Albertb2aaf3a2014-09-12 10:48:12 -0700112LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Dan Albertc07fa3f2014-12-18 10:00:55 -0800113LOCAL_CLANG := true
Paul Crowleyfde9cd82015-05-06 11:27:44 +0100114LOCAL_SRC_FILES:= vdc.cpp
San Mehatf1b736b2009-10-10 17:22:08 -0700115LOCAL_MODULE:= vdc
San Mehatf1b736b2009-10-10 17:22:08 -0700116LOCAL_SHARED_LIBRARIES := libcutils
Dan Albertc07fa3f2014-12-18 10:00:55 -0800117LOCAL_CFLAGS := $(vold_cflags)
118LOCAL_CONLYFLAGS := $(vold_conlyflags)
Tom Cherrya2859842015-08-14 13:06:45 -0700119LOCAL_INIT_RC := vdc.rc
San Mehatf1b736b2009-10-10 17:22:08 -0700120
121include $(BUILD_EXECUTABLE)
Paul Crowley5bd0daf2015-05-19 17:31:39 +0100122
123include $(CLEAR_VARS)
124
125LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
126LOCAL_CLANG := true
127LOCAL_SRC_FILES:= secdiscard.cpp
128LOCAL_MODULE:= secdiscard
129LOCAL_SHARED_LIBRARIES := libcutils
130LOCAL_CFLAGS := $(vold_cflags)
131LOCAL_CONLYFLAGS := $(vold_conlyflags)
132
133include $(BUILD_EXECUTABLE)