2012-01-07 11:09:42 +08:00
|
|
|
# Copyright 2011 The Android Open Source Project
|
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= fs_mgr.c
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libfs_mgr
|
fs_mgr: Capture the output of e2fsck and add to the kernel log
Currently, the output of e2fsck is not saved, and we have no insight
into how many errors e2fsck is finding and fixing. Using the new
abbreviated logging feature in liblogwrap, up to the first 100 lines,
and last 4K bytes of the output of e2fsck is captured by fs_mgr, and
added to the kernel log.
Usually, the filesystem will be clean, and this will only add a few
lines to the kernel log on boot, but when things go wrong, it should
save enough to indicate what the problem is, without potentially
filling the kernel log with only e2fsck output if the filesystem is
really corrupted.
Change-Id: I9c264798e6fe721c8f818b5ce15d0975027ddbdd
2013-03-20 10:38:44 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES := liblogwrap
|
2012-01-07 11:09:42 +08:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
2013-04-16 03:33:17 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES := libfs_mgr liblogwrap libcutils liblog libc
|
2012-01-07 11:09:42 +08:00
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|