summaryrefslogtreecommitdiffstats
path: root/etc/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'etc/Android.mk')
-rw-r--r--etc/Android.mk21
1 files changed, 19 insertions, 2 deletions
diff --git a/etc/Android.mk b/etc/Android.mk
index 89ea0cc13..ac6f813bb 100644
--- a/etc/Android.mk
+++ b/etc/Android.mk
@@ -12,10 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-ifneq ($(TW_EXCLUDE_DEFAULT_USB_INIT), true)
-
LOCAL_PATH := $(call my-dir)
+ifneq ($(TW_EXCLUDE_DEFAULT_USB_INIT), true)
+
include $(CLEAR_VARS)
LOCAL_MODULE := init.recovery.usb.rc
LOCAL_MODULE_TAGS := eng
@@ -30,3 +30,20 @@ LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)
endif
+
+ifeq ($(TARGET_USES_LOGD), true)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := init.recovery.logd.rc
+LOCAL_MODULE_TAGS := eng
+LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+
+# Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
+# during ramdisk creation and only allows init.recovery.*.rc files to be copied
+# from TARGET_ROOT_OUT thereafter
+LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
+
+LOCAL_SRC_FILES := $(LOCAL_MODULE)
+include $(BUILD_PREBUILT)
+
+endif