blob: 3fe45c49be64f4c24b30ff64e085c7d83e40c4de [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 Throwback49df5472020-10-19 11:13:53 -040070ifeq ($(AB_OTA_UPDATER),true)
71 include $(CLEAR_VARS)
72 LOCAL_MODULE := android.hardware.boot@1.0-service.rc
73 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -050074 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback49df5472020-10-19 11:13:53 -040075 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
76
77 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
78 include $(BUILD_PREBUILT)
79endif
80
Captain Throwbackddb0a402020-11-01 12:52:21 -050081ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true)
82 include $(CLEAR_VARS)
83 LOCAL_MODULE := android.hardware.health@2.0-service.rc
84 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -050085 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwbackddb0a402020-11-01 12:52:21 -050086 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
87
88 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
89 include $(BUILD_PREBUILT)
90endif
91
Captain Throwback49df5472020-10-19 11:13:53 -040092ifneq ($(TW_INCLUDE_CRYPTO),)
93 include $(CLEAR_VARS)
Captain Throwbackddb0a402020-11-01 12:52:21 -050094 LOCAL_MODULE := hwservicemanager.rc
95 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -050096 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwbackddb0a402020-11-01 12:52:21 -050097 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
98
99 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
100 include $(BUILD_PREBUILT)
101
102 include $(CLEAR_VARS)
Captain Throwback49df5472020-10-19 11:13:53 -0400103 LOCAL_MODULE := vndservicemanager.rc
104 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500105 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback49df5472020-10-19 11:13:53 -0400106 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
107
108 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
109 include $(BUILD_PREBUILT)
Captain Throwbackddb0a402020-11-01 12:52:21 -0500110
111 ifneq ($(TW_INCLUDE_CRYPTO_FBE),)
112 include $(CLEAR_VARS)
113 LOCAL_MODULE := servicemanager.rc
114 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500115 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwbackddb0a402020-11-01 12:52:21 -0500116 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
117
118 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
119 include $(BUILD_PREBUILT)
120 endif
Captain Throwback49df5472020-10-19 11:13:53 -0400121endif
122
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600123ifeq ($(TWRP_INCLUDE_LOGCAT), true)
124 ifeq ($(TARGET_USES_LOGD), true)
Captain Throwback1f127752016-01-19 17:30:20 -0500125
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600126 include $(CLEAR_VARS)
127 LOCAL_MODULE := init.recovery.logd.rc
bigbiffd58ba182020-03-23 10:02:29 -0400128 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500129 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback1f127752016-01-19 17:30:20 -0500130
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600131 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
132 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
133 # from TARGET_ROOT_OUT thereafter
134 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
Captain Throwback1f127752016-01-19 17:30:20 -0500135
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600136 LOCAL_SRC_FILES := $(LOCAL_MODULE)
137 include $(BUILD_PREBUILT)
138 endif
Captain Throwback1f127752016-01-19 17:30:20 -0500139endif
Captain Throwback5ab59642019-02-07 17:22:49 -0500140
141ifeq ($(TW_USE_TOOLBOX), true)
142 include $(CLEAR_VARS)
143 LOCAL_MODULE := init.recovery.mksh.rc
bigbiffd58ba182020-03-23 10:02:29 -0400144 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500145 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback5ab59642019-02-07 17:22:49 -0500146
147 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
148 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
149 # from TARGET_ROOT_OUT thereafter
150 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
151
152 LOCAL_SRC_FILES := $(LOCAL_MODULE)
153 include $(BUILD_PREBUILT)
154endif