bf021b4cd7
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
63 lines
1.4 KiB
Makefile
63 lines
1.4 KiB
Makefile
# Copyright 2005 The Android Open Source Project
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
builtins.c \
|
|
init.c \
|
|
devices.c \
|
|
property_service.c \
|
|
util.c \
|
|
parser.c \
|
|
logo.c \
|
|
keychords.c \
|
|
signal_handler.c \
|
|
init_parser.c \
|
|
ueventd.c \
|
|
ueventd_parser.c \
|
|
watchdogd.c
|
|
|
|
ifeq ($(strip $(INIT_BOOTCHART)),true)
|
|
LOCAL_SRC_FILES += bootchart.c
|
|
LOCAL_CFLAGS += -DBOOTCHART=1
|
|
endif
|
|
|
|
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
|
|
LOCAL_CFLAGS += -DALLOW_LOCAL_PROP_OVERRIDE=1
|
|
endif
|
|
|
|
LOCAL_MODULE:= init
|
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
|
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libfs_mgr \
|
|
liblogwrap \
|
|
libcutils \
|
|
liblog \
|
|
libc \
|
|
libselinux
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
# Make a symlink from /sbin/ueventd and /sbin/watchdogd to /init
|
|
SYMLINKS := \
|
|
$(TARGET_ROOT_OUT)/sbin/ueventd \
|
|
$(TARGET_ROOT_OUT)/sbin/watchdogd
|
|
|
|
$(SYMLINKS): INIT_BINARY := $(LOCAL_MODULE)
|
|
$(SYMLINKS): $(LOCAL_INSTALLED_MODULE) $(LOCAL_PATH)/Android.mk
|
|
@echo "Symlink: $@ -> ../$(INIT_BINARY)"
|
|
@mkdir -p $(dir $@)
|
|
@rm -rf $@
|
|
$(hide) ln -sf ../$(INIT_BINARY) $@
|
|
|
|
ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS)
|
|
|
|
# We need this so that the installed files could be picked up based on the
|
|
# local module name
|
|
ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \
|
|
$(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS)
|