blob: cb31a6812dc4f56e6ae76c39feada2c3f495bdbd [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
Ethan Yonkere5a288c2016-02-15 09:23:57 -060061ifeq ($(TWRP_INCLUDE_LOGCAT), true)
62 ifeq ($(TARGET_USES_LOGD), true)
Captain Throwback1f127752016-01-19 17:30:20 -050063
Ethan Yonkere5a288c2016-02-15 09:23:57 -060064 include $(CLEAR_VARS)
65 LOCAL_MODULE := init.recovery.logd.rc
bigbiffd58ba182020-03-23 10:02:29 -040066 LOCAL_MODULE_TAGS := optional
Ethan Yonkere5a288c2016-02-15 09:23:57 -060067 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
Captain Throwback1f127752016-01-19 17:30:20 -050068
Ethan Yonkere5a288c2016-02-15 09:23:57 -060069 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
70 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
71 # from TARGET_ROOT_OUT thereafter
72 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
Captain Throwback1f127752016-01-19 17:30:20 -050073
Ethan Yonkere5a288c2016-02-15 09:23:57 -060074 LOCAL_SRC_FILES := $(LOCAL_MODULE)
75 include $(BUILD_PREBUILT)
76 endif
Captain Throwback1f127752016-01-19 17:30:20 -050077endif
Captain Throwback5ab59642019-02-07 17:22:49 -050078
79ifeq ($(TW_USE_TOOLBOX), true)
80 include $(CLEAR_VARS)
81 LOCAL_MODULE := init.recovery.mksh.rc
bigbiffd58ba182020-03-23 10:02:29 -040082 LOCAL_MODULE_TAGS := optional
Captain Throwback5ab59642019-02-07 17:22:49 -050083 LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
84
85 # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
86 # during ramdisk creation and only allows init.recovery.*.rc files to be copied
87 # from TARGET_ROOT_OUT thereafter
88 LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
89
90 LOCAL_SRC_FILES := $(LOCAL_MODULE)
91 include $(BUILD_PREBUILT)
92endif