3ed8236de1
If the already existing filesystem encompasses the entire /data partition and does not leave the last 16 Kbytes for the crypto footer, refuse to do encrypt in place and return an error. This is only an issue for folks with early development systems trying to encrypt an old /data. This should not be seen in released devices. Also, if there is an error, try to report back to the UI what the error was so it can deal with it. Change-Id: If66781a4fe03034c96c3dd12075240deb8663db0
82 lines
1.3 KiB
Makefile
82 lines
1.3 KiB
Makefile
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 \
|
|
logwrapper.c \
|
|
Process.cpp \
|
|
Fat.cpp \
|
|
Loop.cpp \
|
|
Devmapper.cpp \
|
|
ResponseCode.cpp \
|
|
Xwarp.cpp \
|
|
cryptfs.c
|
|
|
|
common_c_includes := \
|
|
$(KERNEL_HEADERS) \
|
|
system/extras/ext4_utils \
|
|
external/openssl/include
|
|
|
|
common_shared_libraries := \
|
|
libsysutils \
|
|
libcutils \
|
|
libdiskconfig \
|
|
libcrypto
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := libvold
|
|
|
|
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)
|
|
|
|
LOCAL_MODULE:= vold
|
|
|
|
LOCAL_SRC_FILES := \
|
|
main.cpp \
|
|
$(common_src_files)
|
|
|
|
LOCAL_C_INCLUDES := $(common_c_includes)
|
|
|
|
LOCAL_CFLAGS :=
|
|
|
|
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_CFLAGS :=
|
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
endif # ifeq ($(BUILD_VOLD,true)
|