diff options
Diffstat (limited to '')
-rw-r--r-- | etc/Android.mk | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/etc/Android.mk b/etc/Android.mk index ac6f813bb..5e612b63e 100644 --- a/etc/Android.mk +++ b/etc/Android.mk @@ -31,19 +31,20 @@ 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) - +ifeq ($(TWRP_INCLUDE_LOGCAT), true) + 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 endif |