Commit 1f6049e2501b5c35c61435dbc05ba96743202674
1 parent
36dd5f1b8a
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
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
dts/Kconfig
... | ... | @@ -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. |
tools/Makefile
... | ... | @@ -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) |