dtoc: Fix bug in GetProp()
authorSimon Glass <sjg@chromium.org>
Sun, 25 Sep 2016 21:52:17 +0000 (15:52 -0600)
committersjg <sjg@chromium.org>
Sun, 9 Oct 2016 15:30:32 +0000 (09:30 -0600)
This does not actually call fdtget correctly when requesting a particular
type. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/fdt_fallback.py

index 0c0ebbc..7d52da7 100644 (file)
@@ -160,7 +160,7 @@ class FdtFallback(Fdt):
         if default is not None:
           args += ['-d', str(default)]
         if typespec is not None:
-          args += ['-t%s' % typespec]
+          args += ['-t', typespec]
         out = command.Output('fdtget', *args)
         return out.strip()