]> git.sur5r.net Git - u-boot/blobdiff - tools/dtoc/fdt_util.py
Merge git://git.denx.de/u-boot-dm
[u-boot] / tools / dtoc / fdt_util.py
index 88fc3183833fda0ae0cf3b76f3f1a4bb31e2a010..5b631419a921b323819fa092552140b6aa1fdd5f 100644 (file)
@@ -51,7 +51,7 @@ def fdt_cells_to_cpu(val, cells):
         out = out << 32 | fdt32_to_cpu(val[1])
     return out
 
-def EnsureCompiled(fname):
+def EnsureCompiled(fname, capture_stderr=False):
     """Compile an fdt .dts source file into a .dtb binary blob if needed.
 
     Args:
@@ -86,7 +86,7 @@ def EnsureCompiled(fname):
     args.extend(search_list)
     args.append(dts_input)
     dtc = os.environ.get('DTC') or 'dtc'
-    command.Run(dtc, *args)
+    command.Run(dtc, *args, capture_stderr=capture_stderr)
     return dtb_output
 
 def GetInt(node, propname, default=None):