]> git.sur5r.net Git - u-boot/commitdiff
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 0c0ebbcf47a1217f42bebc529a69e76367cf9c5b..7d52da71f3aa9819db471ea6db581ef476ba144a 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()