lptools: add to build
Use TW_EXCLUDE_LPTOOLS to exclude from build
Will only be included on devices with dynamic partitions
Change-Id: I77092344a1e31e749161cb31e6e020f6e9fc3800
diff --git a/prebuilt/Android.bp b/prebuilt/Android.bp
new file mode 100644
index 0000000..fdbb3d2
--- /dev/null
+++ b/prebuilt/Android.bp
@@ -0,0 +1,5 @@
+soong_namespace {
+ imports: [
+ "external/lptools",
+ ],
+}
diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk
index 763fbac..5d4ceb2 100755
--- a/prebuilt/Android.mk
+++ b/prebuilt/Android.mk
@@ -247,6 +247,9 @@
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),)
+ RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/lptools
+ endif
endif
ifneq ($(wildcard system/core/libsparse/Android.*),)