lpdump and lptools: make opt-in instead of opt-out
These binaries (or dependencies related to them) cause
bootloops on some devices
Change-Id: I876eea8fc0cbd54fa0e20465ee8e4f699d6b3eaa
diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk
index aed16e2..6b5490a 100755
--- a/prebuilt/Android.mk
+++ b/prebuilt/Android.mk
@@ -241,7 +241,7 @@
RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.boot@1.1.so
endif
ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true)
- ifeq ($(TW_EXCLUDE_LPDUMP),)
+ ifneq ($(TW_INCLUDE_LPDUMP),)
RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/bootctl
RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/lpdump
RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/lpdumpd
@@ -249,7 +249,7 @@
RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/liblpdump_interface-V1-cpp.so
RECOVERY_LIBRARY_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libprotobuf-cpp-full.so
endif
- ifeq ($(TW_EXCLUDE_LPTOOLS),)
+ ifneq ($(TW_INCLUDE_LPTOOLS),)
RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/lptools
endif
endif