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 libmincrypt \ 11 libcrypto_static \ 12 libext4_utils_static \ 13 libsquashfs_utils 14 15include $(CLEAR_VARS) 16LOCAL_CLANG := true 17LOCAL_SANITIZE := integer 18LOCAL_SRC_FILES:= \ 19 fs_mgr.c \ 20 fs_mgr_format.c \ 21 fs_mgr_fstab.c \ 22 fs_mgr_slotselect.c \ 23 fs_mgr_verity.cpp 24LOCAL_C_INCLUDES := \ 25 $(LOCAL_PATH)/include \ 26 system/vold \ 27 system/extras/ext4_utils \ 28 external/openssl/include \ 29 bootable/recovery 30LOCAL_MODULE:= libfs_mgr 31LOCAL_STATIC_LIBRARIES := $(common_static_libraries) 32LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 33LOCAL_CFLAGS := -Werror 34ifneq (,$(filter userdebug,$(TARGET_BUILD_VARIANT))) 35LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1 36endif 37include $(BUILD_STATIC_LIBRARY) 38 39include $(CLEAR_VARS) 40LOCAL_CLANG := true 41LOCAL_SANITIZE := integer 42LOCAL_SRC_FILES:= fs_mgr_main.c 43LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 44LOCAL_MODULE:= fs_mgr 45LOCAL_MODULE_TAGS := optional 46LOCAL_FORCE_STATIC_EXECUTABLE := true 47LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin 48LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) 49LOCAL_STATIC_LIBRARIES := libfs_mgr \ 50 $(common_static_libraries) \ 51 libcutils \ 52 liblog \ 53 libc \ 54 libsparse_static \ 55 libz \ 56 libselinux 57LOCAL_CXX_STL := libc++_static 58LOCAL_CFLAGS := -Werror 59include $(BUILD_EXECUTABLE) 60