1 # Copyright 2011 The Android Open Source Project 2 3 LOCAL_PATH:= $(call my-dir) 4 5 common_static_libraries := \ 6 liblogwrap \ 7 libfec \ 8 libfec_rs \ 9 libbase \ 10 libmincrypt \ 11 libcrypto_static \ 12 libext4_utils_static \ 13 libsquashfs_utils 14 15 include $(CLEAR_VARS) 16 LOCAL_CLANG := true 17 LOCAL_SANITIZE := integer 18 LOCAL_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 24 LOCAL_C_INCLUDES := \ 25 $(LOCAL_PATH)/include \ 26 system/vold \ 27 system/extras/ext4_utils \ 28 external/openssl/include \ 29 bootable/recovery 30 LOCAL_MODULE:= libfs_mgr 31 LOCAL_STATIC_LIBRARIES := $(common_static_libraries) 32 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 33 LOCAL_CFLAGS := -Werror 34 ifneq (,$(filter userdebug,$(TARGET_BUILD_VARIANT))) 35 LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1 36 endif 37 include $(BUILD_STATIC_LIBRARY) 38 39 include $(CLEAR_VARS) 40 LOCAL_CLANG := true 41 LOCAL_SANITIZE := integer 42 LOCAL_SRC_FILES:= fs_mgr_main.c 43 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 44 LOCAL_MODULE:= fs_mgr 45 LOCAL_MODULE_TAGS := optional 46 LOCAL_FORCE_STATIC_EXECUTABLE := true 47 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin 48 LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) 49 LOCAL_STATIC_LIBRARIES := libfs_mgr \ 50 $(common_static_libraries) \ 51 libcutils \ 52 liblog \ 53 libc \ 54 libsparse_static \ 55 libz \ 56 libselinux 57 LOCAL_CXX_STL := libc++_static 58 LOCAL_CFLAGS := -Werror 59 include $(BUILD_EXECUTABLE) 60