blob: f07a2c60c65d22e5aa81bae3ecbd45ebae6b0272 [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
Captain Throwback49df5472020-10-19 11:13:53 -040079include $(CLEAR_VARS)
80LOCAL_MODULE := android.hardware.health@2.0-service.rc
81LOCAL_MODULE_TAGS := optional
82LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
83LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
84
85LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
86include $(BUILD_PREBUILT)
87
88ifeq ($(AB_OTA_UPDATER),true)
89 include $(CLEAR_VARS)
90 LOCAL_MODULE := android.hardware.boot@1.0-service.rc
91 LOCAL_MODULE_TAGS := optional
92 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
93 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
94
95 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
96 include $(BUILD_PREBUILT)
97endif
98
99ifneq ($(TW_INCLUDE_CRYPTO),)
100 include $(CLEAR_VARS)
101 LOCAL_MODULE := vndservicemanager.rc
102 LOCAL_MODULE_TAGS := optional
103 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
104 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
105
106 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
107 include $(BUILD_PREBUILT)
108endif
109
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600110ifeq ($(TWRP_INCLUDE_LOGCAT), true)
111 ifeq ($(TARGET_USES_LOGD), true)
Captain Throwback1f127752016-01-19 17:30:20 -0500112
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600113 include $(CLEAR_VARS)
114 LOCAL_MODULE := init.recovery.logd.rc
bigbiffd58ba182020-03-23 10:02:29 -0400115 LOCAL_MODULE_TAGS := optional
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600116 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
Captain Throwback1f127752016-01-19 17:30:20 -0500117
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600118 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
119 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
120 # from TARGET_ROOT_OUT thereafter
121 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
Captain Throwback1f127752016-01-19 17:30:20 -0500122
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600123 LOCAL_SRC_FILES := $(LOCAL_MODULE)
124 include $(BUILD_PREBUILT)
125 endif
Captain Throwback1f127752016-01-19 17:30:20 -0500126endif
Captain Throwback5ab59642019-02-07 17:22:49 -0500127
128ifeq ($(TW_USE_TOOLBOX), true)
129 include $(CLEAR_VARS)
130 LOCAL_MODULE := init.recovery.mksh.rc
bigbiffd58ba182020-03-23 10:02:29 -0400131 LOCAL_MODULE_TAGS := optional
Captain Throwback5ab59642019-02-07 17:22:49 -0500132 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
133
134 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
135 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
136 # from TARGET_ROOT_OUT thereafter
137 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
138
139 LOCAL_SRC_FILES := $(LOCAL_MODULE)
140 include $(BUILD_PREBUILT)
141endif