lptools: add to build

Use TW_EXCLUDE_LPTOOLS to exclude from build

Will only be included on devices with dynamic partitions

Change-Id: I77092344a1e31e749161cb31e6e020f6e9fc3800
This commit is contained in:
Captain Throwback
2021-11-18 20:30:38 -05:00
committed by bigbiff
parent 3c1e35f51c
commit 4f19caa016
3 changed files with 11 additions and 0 deletions
+3
View File
@@ -161,6 +161,9 @@ ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true)
ifeq ($(TW_EXCLUDE_LPDUMP),)
TWRP_REQUIRED_MODULES += lpdump lpdumpd.rc
endif
ifeq ($(TW_EXCLUDE_LPTOOLS),)
TWRP_REQUIRED_MODULES += lptools
endif
endif
ifeq ($(TW_USES_VENDOR_LIBS),true)
+5
View File
@@ -0,0 +1,5 @@
soong_namespace {
imports: [
"external/lptools",
],
}
+3
View File
@@ -245,6 +245,9 @@ ifeq ($(AB_OTA_UPDATER), true)
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.*),)