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