diff options
Diffstat (limited to '')
-rw-r--r-- | Android.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk index 0f923a8cb..664c487e8 100644 --- a/Android.mk +++ b/Android.mk @@ -308,6 +308,9 @@ endif ifneq ($(wildcard bionic/libc/include/sys/capability.h),) LOCAL_CFLAGS += -DHAVE_CAPABILITIES endif +ifneq ($(TARGET_RECOVERY_INITRC),) + TW_EXCLUDE_DEFAULT_USB_INIT := true +endif LOCAL_ADDITIONAL_DEPENDENCIES := \ dump_image \ @@ -370,6 +373,9 @@ endif ifeq ($(TW_INCLUDE_INJECTTWRP), true) LOCAL_ADDITIONAL_DEPENDENCIES += injecttwrp endif +ifneq ($(TW_EXCLUDE_DEFAULT_USB_INIT), true) + LOCAL_ADDITIONAL_DEPENDENCIES += init.recovery.usb.rc +endif # Allow devices to specify device-specific recovery dependencies ifneq ($(TARGET_RECOVERY_DEVICE_MODULES),) LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_RECOVERY_DEVICE_MODULES) @@ -503,7 +509,8 @@ include $(commands_recovery_local_path)/injecttwrp/Android.mk \ $(commands_recovery_local_path)/twrpTarMain/Android.mk \ $(commands_recovery_local_path)/mtp/Android.mk \ $(commands_recovery_local_path)/minzip/Android.mk \ - $(commands_recovery_local_path)/dosfstools/Android.mk + $(commands_recovery_local_path)/dosfstools/Android.mk \ + $(commands_recovery_local_path)/etc/Android.mk ifeq ($(TW_INCLUDE_CRYPTO), true) include $(commands_recovery_local_path)/crypto/lollipop/Android.mk |