1LOCAL_PATH:= $(call my-dir) 2 3common_src_files := \ 4 VolumeManager.cpp \ 5 CommandListener.cpp \ 6 VoldCommand.cpp \ 7 NetlinkManager.cpp \ 8 NetlinkHandler.cpp \ 9 Volume.cpp \ 10 DirectVolume.cpp \ 11 Process.cpp \ 12 Ext4.cpp \ 13 Fat.cpp \ 14 Loop.cpp \ 15 Devmapper.cpp \ 16 ResponseCode.cpp \ 17 CheckBattery.cpp \ 18 VoldUtil.c \ 19 fstrim.c \ 20 cryptfs.c 21 22common_c_includes := \ 23 system/extras/ext4_utils \ 24 system/extras/f2fs_utils \ 25 external/openssl/include \ 26 external/stlport/stlport \ 27 bionic \ 28 external/scrypt/lib/crypto \ 29 frameworks/native/include \ 30 system/security/keystore \ 31 hardware/libhardware/include/hardware \ 32 system/security/softkeymaster/include/keymaster 33 34common_shared_libraries := \ 35 libsysutils \ 36 libstlport \ 37 libbinder \ 38 libcutils \ 39 liblog \ 40 libdiskconfig \ 41 libhardware_legacy \ 42 liblogwrap \ 43 libext4_utils \ 44 libf2fs_sparseblock \ 45 libcrypto \ 46 libselinux \ 47 libutils \ 48 libhardware \ 49 libsoftkeymaster 50 51common_static_libraries := \ 52 libfs_mgr \ 53 libscrypt_static \ 54 libmincrypt \ 55 libbatteryservice 56 57include $(CLEAR_VARS) 58 59LOCAL_MODULE := libvold 60 61LOCAL_SRC_FILES := $(common_src_files) 62 63LOCAL_C_INCLUDES := $(common_c_includes) 64 65LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) 66 67LOCAL_STATIC_LIBRARIES := $(common_static_libraries) 68 69LOCAL_MODULE_TAGS := eng tests 70 71include $(BUILD_STATIC_LIBRARY) 72 73include $(CLEAR_VARS) 74 75LOCAL_MODULE:= vold 76 77LOCAL_SRC_FILES := \ 78 main.cpp \ 79 $(common_src_files) 80 81LOCAL_C_INCLUDES := $(common_c_includes) 82 83LOCAL_CFLAGS := -Werror=format 84 85ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) 86LOCAL_C_INCLUDES += $(TARGET_CRYPTFS_HW_PATH) 87common_shared_libraries += libcryptfs_hw 88LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION 89endif 90 91LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) 92 93LOCAL_STATIC_LIBRARIES := $(common_static_libraries) 94 95include $(BUILD_EXECUTABLE) 96 97include $(CLEAR_VARS) 98 99LOCAL_SRC_FILES:= vdc.c 100 101LOCAL_MODULE:= vdc 102 103LOCAL_C_INCLUDES := 104 105LOCAL_CFLAGS := 106 107LOCAL_SHARED_LIBRARIES := libcutils 108 109include $(BUILD_EXECUTABLE) 110