OSDN Git Service

vold: Remove creation of new keymaster key for password update
[android-x86/system-vold.git] / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 common_src_files := \
4         VolumeManager.cpp \
5         CommandListener.cpp \
6         CryptCommandListener.cpp \
7         VoldCommand.cpp \
8         NetlinkManager.cpp \
9         NetlinkHandler.cpp \
10         Process.cpp \
11         fs/Ext4.cpp \
12         fs/F2fs.cpp \
13         fs/Vfat.cpp \
14         Loop.cpp \
15         Devmapper.cpp \
16         ResponseCode.cpp \
17         CheckBattery.cpp \
18         Ext4Crypt.cpp \
19         VoldUtil.c \
20         cryptfs.c \
21         Disk.cpp \
22         VolumeBase.cpp \
23         PublicVolume.cpp \
24         PrivateVolume.cpp \
25         EmulatedVolume.cpp \
26         Utils.cpp \
27         MoveTask.cpp \
28         Benchmark.cpp \
29         TrimTask.cpp \
30
31 common_c_includes := \
32         system/extras/ext4_utils \
33         system/extras/f2fs_utils \
34         external/scrypt/lib/crypto \
35         frameworks/native/include \
36         system/security/keystore \
37         hardware/libhardware/include/hardware \
38         system/security/softkeymaster/include/keymaster
39
40 common_shared_libraries := \
41         libsysutils \
42         libbinder \
43         libcutils \
44         liblog \
45         libdiskconfig \
46         libhardware_legacy \
47         liblogwrap \
48         libext4_utils \
49         libf2fs_sparseblock \
50         libcrypto \
51         libselinux \
52         libutils \
53         libhardware \
54         libsoftkeymaster \
55         libbase \
56
57 common_static_libraries := \
58         libfs_mgr \
59         libsquashfs_utils \
60         libscrypt_static \
61         libmincrypt \
62         libbatteryservice
63
64 vold_conlyflags := -std=c11
65 vold_cflags := -Werror -Wall -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter
66
67 include $(CLEAR_VARS)
68
69 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
70 LOCAL_MODULE := libvold
71 LOCAL_CLANG := true
72 LOCAL_SRC_FILES := $(common_src_files)
73 LOCAL_C_INCLUDES := $(common_c_includes)
74 LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
75 LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
76 LOCAL_MODULE_TAGS := eng tests
77 LOCAL_CFLAGS := $(vold_cflags)
78 LOCAL_CONLYFLAGS := $(vold_conlyflags)
79
80 include $(BUILD_STATIC_LIBRARY)
81
82 include $(CLEAR_VARS)
83
84 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
85 LOCAL_MODULE:= vold
86 LOCAL_CLANG := true
87 LOCAL_SRC_FILES := \
88         main.cpp \
89         $(common_src_files)
90
91 LOCAL_C_INCLUDES := $(common_c_includes)
92 LOCAL_CFLAGS := $(vold_cflags)
93 LOCAL_CONLYFLAGS := $(vold_conlyflags)
94
95 ifeq ($(TARGET_HW_DISK_ENCRYPTION),true)
96 LOCAL_C_INCLUDES += $(TARGET_CRYPTFS_HW_PATH)
97 common_shared_libraries += libcryptfs_hw
98 LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION
99 endif
100
101 LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
102 LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
103
104 include $(BUILD_EXECUTABLE)
105
106 include $(CLEAR_VARS)
107
108 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
109 LOCAL_CLANG := true
110 LOCAL_SRC_FILES:= vdc.c
111 LOCAL_MODULE:= vdc
112 LOCAL_SHARED_LIBRARIES := libcutils
113 LOCAL_CFLAGS := $(vold_cflags)
114 LOCAL_CONLYFLAGS := $(vold_conlyflags)
115
116 include $(BUILD_EXECUTABLE)