d3d4741584
LOCAL_FORCE_STATIC_EXECUTABLE was not working properly for clang because -Bstatic was ignored by clang. We can now enable clang for init after the -static flag is added to link static executable files in build/core/definitions.mk. BUG: 18008984 Change-Id: I3f361b83c1e0b313914603dff33fd090cd3b116a
55 lines
1.1 KiB
Makefile
55 lines
1.1 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 \
|
|
keychords.c \
|
|
signal_handler.c \
|
|
init_parser.c \
|
|
ueventd.c \
|
|
ueventd_parser.c \
|
|
watchdogd.c
|
|
|
|
LOCAL_CFLAGS += -Wno-unused-parameter
|
|
|
|
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 -DALLOW_DISABLE_SELINUX=1
|
|
endif
|
|
|
|
# Enable ueventd logging
|
|
#LOCAL_CFLAGS += -DLOG_UEVENTS=1
|
|
|
|
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 \
|
|
libmincrypt \
|
|
libext4_utils_static
|
|
|
|
# Create symlinks
|
|
LOCAL_POST_INSTALL_CMD := $(hide) mkdir -p $(TARGET_ROOT_OUT)/sbin; \
|
|
ln -sf ../init $(TARGET_ROOT_OUT)/sbin/ueventd; \
|
|
ln -sf ../init $(TARGET_ROOT_OUT)/sbin/watchdogd
|
|
|
|
include $(BUILD_EXECUTABLE)
|