2012-01-07 11:09:42 +08:00
|
|
|
# Copyright 2011 The Android Open Source Project
|
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
2015-05-22 22:43:50 +08:00
|
|
|
common_static_libraries := \
|
|
|
|
liblogwrap \
|
|
|
|
libfec \
|
|
|
|
libfec_rs \
|
|
|
|
libbase \
|
2016-08-06 06:47:57 +08:00
|
|
|
libcrypto_utils \
|
|
|
|
libcrypto \
|
2017-01-12 06:03:11 +08:00
|
|
|
libext4_utils \
|
2016-05-14 02:19:42 +08:00
|
|
|
libsquashfs_utils \
|
2017-01-11 22:21:38 +08:00
|
|
|
libselinux \
|
|
|
|
libavb
|
2012-01-07 11:09:42 +08:00
|
|
|
|
2015-05-22 22:43:50 +08:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_CLANG := true
|
|
|
|
LOCAL_SANITIZE := integer
|
|
|
|
LOCAL_SRC_FILES:= \
|
2017-01-16 21:49:49 +08:00
|
|
|
fs_mgr.cpp \
|
2016-11-11 21:05:44 +08:00
|
|
|
fs_mgr_dm_ioctl.cpp \
|
2017-01-16 21:49:49 +08:00
|
|
|
fs_mgr_format.cpp \
|
|
|
|
fs_mgr_fstab.cpp \
|
|
|
|
fs_mgr_slotselect.cpp \
|
2017-01-11 22:21:38 +08:00
|
|
|
fs_mgr_verity.cpp \
|
|
|
|
fs_mgr_avb.cpp \
|
2017-02-17 11:15:29 +08:00
|
|
|
fs_mgr_avb_ops.cpp \
|
|
|
|
fs_mgr_boot_config.cpp
|
2015-05-22 22:43:50 +08:00
|
|
|
LOCAL_C_INCLUDES := \
|
|
|
|
$(LOCAL_PATH)/include \
|
2013-09-06 02:19:21 +08:00
|
|
|
system/vold \
|
2017-02-15 04:47:30 +08:00
|
|
|
system/extras/ext4_utils
|
2012-01-07 11:09:42 +08:00
|
|
|
LOCAL_MODULE:= libfs_mgr
|
2015-05-22 22:43:50 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
|
2012-01-07 11:09:42 +08:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
2014-05-01 06:35:00 +08:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2014-10-09 22:22:49 +08:00
|
|
|
ifneq (,$(filter userdebug,$(TARGET_BUILD_VARIANT)))
|
|
|
|
LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1
|
|
|
|
endif
|
2017-02-28 03:33:46 +08:00
|
|
|
ifneq (,$(filter eng,$(TARGET_BUILD_VARIANT)))
|
|
|
|
LOCAL_CFLAGS += -DALLOW_SKIP_SECURE_CHECK=1
|
|
|
|
endif
|
2012-01-07 11:09:42 +08:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2015-05-22 22:43:50 +08:00
|
|
|
LOCAL_CLANG := true
|
|
|
|
LOCAL_SANITIZE := integer
|
2017-01-16 21:49:49 +08:00
|
|
|
LOCAL_SRC_FILES:= fs_mgr_main.cpp
|
2012-01-07 11:09:42 +08:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_MODULE:= fs_mgr
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin
|
|
|
|
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)
|
2015-05-22 22:43:50 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES := libfs_mgr \
|
|
|
|
$(common_static_libraries) \
|
|
|
|
libcutils \
|
|
|
|
liblog \
|
|
|
|
libc \
|
2017-01-12 06:37:50 +08:00
|
|
|
libsparse \
|
2015-05-22 22:43:50 +08:00
|
|
|
libz \
|
|
|
|
libselinux
|
2015-04-02 04:26:04 +08:00
|
|
|
LOCAL_CXX_STL := libc++_static
|
2014-05-01 06:35:00 +08:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2012-01-07 11:09:42 +08:00
|
|
|
include $(BUILD_EXECUTABLE)
|