Home | History | Annotate | Download | only in fs_mgr
      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 
      8 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
      9 
     10 LOCAL_MODULE:= libfs_mgr
     11 LOCAL_STATIC_LIBRARIES := liblogwrap libmincrypt libext4_utils_static
     12 LOCAL_C_INCLUDES += system/extras/ext4_utils
     13 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
     14 LOCAL_CFLAGS := -Werror
     15 
     16 ifneq (,$(filter userdebug,$(TARGET_BUILD_VARIANT)))
     17 LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1
     18 endif
     19 
     20 include $(BUILD_STATIC_LIBRARY)
     21 
     22 
     23 
     24 include $(CLEAR_VARS)
     25 
     26 LOCAL_SRC_FILES:= fs_mgr_main.c
     27 
     28 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
     29 
     30 LOCAL_MODULE:= fs_mgr
     31 
     32 LOCAL_MODULE_TAGS := optional
     33 LOCAL_FORCE_STATIC_EXECUTABLE := true
     34 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin
     35 LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)
     36 
     37 LOCAL_STATIC_LIBRARIES := libfs_mgr liblogwrap libcutils liblog libc libmincrypt libext4_utils_static
     38 
     39 LOCAL_CFLAGS := -Werror
     40 
     41 include $(BUILD_EXECUTABLE)
     42 
     43