blob: 4aa769c115960fcedcc59b7a1dd507532a6592db [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
bigbiff673c7ae2020-12-02 19:44:56 -050022LOCAL_MODULE_CLASS := EXECUTABLES
Matt Mowerec009e82015-01-30 13:00:49 -060023
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
bigbiff673c7ae2020-12-02 19:44:56 -050037LOCAL_MODULE_CLASS := EXECUTABLES
bigbiffad58e1b2020-07-06 20:24:34 -040038LOCAL_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
bigbiff673c7ae2020-12-02 19:44:56 -050046LOCAL_MODULE_CLASS := EXECUTABLES
bigbiffad58e1b2020-07-06 20:24:34 -040047LOCAL_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
bigbiff673c7ae2020-12-02 19:44:56 -050055LOCAL_MODULE_CLASS := EXECUTABLES
bigbiffad58e1b2020-07-06 20:24:34 -040056LOCAL_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
nebrassy50789652021-02-12 23:36:44 +010061include $(CLEAR_VARS)
62LOCAL_MODULE := nano.rc
63LOCAL_MODULE_TAGS := optional
bigbiff98203ce2021-03-03 20:39:52 -050064LOCAL_MODULE_CLASS := EXECUTABLES
nebrassy50789652021-02-12 23:36:44 +010065LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
66
67LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
68include $(BUILD_PREBUILT)
69
Captain Throwbackb3269612021-09-04 10:59:26 -040070ifneq ($(filter $(AB_OTA_UPDATER) $(PRODUCT_USE_DYNAMIC_PARTITIONS) $(TW_INCLUDE_CRYPTO), true),)
Mohd Faraz29cab7f2021-04-17 11:35:09 +020071 include $(CLEAR_VARS)
72 LOCAL_MODULE := hwservicemanager.rc
73 LOCAL_MODULE_TAGS := optional
74 LOCAL_MODULE_CLASS := EXECUTABLES
75 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
76
77 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
78 include $(BUILD_PREBUILT)
79
80 include $(CLEAR_VARS)
81 LOCAL_MODULE := vndservicemanager.rc
82 LOCAL_MODULE_TAGS := optional
83 LOCAL_MODULE_CLASS := EXECUTABLES
84 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
85
86 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
87 include $(BUILD_PREBUILT)
bigbiffdf53b6c2022-01-17 19:31:52 -050088
89 include $(CLEAR_VARS)
90 LOCAL_MODULE := keystore2.rc
91 LOCAL_MODULE_TAGS := optional
92 LOCAL_MODULE_CLASS := EXECUTABLES
93 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
94
95 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
96 include $(BUILD_PREBUILT)
97
98 include $(CLEAR_VARS)
99 LOCAL_MODULE := android.system.keystore2-service.xml
100 LOCAL_MODULE_TAGS := optional
101 LOCAL_MODULE_CLASS := EXECUTABLES
102 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/vintf/manifest
103 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
104 include $(BUILD_PREBUILT)
Mohd Faraz29cab7f2021-04-17 11:35:09 +0200105endif
106
Captain Throwback49df5472020-10-19 11:13:53 -0400107ifeq ($(AB_OTA_UPDATER),true)
108 include $(CLEAR_VARS)
109 LOCAL_MODULE := android.hardware.boot@1.0-service.rc
110 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500111 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback49df5472020-10-19 11:13:53 -0400112 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
bigbiffe2eae2f2021-03-07 18:47:06 -0500113 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
114 include $(BUILD_PREBUILT)
Captain Throwback49df5472020-10-19 11:13:53 -0400115
bigbiffe2eae2f2021-03-07 18:47:06 -0500116 include $(CLEAR_VARS)
117 LOCAL_MODULE := android.hardware.boot@1.1-service.rc
118 LOCAL_MODULE_TAGS := optional
119 LOCAL_MODULE_CLASS := EXECUTABLES
120 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
121 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
122 include $(BUILD_PREBUILT)
123
124 include $(CLEAR_VARS)
125 LOCAL_MODULE := android.hardware.boot@1.1.xml
126 LOCAL_MODULE_TAGS := optional
127 LOCAL_MODULE_CLASS := EXECUTABLES
128 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/vendor/etc/vintf/manifest
Captain Throwback49df5472020-10-19 11:13:53 -0400129 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
130 include $(BUILD_PREBUILT)
tnakamur217c05e2022-05-13 08:57:04 +0900131
132 include $(CLEAR_VARS)
133 LOCAL_MODULE := android.hardware.boot@1.2-service.rc
134 LOCAL_MODULE_TAGS := optional
135 LOCAL_MODULE_CLASS := EXECUTABLES
136 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
137 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
138 include $(BUILD_PREBUILT)
139
140 include $(CLEAR_VARS)
141 LOCAL_MODULE := android.hardware.boot@1.2.xml
142 LOCAL_MODULE_TAGS := optional
143 LOCAL_MODULE_CLASS := EXECUTABLES
144 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/vendor/etc/vintf/manifest
145 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
146 include $(BUILD_PREBUILT)
Captain Throwback49df5472020-10-19 11:13:53 -0400147endif
148
Captain Throwbackddb0a402020-11-01 12:52:21 -0500149ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true)
150 include $(CLEAR_VARS)
nebrassy9c1709b2021-04-18 23:31:36 +0200151 LOCAL_MODULE := android.hardware.health@2.1-service.rc
Captain Throwbackddb0a402020-11-01 12:52:21 -0500152 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500153 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwbackddb0a402020-11-01 12:52:21 -0500154 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
nebrassy9c1709b2021-04-18 23:31:36 +0200155 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
156 include $(BUILD_PREBUILT)
Captain Throwbackddb0a402020-11-01 12:52:21 -0500157
nebrassy9c1709b2021-04-18 23:31:36 +0200158 include $(CLEAR_VARS)
159 LOCAL_MODULE := android.hardware.health@2.1.xml
160 LOCAL_MODULE_TAGS := optional
161 LOCAL_MODULE_CLASS := EXECUTABLES
162 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/vendor/etc/vintf/manifest
Captain Throwbackddb0a402020-11-01 12:52:21 -0500163 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
164 include $(BUILD_PREBUILT)
bigbiff477006a2021-05-14 19:51:26 -0400165
166 include $(CLEAR_VARS)
167 LOCAL_MODULE := android.hardware.health@2.0-service.rc
168 LOCAL_MODULE_TAGS := optional
169 LOCAL_MODULE_CLASS := EXECUTABLES
170 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
171 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
172 include $(BUILD_PREBUILT)
bigbiff5c083cc2021-06-10 19:55:18 -0400173
174 include $(CLEAR_VARS)
175 LOCAL_MODULE := lpdumpd.rc
176 LOCAL_MODULE_TAGS := optional
177 LOCAL_MODULE_CLASS := EXECUTABLES
178 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
179 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
180 include $(BUILD_PREBUILT)
Captain Throwbackddb0a402020-11-01 12:52:21 -0500181endif
182
Captain Throwback49df5472020-10-19 11:13:53 -0400183ifneq ($(TW_INCLUDE_CRYPTO),)
Captain Throwbackddb0a402020-11-01 12:52:21 -0500184 ifneq ($(TW_INCLUDE_CRYPTO_FBE),)
185 include $(CLEAR_VARS)
186 LOCAL_MODULE := servicemanager.rc
187 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500188 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwbackddb0a402020-11-01 12:52:21 -0500189 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
190
191 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
192 include $(BUILD_PREBUILT)
193 endif
Captain Throwback49df5472020-10-19 11:13:53 -0400194endif
195
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600196ifeq ($(TWRP_INCLUDE_LOGCAT), true)
197 ifeq ($(TARGET_USES_LOGD), true)
Captain Throwback1f127752016-01-19 17:30:20 -0500198
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600199 include $(CLEAR_VARS)
200 LOCAL_MODULE := init.recovery.logd.rc
bigbiffd58ba182020-03-23 10:02:29 -0400201 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500202 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback1f127752016-01-19 17:30:20 -0500203
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600204 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
205 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
206 # from TARGET_ROOT_OUT thereafter
207 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
Captain Throwback1f127752016-01-19 17:30:20 -0500208
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600209 LOCAL_SRC_FILES := $(LOCAL_MODULE)
210 include $(BUILD_PREBUILT)
211 endif
Captain Throwback1f127752016-01-19 17:30:20 -0500212endif
Captain Throwback5ab59642019-02-07 17:22:49 -0500213
214ifeq ($(TW_USE_TOOLBOX), true)
215 include $(CLEAR_VARS)
216 LOCAL_MODULE := init.recovery.mksh.rc
bigbiffd58ba182020-03-23 10:02:29 -0400217 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500218 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback5ab59642019-02-07 17:22:49 -0500219
220 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
221 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
222 # from TARGET_ROOT_OUT thereafter
223 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
224
225 LOCAL_SRC_FILES := $(LOCAL_MODULE)
226 include $(BUILD_PREBUILT)
227endif