summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@bidouilliste.com>2017-06-25 07:43:33 (GMT)
committerTom Rini <trini@konsulko.com>2017-07-22 19:36:19 (GMT)
commit47a52cd1e4c2b1e5f205e337bf3e1ae83993b5a4 (patch)
treed80eea1d3a6fbc0373333388acce3cd35aec7710 /tools
parente42f096f78b85eb7077f6ab5505baaa83b41509c (diff)
downloadu-boot-fsl-qoriq-47a52cd1e4c2b1e5f205e337bf3e1ae83993b5a4.tar.xz
dtc: mkimage: Add the possibility to specify DTC
FreeBSD recently switch to it's BSDL dtc. While it support most of the features of the GPL one it still lacks the incbin directive. Add the possibility to specify which dtc we want to use for compiling dts and generating fit image. Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile2
-rw-r--r--tools/mkimage.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/Makefile b/tools/Makefile
index cb1683e..62a7921 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -175,6 +175,8 @@ HOSTCFLAGS_rsa-sign.o += -Wno-deprecated-declarations
endif
endif
+HOSTCFLAGS_fit_image.o += -DMKIMAGE_DTC=\"$(DTC)\"
+
HOSTLOADLIBES_dumpimage := $(HOSTLOADLIBES_mkimage)
HOSTLOADLIBES_fit_info := $(HOSTLOADLIBES_mkimage)
HOSTLOADLIBES_fit_check_sign := $(HOSTLOADLIBES_mkimage)
diff --git a/tools/mkimage.h b/tools/mkimage.h
index 3f369b7..baee866 100644
--- a/tools/mkimage.h
+++ b/tools/mkimage.h
@@ -44,6 +44,5 @@ static inline ulong map_to_sysmem(void *ptr)
#define MKIMAGE_MAX_TMPFILE_LEN 256
#define MKIMAGE_DEFAULT_DTC_OPTIONS "-I dts -O dtb -p 500"
#define MKIMAGE_MAX_DTC_CMDLINE_LEN 512
-#define MKIMAGE_DTC "dtc" /* assume dtc is in $PATH */
#endif /* _MKIIMAGE_H_ */