summaryrefslogtreecommitdiffstats
path: root/core/generate_extra_images.mk
diff options
context:
space:
mode:
Diffstat (limited to 'core/generate_extra_images.mk')
-rw-r--r--core/generate_extra_images.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/generate_extra_images.mk b/core/generate_extra_images.mk
index a0aa542..8cd18fd 100644
--- a/core/generate_extra_images.mk
+++ b/core/generate_extra_images.mk
@@ -89,7 +89,13 @@ ifeq ($(strip $(BUILD_TINY_ANDROID)),true)
include device/qcom/common/dtbtool/Android.mk
endif
-DTBTOOL := $(HOST_OUT_EXECUTABLES)/dtbTool$(HOST_EXECUTABLE_SUFFIX)
+ifeq ($(strip $(TARGET_CUSTOM_DTBTOOL)),)
+DTBTOOL_NAME := dtbToolCM
+else
+DTBTOOL_NAME := $(TARGET_CUSTOM_DTBTOOL)
+endif
+
+DTBTOOL := $(HOST_OUT_EXECUTABLES)/$(DTBTOOL_NAME)$(HOST_EXECUTABLE_SUFFIX)
INSTALLED_DTIMAGE_TARGET := $(PRODUCT_OUT)/dt.img