forked from CyanogenMod/android_system_vold
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Android.mk
100 lines (71 loc) · 1.9 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
BUILD_VOLD2 := false
ifneq ($(TARGET_SIMULATOR),true)
BUILD_VOLD2 := true
endif
ifeq ($(BUILD_VOLD2),true)
LOCAL_PATH:= $(call my-dir)
common_src_files := \
VolumeManager.cpp \
CommandListener.cpp \
VoldCommand.cpp \
NetlinkManager.cpp \
NetlinkHandler.cpp \
Volume.cpp \
DirectVolume.cpp \
AutoVolume.cpp \
logwrapper.c \
Process.cpp \
Fat.cpp \
Ntfs.cpp \
Loop.cpp \
Devmapper.cpp \
ResponseCode.cpp \
Xwarp.cpp
common_c_includes := \
$(KERNEL_HEADERS) \
external/openssl/include
common_shared_libraries := \
libsysutils \
libcutils \
libdiskconfig \
libcrypto
include $(CLEAR_VARS)
LOCAL_MODULE := libvold
ifeq ($(BOARD_USE_USB_MASS_STORAGE_SWITCH), true)
LOCAL_CFLAGS += -DUSE_USB_MASS_STORAGE_SWITCH
endif
LOCAL_SRC_FILES := $(common_src_files)
LOCAL_C_INCLUDES := $(common_c_includes)
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
LOCAL_MODULE_TAGS := eng tests
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
ifneq ($(BOARD_VOLD_MAX_PARTITIONS),)
LOCAL_CFLAGS += -DVOLD_MAX_PARTITIONS=$(BOARD_VOLD_MAX_PARTITIONS)
endif
ifeq ($(BOARD_VOLD_EMMC_SHARES_DEV_MAJOR), true)
LOCAL_CFLAGS += -DVOLD_EMMC_SHARES_DEV_MAJOR
endif
ifneq ($(TARGET_USE_CUSTOM_LUN_FILE_PATH),)
LOCAL_CFLAGS += -DCUSTOM_LUN_FILE=\"$(TARGET_USE_CUSTOM_LUN_FILE_PATH)\"
endif
ifneq ($(TARGET_USE_CUSTOM_SECOND_LUN_NUM),)
LOCAL_CFLAGS += -DCUSTOM_SECOND_LUN_NUM=$(TARGET_USE_CUSTOM_SECOND_LUN_NUM)
endif
LOCAL_MODULE:= vold
ifeq ($(BOARD_USE_USB_MASS_STORAGE_SWITCH), true)
LOCAL_CFLAGS += -DUSE_USB_MASS_STORAGE_SWITCH
endif
LOCAL_SRC_FILES := \
main.cpp \
$(common_src_files)
LOCAL_C_INCLUDES := $(common_c_includes)
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= vdc.c
LOCAL_MODULE:= vdc
LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
LOCAL_SHARED_LIBRARIES := libcutils
include $(BUILD_EXECUTABLE)
endif # ifeq ($(BUILD_VOLD,true)