1# Copyright 2011 The Android Open Source Project 2 3LOCAL_PATH:= $(call my-dir) 4 5common_static_libraries := \ 6 liblogwrap \ 7 libfec \ 8 libfec_rs \ 9 libbase \ 10 libcrypto_utils \ 11 libcrypto \ 12 libext4_utils \ 13 libsquashfs_utils \ 14 libselinux \ 15 libavb 16 17include $(CLEAR_VARS) 18LOCAL_CLANG := true 19LOCAL_SANITIZE := integer 20LOCAL_SRC_FILES:= \ 21 fs_mgr.cpp \ 22 fs_mgr_dm_ioctl.cpp \ 23 fs_mgr_format.cpp \ 24 fs_mgr_fstab.cpp \ 25 fs_mgr_slotselect.cpp \ 26 fs_mgr_verity.cpp \ 27 fs_mgr_avb.cpp \ 28 fs_mgr_avb_ops.cpp \ 29 fs_mgr_boot_config.cpp 30LOCAL_C_INCLUDES := \ 31 $(LOCAL_PATH)/include \ 32 system/vold \ 33 system/extras/ext4_utils 34LOCAL_MODULE:= libfs_mgr 35LOCAL_STATIC_LIBRARIES := $(common_static_libraries) 36LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 37LOCAL_CFLAGS := -Werror 38ifneq (,$(filter userdebug,$(TARGET_BUILD_VARIANT))) 39LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1 40endif 41ifneq (,$(filter eng,$(TARGET_BUILD_VARIANT))) 42LOCAL_CFLAGS += -DALLOW_SKIP_SECURE_CHECK=1 43endif 44include $(BUILD_STATIC_LIBRARY) 45 46include $(CLEAR_VARS) 47LOCAL_CLANG := true 48LOCAL_SANITIZE := integer 49LOCAL_SRC_FILES:= fs_mgr_main.cpp 50LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 51LOCAL_MODULE:= fs_mgr 52LOCAL_MODULE_TAGS := optional 53LOCAL_FORCE_STATIC_EXECUTABLE := true 54LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin 55LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) 56LOCAL_STATIC_LIBRARIES := libfs_mgr \ 57 $(common_static_libraries) \ 58 libcutils \ 59 liblog \ 60 libc \ 61 libsparse \ 62 libz \ 63 libselinux 64LOCAL_CXX_STL := libc++_static 65LOCAL_CFLAGS := -Werror 66include $(BUILD_EXECUTABLE) 67