From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sun, 24 Sep 2017 10:27:02 -0400 Subject: [U-Boot] [PATCH 5/5] tools/mkimage: Make the path to the dtc binary that mkimage calls configurable In-Reply-To: <1506263222-7080-1-git-send-email-trini@konsulko.com> References: <1506263222-7080-1-git-send-email-trini@konsulko.com> Message-ID: <1506263222-7080-6-git-send-email-trini@konsulko.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In some cases, such as FreeBSD, the path to an alternative dtc needs to be used. Rather than override the one given in the Makefile on the command line, make this part of the build configuration. Signed-off-by: Tom Rini --- dts/Kconfig | 9 +++++++++ tools/Makefile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dts/Kconfig b/dts/Kconfig index 44fc9fe36dd7..4ee051094319 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -170,3 +170,12 @@ config TPL_OF_PLATDATA information. endmenu + +config MKIMAGE_DTC_PATH + string "Path to dtc binary for use within mkimage" + default "dtc" + help + The mkimage host tool will, in order to generate FIT images make + calls to the dtc application in order to create the output. In + some cases the system dtc may not support all required features + and the path to a different version should be given here. diff --git a/tools/Makefile b/tools/Makefile index a0db19d6b057..c16477459d23 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -175,7 +175,7 @@ HOSTCFLAGS_rsa-sign.o += -Wno-deprecated-declarations endif endif -HOSTCFLAGS_fit_image.o += -DMKIMAGE_DTC=\"$(DTC)\" +HOSTCFLAGS_fit_image.o += -DMKIMAGE_DTC=\"$(CONFIG_MKIMAGE_DTC_PATH)\" HOSTLOADLIBES_dumpimage := $(HOSTLOADLIBES_mkimage) HOSTLOADLIBES_fit_info := $(HOSTLOADLIBES_mkimage) -- 1.9.1