]> git.baikalelectronics.ru Git - uboot.git/commitdiff
tools/mkimage: Make the path to the dtc binary that mkimage calls configurable
authorTom Rini <trini@konsulko.com>
Sun, 24 Sep 2017 03:14:33 +0000 (23:14 -0400)
committerTom Rini <trini@konsulko.com>
Sun, 24 Sep 2017 11:33:03 +0000 (07:33 -0400)
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 <trini@konsulko.com>
dts/Kconfig
tools/Makefile

index 44fc9fe36dd799bf0633f845c889f4e79948fd81..4ee051094319ee98ee9d5ea6d1f5e0155610e7b1 100644 (file)
@@ -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.
index a0db19d6b057394d5c3872dd203c854a46f2faed..c16477459d23c7a669feec5669e7cb986eae2d93 100644 (file)
@@ -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)