blob: 1c889127b7c801a01e4879f15cef4a2ee0edb929 [file] [log] [blame]
Matt Mowerec009e82015-01-30 13:00:49 -06001# Copyright (C) 2015 TeamWin Recovery Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Matt Mowerec009e82015-01-30 13:00:49 -060015LOCAL_PATH := $(call my-dir)
16
Captain Throwback1f127752016-01-19 17:30:20 -050017ifneq ($(TW_EXCLUDE_DEFAULT_USB_INIT), true)
18
Matt Mowerec009e82015-01-30 13:00:49 -060019include $(CLEAR_VARS)
20LOCAL_MODULE := init.recovery.usb.rc
bigbiffd58ba182020-03-23 10:02:29 -040021LOCAL_MODULE_TAGS := optional
Matt Mowerec009e82015-01-30 13:00:49 -060022LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
23
24# Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
25# during ramdisk creation and only allows init.recovery.*.rc files to be copied
26# from TARGET_ROOT_OUT thereafter
27LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
28
29LOCAL_SRC_FILES := $(LOCAL_MODULE)
30include $(BUILD_PREBUILT)
31
32endif
Captain Throwback1f127752016-01-19 17:30:20 -050033
bigbiffad58e1b2020-07-06 20:24:34 -040034include $(CLEAR_VARS)
35LOCAL_MODULE := init.recovery.service.rc
36LOCAL_MODULE_TAGS := optional
37LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
38LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
Ethan Yonkerf1179622016-08-25 15:32:21 -050039
bigbiffad58e1b2020-07-06 20:24:34 -040040LOCAL_SRC_FILES := init.recovery.service22.rc
41include $(BUILD_PREBUILT)
Ethan Yonkerf1179622016-08-25 15:32:21 -050042
bigbiffad58e1b2020-07-06 20:24:34 -040043include $(CLEAR_VARS)
44LOCAL_MODULE := init.recovery.hlthchrg.rc
45LOCAL_MODULE_TAGS := optional
46LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
47LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
Ethan Yonkerf1179622016-08-25 15:32:21 -050048
bigbiffad58e1b2020-07-06 20:24:34 -040049LOCAL_SRC_FILES := init.recovery.hlthchrg26.rc
50include $(BUILD_PREBUILT)
Ethan Yonker8373cfe2017-09-08 06:50:54 -050051
bigbiffad58e1b2020-07-06 20:24:34 -040052include $(CLEAR_VARS)
53LOCAL_MODULE := init.recovery.ldconfig.rc
54LOCAL_MODULE_TAGS := optional
55LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
56LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
Captain Throwback170964d2019-10-21 19:42:50 -040057
bigbiffad58e1b2020-07-06 20:24:34 -040058LOCAL_SRC_FILES := init.recovery.ldconfig.rc
59include $(BUILD_PREBUILT)
Ethan Yonker8373cfe2017-09-08 06:50:54 -050060
Captain Throwbackca2ba932020-10-14 12:45:52 -040061include $(CLEAR_VARS)
62LOCAL_MODULE := hwservicemanager.rc
63LOCAL_MODULE_TAGS := optional
64LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
65LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
66
67LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
68include $(BUILD_PREBUILT)
69
70include $(CLEAR_VARS)
71LOCAL_MODULE := servicemanager.rc
72LOCAL_MODULE_TAGS := optional
73LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
74LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
75
76LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
77include $(BUILD_PREBUILT)
78
Ethan Yonkere5a288c2016-02-15 09:23:57 -060079ifeq ($(TWRP_INCLUDE_LOGCAT), true)
80 ifeq ($(TARGET_USES_LOGD), true)
Captain Throwback1f127752016-01-19 17:30:20 -050081
Ethan Yonkere5a288c2016-02-15 09:23:57 -060082 include $(CLEAR_VARS)
83 LOCAL_MODULE := init.recovery.logd.rc
bigbiffd58ba182020-03-23 10:02:29 -040084 LOCAL_MODULE_TAGS := optional
Ethan Yonkere5a288c2016-02-15 09:23:57 -060085 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
Captain Throwback1f127752016-01-19 17:30:20 -050086
Ethan Yonkere5a288c2016-02-15 09:23:57 -060087 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
88 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
89 # from TARGET_ROOT_OUT thereafter
90 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
Captain Throwback1f127752016-01-19 17:30:20 -050091
Ethan Yonkere5a288c2016-02-15 09:23:57 -060092 LOCAL_SRC_FILES := $(LOCAL_MODULE)
93 include $(BUILD_PREBUILT)
94 endif
Captain Throwback1f127752016-01-19 17:30:20 -050095endif
Captain Throwback5ab59642019-02-07 17:22:49 -050096
97ifeq ($(TW_USE_TOOLBOX), true)
98 include $(CLEAR_VARS)
99 LOCAL_MODULE := init.recovery.mksh.rc
bigbiffd58ba182020-03-23 10:02:29 -0400100 LOCAL_MODULE_TAGS := optional
Captain Throwback5ab59642019-02-07 17:22:49 -0500101 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
102
103 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
104 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
105 # from TARGET_ROOT_OUT thereafter
106 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
107
108 LOCAL_SRC_FILES := $(LOCAL_MODULE)
109 include $(BUILD_PREBUILT)
110endif