blob: a1da96396e1908afae1925430c34c231d7c1d776 [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)
88endif
89
Captain Throwback49df5472020-10-19 11:13:53 -040090ifeq ($(AB_OTA_UPDATER),true)
91 include $(CLEAR_VARS)
92 LOCAL_MODULE := android.hardware.boot@1.0-service.rc
93 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -050094 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback49df5472020-10-19 11:13:53 -040095 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
bigbiffe2eae2f2021-03-07 18:47:06 -050096 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
97 include $(BUILD_PREBUILT)
Captain Throwback49df5472020-10-19 11:13:53 -040098
bigbiffe2eae2f2021-03-07 18:47:06 -050099 include $(CLEAR_VARS)
100 LOCAL_MODULE := android.hardware.boot@1.1-service.rc
101 LOCAL_MODULE_TAGS := optional
102 LOCAL_MODULE_CLASS := EXECUTABLES
103 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
104 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
105 include $(BUILD_PREBUILT)
106
107 include $(CLEAR_VARS)
108 LOCAL_MODULE := android.hardware.boot@1.1.xml
109 LOCAL_MODULE_TAGS := optional
110 LOCAL_MODULE_CLASS := EXECUTABLES
111 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/vendor/etc/vintf/manifest
Captain Throwback49df5472020-10-19 11:13:53 -0400112 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
113 include $(BUILD_PREBUILT)
114endif
115
Captain Throwbackddb0a402020-11-01 12:52:21 -0500116ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true)
117 include $(CLEAR_VARS)
nebrassy9c1709b2021-04-18 23:31:36 +0200118 LOCAL_MODULE := android.hardware.health@2.1-service.rc
Captain Throwbackddb0a402020-11-01 12:52:21 -0500119 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500120 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwbackddb0a402020-11-01 12:52:21 -0500121 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
nebrassy9c1709b2021-04-18 23:31:36 +0200122 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
123 include $(BUILD_PREBUILT)
Captain Throwbackddb0a402020-11-01 12:52:21 -0500124
nebrassy9c1709b2021-04-18 23:31:36 +0200125 include $(CLEAR_VARS)
126 LOCAL_MODULE := android.hardware.health@2.1.xml
127 LOCAL_MODULE_TAGS := optional
128 LOCAL_MODULE_CLASS := EXECUTABLES
129 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/vendor/etc/vintf/manifest
Captain Throwbackddb0a402020-11-01 12:52:21 -0500130 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
131 include $(BUILD_PREBUILT)
bigbiff477006a2021-05-14 19:51:26 -0400132
133 include $(CLEAR_VARS)
134 LOCAL_MODULE := android.hardware.health@2.0-service.rc
135 LOCAL_MODULE_TAGS := optional
136 LOCAL_MODULE_CLASS := EXECUTABLES
137 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
138 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
139 include $(BUILD_PREBUILT)
bigbiff5c083cc2021-06-10 19:55:18 -0400140
141 include $(CLEAR_VARS)
142 LOCAL_MODULE := lpdumpd.rc
143 LOCAL_MODULE_TAGS := optional
144 LOCAL_MODULE_CLASS := EXECUTABLES
145 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
146 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
147 include $(BUILD_PREBUILT)
Captain Throwbackddb0a402020-11-01 12:52:21 -0500148endif
149
Captain Throwback49df5472020-10-19 11:13:53 -0400150ifneq ($(TW_INCLUDE_CRYPTO),)
Captain Throwbackddb0a402020-11-01 12:52:21 -0500151 ifneq ($(TW_INCLUDE_CRYPTO_FBE),)
152 include $(CLEAR_VARS)
153 LOCAL_MODULE := servicemanager.rc
154 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500155 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwbackddb0a402020-11-01 12:52:21 -0500156 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
157
158 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
159 include $(BUILD_PREBUILT)
160 endif
Captain Throwback49df5472020-10-19 11:13:53 -0400161endif
162
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600163ifeq ($(TWRP_INCLUDE_LOGCAT), true)
164 ifeq ($(TARGET_USES_LOGD), true)
Captain Throwback1f127752016-01-19 17:30:20 -0500165
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600166 include $(CLEAR_VARS)
167 LOCAL_MODULE := init.recovery.logd.rc
bigbiffd58ba182020-03-23 10:02:29 -0400168 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500169 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback1f127752016-01-19 17:30:20 -0500170
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600171 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
172 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
173 # from TARGET_ROOT_OUT thereafter
174 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
Captain Throwback1f127752016-01-19 17:30:20 -0500175
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600176 LOCAL_SRC_FILES := $(LOCAL_MODULE)
177 include $(BUILD_PREBUILT)
178 endif
Captain Throwback1f127752016-01-19 17:30:20 -0500179endif
Captain Throwback5ab59642019-02-07 17:22:49 -0500180
181ifeq ($(TW_USE_TOOLBOX), true)
182 include $(CLEAR_VARS)
183 LOCAL_MODULE := init.recovery.mksh.rc
bigbiffd58ba182020-03-23 10:02:29 -0400184 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500185 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback5ab59642019-02-07 17:22:49 -0500186
187 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
188 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
189 # from TARGET_ROOT_OUT thereafter
190 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
191
192 LOCAL_SRC_FILES := $(LOCAL_MODULE)
193 include $(BUILD_PREBUILT)
194endif