7 +.BI "\-B [" "dtc bin" "]"
8 +Set path to the device tree compiler binary.
11 .BI "\-D [" "dtc options" "]"
12 Provide special options to the device tree compiler that is used to
14 --- a/tools/fit_image.c
15 +++ b/tools/fit_image.c
18 /* dtc -I dts -O dtb -p 500 datafile > tmpfile */
19 sprintf (cmd, "%s %s %s > %s",
20 - MKIMAGE_DTC, params->dtc, params->datafile, tmpfile);
21 + params->dtc_bin, params->dtc_options, params->datafile,
23 debug ("Trying to execute \"%s\"\n", cmd);
24 if (system (cmd) == -1) {
25 fprintf (stderr, "%s: system(%s) failed: %s\n",
29 .type = IH_TYPE_KERNEL,
32 - .dtc = MKIMAGE_DEFAULT_DTC_OPTIONS,
33 + .dtc_bin = MKIMAGE_DTC,
34 + .dtc_options = MKIMAGE_DEFAULT_DTC_OPTIONS,
39 params.cmdname, *argv);
45 + params.dtc_bin = *++argv;
50 - params.dtc = *++argv;
51 + params.dtc_options = *++argv;
56 " -d ==> use image data from 'datafile'\n"
57 " -x ==> set XIP (execute in place)\n",
59 - fprintf (stderr, " %s [-D dtc_options] -f fit-image.its fit-image\n",
60 + fprintf (stderr, " %s [-B dtc_bin] [-D dtc_options] -f fit-image.its fit-image\n",
61 + " -B ==> set path to the dtc binary\n",
62 + " -D ==> set options that will be passed to dtc\n",
64 fprintf (stderr, " %s -V ==> print version information and exit\n",
69 #define MKIMAGE_MAX_TMPFILE_LEN 256
70 #define MKIMAGE_DEFAULT_DTC_OPTIONS "-I dts -O dtb -p 500"
71 #define MKIMAGE_MAX_DTC_CMDLINE_LEN 512
72 -#define MKIMAGE_DTC "dtc" /* assume dtc is in $PATH */
73 +#define MKIMAGE_DTC "dtc"
76 * This structure defines all such variables those are initialized by