Commit 1f6049e2501b5c35c61435dbc05ba96743202674

Authored by Tom Rini
1 parent 36dd5f1b8a

tools/mkimage: Make the path to the dtc binary that mkimage calls configurable

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>

Showing 2 changed files with 10 additions and 1 deletions Side-by-side Diff

... ... @@ -170,4 +170,13 @@
170 170 information.
171 171  
172 172 endmenu
  173 +
  174 +config MKIMAGE_DTC_PATH
  175 + string "Path to dtc binary for use within mkimage"
  176 + default "dtc"
  177 + help
  178 + The mkimage host tool will, in order to generate FIT images make
  179 + calls to the dtc application in order to create the output. In
  180 + some cases the system dtc may not support all required features
  181 + and the path to a different version should be given here.
... ... @@ -175,7 +175,7 @@
175 175 endif
176 176 endif
177 177  
178   -HOSTCFLAGS_fit_image.o += -DMKIMAGE_DTC=\"$(DTC)\"
  178 +HOSTCFLAGS_fit_image.o += -DMKIMAGE_DTC=\"$(CONFIG_MKIMAGE_DTC_PATH)\"
179 179  
180 180 HOSTLOADLIBES_dumpimage := $(HOSTLOADLIBES_mkimage)
181 181 HOSTLOADLIBES_fit_info := $(HOSTLOADLIBES_mkimage)