1 # Copyright 2011 The Android Open Source Project 2 3 LOCAL_PATH:= $(call my-dir) 4 include $(CLEAR_VARS) 5 6 LOCAL_SRC_FILES:= fs_mgr.c fs_mgr_verity.c fs_mgr_fstab.c 7 LOCAL_SRC_FILES += fs_mgr_format.c 8 9 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include \ 10 system/vold \ 11 system/extras/ext4_utils \ 12 external/openssl/include 13 14 LOCAL_MODULE:= libfs_mgr 15 LOCAL_STATIC_LIBRARIES := liblogwrap libmincrypt libext4_utils_static libsquashfs_utils 16 LOCAL_C_INCLUDES += system/extras/ext4_utils system/extras/squashfs_utils 17 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 18 LOCAL_CFLAGS := -Werror 19 20 ifneq (,$(filter userdebug,$(TARGET_BUILD_VARIANT))) 21 LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1 22 endif 23 24 include $(BUILD_STATIC_LIBRARY) 25 26 27 28 include $(CLEAR_VARS) 29 30 LOCAL_SRC_FILES:= fs_mgr_main.c 31 32 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 33 34 LOCAL_MODULE:= fs_mgr 35 36 LOCAL_MODULE_TAGS := optional 37 LOCAL_FORCE_STATIC_EXECUTABLE := true 38 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin 39 LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) 40 41 LOCAL_STATIC_LIBRARIES := libfs_mgr liblogwrap libcutils liblog libc libmincrypt libext4_utils_static libsquashfs_utils 42 LOCAL_STATIC_LIBRARIES += libsparse_static libz libselinux 43 LOCAL_CXX_STL := libc++_static 44 45 LOCAL_CFLAGS := -Werror 46 47 include $(BUILD_EXECUTABLE) 48 49