084f0b3dd5
It looks like clang might have a miscompile that is causing SIGBUS in `ioctl_init` when the device is encrypted. Move back to GCC until we can sort this out. Bug: 18736778 Change-Id: I21ae3b9d7d9ebff8679ecc1a828b7c59f27d0903
93 lines
1.9 KiB
Makefile
93 lines
1.9 KiB
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
common_src_files := \
|
|
VolumeManager.cpp \
|
|
CommandListener.cpp \
|
|
VoldCommand.cpp \
|
|
NetlinkManager.cpp \
|
|
NetlinkHandler.cpp \
|
|
Volume.cpp \
|
|
DirectVolume.cpp \
|
|
Process.cpp \
|
|
Ext4.cpp \
|
|
Fat.cpp \
|
|
Loop.cpp \
|
|
Devmapper.cpp \
|
|
ResponseCode.cpp \
|
|
CheckBattery.cpp \
|
|
VoldUtil.c \
|
|
fstrim.c \
|
|
cryptfs.c
|
|
|
|
common_c_includes := \
|
|
system/extras/ext4_utils \
|
|
system/extras/f2fs_utils \
|
|
external/openssl/include \
|
|
external/scrypt/lib/crypto \
|
|
frameworks/native/include \
|
|
system/security/keystore \
|
|
hardware/libhardware/include/hardware \
|
|
system/security/softkeymaster/include/keymaster
|
|
|
|
common_shared_libraries := \
|
|
libsysutils \
|
|
libbinder \
|
|
libcutils \
|
|
liblog \
|
|
libdiskconfig \
|
|
libhardware_legacy \
|
|
liblogwrap \
|
|
libext4_utils \
|
|
libf2fs_sparseblock \
|
|
libcrypto \
|
|
libselinux \
|
|
libutils \
|
|
libhardware \
|
|
libsoftkeymaster
|
|
|
|
common_static_libraries := \
|
|
libfs_mgr \
|
|
libscrypt_static \
|
|
libmincrypt \
|
|
libbatteryservice
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
|
LOCAL_MODULE := libvold
|
|
LOCAL_CLANG := false
|
|
LOCAL_SRC_FILES := $(common_src_files)
|
|
LOCAL_C_INCLUDES := $(common_c_includes)
|
|
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
|
|
LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
|
|
LOCAL_MODULE_TAGS := eng tests
|
|
|
|
LOCAL_CXX_STL := libc++
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
|
LOCAL_MODULE:= vold
|
|
LOCAL_CLANG := false
|
|
LOCAL_SRC_FILES := \
|
|
main.cpp \
|
|
$(common_src_files)
|
|
|
|
LOCAL_C_INCLUDES := $(common_c_includes)
|
|
LOCAL_CFLAGS := -Werror=format
|
|
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
|
|
LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
|
|
|
|
LOCAL_CXX_STL := libc++
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
|
LOCAL_CLANG := false
|
|
LOCAL_SRC_FILES:= vdc.c
|
|
LOCAL_MODULE:= vdc
|
|
LOCAL_SHARED_LIBRARIES := libcutils
|
|
|
|
include $(BUILD_EXECUTABLE)
|