diff options
author | Simon Glass <sjg@chromium.org> | 2017-12-24 22:12:07 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-01-16 04:29:21 +0300 |
commit | 3ed0de31b48baf03efa3981035a41bc080f56f35 (patch) | |
tree | 1c8b8a10fd05cdca8e54a5f55237f48a88390598 /tools/dtoc | |
parent | 4d4db83d184c6d89d55239bbc83b01b566cffdc9 (diff) | |
download | u-boot-3ed0de31b48baf03efa3981035a41bc080f56f35.tar.xz |
dtoc: Allow DTC environment variable to provide path to dtc
The system device-tree compiler may not be new enough to run the tests we
use in U-Boot (e.g. with binman). Allow use of a DTC environment variable
to point to the correct dtc. If not defined, the dtc on the default PATH
is used.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc')
-rw-r--r-- | tools/dtoc/fdt_util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/dtoc/fdt_util.py b/tools/dtoc/fdt_util.py index ba0b6cc381..ad06245b42 100644 --- a/tools/dtoc/fdt_util.py +++ b/tools/dtoc/fdt_util.py @@ -79,7 +79,8 @@ def EnsureCompiled(fname): '-W', 'no-unit_address_vs_reg'] args.extend(search_list) args.append(dts_input) - command.Run('dtc', *args) + dtc = os.environ.get('DTC') or 'dtc' + command.Run(dtc, *args) return dtb_output def GetInt(node, propname, default=None): |