summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-02-15 16:23:57 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-02-15 16:27:02 +0100
commite5a288c96b33b56c15ba445daf0303d4215d424a (patch)
treea4ccc6f84538114f96cb400726073003e1a7f3bf
parentFix no exfat-fuse rules (diff)
downloadandroid_bootable_recovery-e5a288c96b33b56c15ba445daf0303d4215d424a.tar
android_bootable_recovery-e5a288c96b33b56c15ba445daf0303d4215d424a.tar.gz
android_bootable_recovery-e5a288c96b33b56c15ba445daf0303d4215d424a.tar.bz2
android_bootable_recovery-e5a288c96b33b56c15ba445daf0303d4215d424a.tar.lz
android_bootable_recovery-e5a288c96b33b56c15ba445daf0303d4215d424a.tar.xz
android_bootable_recovery-e5a288c96b33b56c15ba445daf0303d4215d424a.tar.zst
android_bootable_recovery-e5a288c96b33b56c15ba445daf0303d4215d424a.zip
Diffstat (limited to '')
-rw-r--r--Android.mk6
-rw-r--r--etc/Android.mk31
-rw-r--r--prebuilt/Android.mk10
-rwxr-xr-x[-rw-r--r--]scripts/relink-binaries.sh0
4 files changed, 24 insertions, 23 deletions
diff --git a/Android.mk b/Android.mk
index 0fb934d1a..2a91c09ef 100644
--- a/Android.mk
+++ b/Android.mk
@@ -425,11 +425,11 @@ endif
ifneq ($(TW_EXCLUDE_DEFAULT_USB_INIT), true)
LOCAL_ADDITIONAL_DEPENDENCIES += init.recovery.usb.rc
endif
-ifeq ($(TARGET_USES_LOGD), true)
- LOCAL_ADDITIONAL_DEPENDENCIES += logd libsysutils libnl init.recovery.logd.rc
-endif
ifeq ($(TWRP_INCLUDE_LOGCAT), true)
LOCAL_ADDITIONAL_DEPENDENCIES += logcat
+ ifeq ($(TARGET_USES_LOGD), true)
+ LOCAL_ADDITIONAL_DEPENDENCIES += logd libsysutils libnl init.recovery.logd.rc
+ endif
endif
# Allow devices to specify device-specific recovery dependencies
ifneq ($(TARGET_RECOVERY_DEVICE_MODULES),)
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
diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk
index 949e359c7..44767014f 100644
--- a/prebuilt/Android.mk
+++ b/prebuilt/Android.mk
@@ -216,13 +216,13 @@ ifeq ($(BOARD_HAS_NO_REAL_SDCARD),)
RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/sgdisk
endif
endif
-ifeq ($(TARGET_USES_LOGD), true)
- RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/logd
- RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsysutils.so
- RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libnl.so
-endif
ifeq ($(TWRP_INCLUDE_LOGCAT), true)
RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/logcat
+ ifeq ($(TARGET_USES_LOGD), true)
+ RELINK_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/logd
+ RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libsysutils.so
+ RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libnl.so
+ endif
endif
TWRP_AUTOGEN := $(intermediates)/teamwin
diff --git a/scripts/relink-binaries.sh b/scripts/relink-binaries.sh
index 0188560e6..0188560e6 100644..100755
--- a/scripts/relink-binaries.sh
+++ b/scripts/relink-binaries.sh