blob: 58b45adc348bd1222c92c6225c0fdce04a61258e [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
Captain Throwback49df5472020-10-19 11:13:53 -040061ifeq ($(AB_OTA_UPDATER),true)
62 include $(CLEAR_VARS)
63 LOCAL_MODULE := android.hardware.boot@1.0-service.rc
64 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -050065 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback49df5472020-10-19 11:13:53 -040066 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
67
68 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
69 include $(BUILD_PREBUILT)
70endif
71
Captain Throwbackddb0a402020-11-01 12:52:21 -050072ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true)
73 include $(CLEAR_VARS)
74 LOCAL_MODULE := android.hardware.health@2.0-service.rc
75 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -050076 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwbackddb0a402020-11-01 12:52:21 -050077 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
78
79 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
80 include $(BUILD_PREBUILT)
81endif
82
Captain Throwback49df5472020-10-19 11:13:53 -040083ifneq ($(TW_INCLUDE_CRYPTO),)
84 include $(CLEAR_VARS)
Captain Throwbackddb0a402020-11-01 12:52:21 -050085 LOCAL_MODULE := hwservicemanager.rc
86 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -050087 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwbackddb0a402020-11-01 12:52:21 -050088 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
89
90 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
91 include $(BUILD_PREBUILT)
92
93 include $(CLEAR_VARS)
Captain Throwback49df5472020-10-19 11:13:53 -040094 LOCAL_MODULE := vndservicemanager.rc
95 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -050096 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback49df5472020-10-19 11:13:53 -040097 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
98
99 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
100 include $(BUILD_PREBUILT)
Captain Throwbackddb0a402020-11-01 12:52:21 -0500101
102 ifneq ($(TW_INCLUDE_CRYPTO_FBE),)
103 include $(CLEAR_VARS)
104 LOCAL_MODULE := servicemanager.rc
105 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500106 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwbackddb0a402020-11-01 12:52:21 -0500107 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/init
108
109 LOCAL_SRC_FILES := init/$(LOCAL_MODULE)
110 include $(BUILD_PREBUILT)
111 endif
Captain Throwback49df5472020-10-19 11:13:53 -0400112endif
113
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600114ifeq ($(TWRP_INCLUDE_LOGCAT), true)
115 ifeq ($(TARGET_USES_LOGD), true)
Captain Throwback1f127752016-01-19 17:30:20 -0500116
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600117 include $(CLEAR_VARS)
118 LOCAL_MODULE := init.recovery.logd.rc
bigbiffd58ba182020-03-23 10:02:29 -0400119 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500120 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback1f127752016-01-19 17:30:20 -0500121
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600122 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
123 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
124 # from TARGET_ROOT_OUT thereafter
125 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
Captain Throwback1f127752016-01-19 17:30:20 -0500126
Ethan Yonkere5a288c2016-02-15 09:23:57 -0600127 LOCAL_SRC_FILES := $(LOCAL_MODULE)
128 include $(BUILD_PREBUILT)
129 endif
Captain Throwback1f127752016-01-19 17:30:20 -0500130endif
Captain Throwback5ab59642019-02-07 17:22:49 -0500131
132ifeq ($(TW_USE_TOOLBOX), true)
133 include $(CLEAR_VARS)
134 LOCAL_MODULE := init.recovery.mksh.rc
bigbiffd58ba182020-03-23 10:02:29 -0400135 LOCAL_MODULE_TAGS := optional
bigbiff673c7ae2020-12-02 19:44:56 -0500136 LOCAL_MODULE_CLASS := EXECUTABLES
Captain Throwback5ab59642019-02-07 17:22:49 -0500137
138 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
139 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
140 # from TARGET_ROOT_OUT thereafter
141 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
142
143 LOCAL_SRC_FILES := $(LOCAL_MODULE)
144 include $(BUILD_PREBUILT)
145endif