2012-01-07 04:09:42 +01:00
|
|
|
# Copyright 2011 The Android Open Source Project
|
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2014-01-23 23:22:48 +01:00
|
|
|
LOCAL_SRC_FILES:= fs_mgr.c fs_mgr_verity.c fs_mgr_fstab.c
|
2013-09-05 20:19:21 +02:00
|
|
|
LOCAL_SRC_FILES += fs_mgr_format.c
|
2012-01-07 04:09:42 +01:00
|
|
|
|
2013-09-05 20:19:21 +02:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include \
|
|
|
|
system/vold \
|
|
|
|
system/extras/ext4_utils \
|
|
|
|
external/openssl/include
|
2012-01-07 04:09:42 +01:00
|
|
|
|
|
|
|
LOCAL_MODULE:= libfs_mgr
|
2015-04-09 02:59:19 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := liblogwrap libmincrypt libext4_utils_static libsquashfs_utils
|
|
|
|
LOCAL_C_INCLUDES += system/extras/ext4_utils system/extras/squashfs_utils
|
2012-01-07 04:09:42 +01:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
2014-05-01 00:35:00 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2012-01-07 04:09:42 +01:00
|
|
|
|
2014-10-09 16:22:49 +02:00
|
|
|
ifneq (,$(filter userdebug,$(TARGET_BUILD_VARIANT)))
|
|
|
|
LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1
|
|
|
|
endif
|
|
|
|
|
2012-01-07 04:09:42 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= fs_mgr_main.c
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
|
|
|
|
|
|
|
LOCAL_MODULE:= fs_mgr
|
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin
|
|
|
|
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)
|
|
|
|
|
2015-04-09 02:59:19 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := libfs_mgr liblogwrap libcutils liblog libc libmincrypt libext4_utils_static libsquashfs_utils
|
2013-09-05 20:19:21 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES += libsparse_static libz libselinux
|
2015-04-01 22:26:04 +02:00
|
|
|
LOCAL_CXX_STL := libc++_static
|
2012-01-07 04:09:42 +01:00
|
|
|
|
2014-05-01 00:35:00 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
|
2012-01-07 04:09:42 +01:00
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|