common: init: Move init.recovery.qcom.rc to Android.bp

* /system/etc/init is automatically parsed in recovery.

Change-Id: I7914a9191c5a2ba13b1d60d59fd8b95436d131c3
This commit is contained in:
Alexander Koskovich 2022-05-25 15:27:44 -07:00
parent e6e959c2ad
commit b1afc50ed9
2 changed files with 8 additions and 27 deletions

View File

@ -1,4 +1,4 @@
// Copyright (C) 2021 Paranoid Android
// Copyright (C) 2021-2022 Paranoid Android
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -36,6 +36,13 @@ prebuilt_etc {
vendor: true,
}
prebuilt_etc {
name: "init.recovery.qcom.rc",
src: "init.recovery.qcom.rc",
sub_dir: "init",
recovery: true,
}
prebuilt_etc {
name: "ueventd.qcom.rc",
src: "ueventd.qcom.rc",

View File

@ -1,26 +0,0 @@
# Copyright (C) 2020 Paranoid Android
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ifneq (,$(filter init, $(TARGET_COMMON_QTI_COMPONENTS)))
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := init.recovery.qcom.rc
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)
endif