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