The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | # Copyright 2005 The Android Open Source Project |
| 2 | |
| 3 | LOCAL_PATH:= $(call my-dir) |
| 4 | include $(CLEAR_VARS) |
| 5 | |
| 6 | LOCAL_SRC_FILES:= \ |
Elliott Hughes | f3cf438 | 2015-02-03 17:12:07 -0800 | [diff] [blame^] | 7 | builtins.cpp \ |
| 8 | devices.cpp \ |
| 9 | init.cpp \ |
| 10 | init_parser.cpp \ |
| 11 | keychords.cpp \ |
| 12 | parser.cpp \ |
| 13 | property_service.cpp \ |
| 14 | signal_handler.cpp \ |
| 15 | ueventd.cpp \ |
| 16 | ueventd_parser.cpp \ |
| 17 | util.cpp \ |
| 18 | watchdogd.cpp \ |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 19 | |
Elliott Hughes | f3cf438 | 2015-02-03 17:12:07 -0800 | [diff] [blame^] | 20 | LOCAL_CPPFLAGS += \ |
Elliott Hughes | d3e37d1 | 2015-02-02 16:43:32 -0800 | [diff] [blame] | 21 | -Wall \ |
| 22 | -Werror -Wno-error=deprecated-declarations \ |
| 23 | -Wno-unused-parameter \ |
Mark Salyzyn | 322445c | 2014-04-01 15:15:38 -0700 | [diff] [blame] | 24 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 25 | ifeq ($(strip $(INIT_BOOTCHART)),true) |
Elliott Hughes | f3cf438 | 2015-02-03 17:12:07 -0800 | [diff] [blame^] | 26 | LOCAL_SRC_FILES += bootchart.cpp |
| 27 | LOCAL_CPPFLAGS += -DBOOTCHART=1 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 28 | endif |
| 29 | |
Nick Kralevich | 0dbda7e | 2012-01-18 13:38:34 -0800 | [diff] [blame] | 30 | ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
Elliott Hughes | f3cf438 | 2015-02-03 17:12:07 -0800 | [diff] [blame^] | 31 | LOCAL_CPPFLAGS += -DALLOW_LOCAL_PROP_OVERRIDE=1 -DALLOW_DISABLE_SELINUX=1 |
Nick Kralevich | 0dbda7e | 2012-01-18 13:38:34 -0800 | [diff] [blame] | 32 | endif |
| 33 | |
Alex Ray | 18ccc1b | 2014-03-06 15:07:42 -0800 | [diff] [blame] | 34 | # Enable ueventd logging |
Elliott Hughes | f3cf438 | 2015-02-03 17:12:07 -0800 | [diff] [blame^] | 35 | #LOCAL_CPPFLAGS += -DLOG_UEVENTS=1 |
Alex Ray | 18ccc1b | 2014-03-06 15:07:42 -0800 | [diff] [blame] | 36 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 37 | LOCAL_MODULE:= init |
| 38 | |
| 39 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 40 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) |
| 41 | LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) |
| 42 | |
Kenny Root | b5982bf | 2012-10-16 23:07:05 -0700 | [diff] [blame] | 43 | LOCAL_STATIC_LIBRARIES := \ |
| 44 | libfs_mgr \ |
Ken Sumrall | bf021b4 | 2013-03-19 19:38:44 -0700 | [diff] [blame] | 45 | liblogwrap \ |
Kenny Root | b5982bf | 2012-10-16 23:07:05 -0700 | [diff] [blame] | 46 | libcutils \ |
Ken Sumrall | bf021b4 | 2013-03-19 19:38:44 -0700 | [diff] [blame] | 47 | liblog \ |
Kenny Root | b5982bf | 2012-10-16 23:07:05 -0700 | [diff] [blame] | 48 | libc \ |
Geremy Condra | 3ad3d1c | 2013-02-22 18:11:41 -0800 | [diff] [blame] | 49 | libselinux \ |
| 50 | libmincrypt \ |
| 51 | libext4_utils_static |
Stephen Smalley | e46f9d5 | 2012-01-13 08:48:47 -0500 | [diff] [blame] | 52 | |
Ying Wang | dbb78d6 | 2014-11-24 15:43:34 -0800 | [diff] [blame] | 53 | # Create symlinks |
| 54 | LOCAL_POST_INSTALL_CMD := $(hide) mkdir -p $(TARGET_ROOT_OUT)/sbin; \ |
| 55 | ln -sf ../init $(TARGET_ROOT_OUT)/sbin/ueventd; \ |
| 56 | ln -sf ../init $(TARGET_ROOT_OUT)/sbin/watchdogd |
Alex Ray | 18ccc1b | 2014-03-06 15:07:42 -0800 | [diff] [blame] | 57 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 58 | include $(BUILD_EXECUTABLE) |