]> git.sur5r.net Git - u-boot/blobdiff - tools/dtoc/fdt_util.py
binman: Add documentation for pos-unset property
[u-boot] / tools / dtoc / fdt_util.py
index ba0b6cc38158f4ccdd880896c991c855c80c6840..2d09649f7206f18560d13ce6c0af6ff1e57d6f9f 100644 (file)
@@ -1,10 +1,9 @@
 #!/usr/bin/python
+# SPDX-License-Identifier: GPL-2.0+
 #
 # Copyright (C) 2016 Google, Inc
 # Written by Simon Glass <sjg@chromium.org>
 #
-# SPDX-License-Identifier:      GPL-2.0+
-#
 
 import os
 import struct
@@ -79,7 +78,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):