<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/dtoc, branch v2017.05</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/tools/dtoc?h=v2017.05</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/dtoc?h=v2017.05'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2017-04-13T17:43:49Z</updated>
<entry>
<title>dtoc: Decode val if it's a byte string</title>
<updated>2017-04-13T17:43:49Z</updated>
<author>
<name>George McCollister</name>
<email>george.mccollister@gmail.com</email>
</author>
<published>2017-03-30T14:44:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f156b5b59750f4140ffa2dd6a5eab686ba0212c3'/>
<id>urn:sha1:f156b5b59750f4140ffa2dd6a5eab686ba0212c3</id>
<content type='text'>
With Python 3.5.2 encode will throw an exception if val is a byte array.
Decode it to a string first. This assumes it's utf-8, if it's not valid
utf-8 it will throw an exception.

Signed-off-by: George McCollister &lt;george.mccollister@gmail.com&gt;
Acked-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dtoc: make ScanTree recurse into subnodes</title>
<updated>2017-03-22T13:27:19Z</updated>
<author>
<name>Philipp Tomsich</name>
<email>philipp.tomsich@theobroma-systems.com</email>
</author>
<published>2017-02-22T18:06:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=55bc080e799ac18802a791bd5ce5d83a136da6e3'/>
<id>urn:sha1:55bc080e799ac18802a791bd5ce5d83a136da6e3</id>
<content type='text'>
Previously, dtoc could only process the top-level nodes which led to
device nodes in hierarchical trees to be ignored. E.g. the mmc0 node
in the following example would be ignored, as only the soc node was
processed:

  / {
	soc {
		mmc0 {
			/* ... */
		};
	};
  };

This introduces a recursive helper method ScanNode, which is used by
ScanTree to recursively parse the entire tree hierarchy.

Signed-off-by: Philipp Tomsich &lt;philipp.tomsich@theobroma-systems.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dm: allow limiting pre-reloc markings to spl or tpl</title>
<updated>2017-03-16T22:03:44Z</updated>
<author>
<name>Heiko Stübner</name>
<email>heiko@sntech.de</email>
</author>
<published>2017-02-18T18:46:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=27326c7ee269ff351bba8c2461e19f29d66b6a3a'/>
<id>urn:sha1:27326c7ee269ff351bba8c2461e19f29d66b6a3a</id>
<content type='text'>
Right now the u-boot,dm-pre-reloc flag will make each marked node
always appear in both spl and tpl. But systems needing an additional
tpl might have special constraints for each, like the spl needing to
be very tiny.

So introduce two additional flags to mark nodes for only spl or tpl
environments and introduce a function dm_fdt_pre_reloc to automate
the necessary checks in code instances checking for pre-relocation
flags.

The behaviour of the original flag stays untouched and still marks
a node for both spl and tpl.

Signed-off-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Kever Yang &lt;kever.yang@rock-chips.com&gt;
</content>
</entry>
<entry>
<title>dtoc: Replace dot with underscore to avoid compiler errors</title>
<updated>2017-02-08T13:07:35Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2017-01-16T04:09:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6b6024a3a2e0297267ad8bc0ad1dd03d6d04265a'/>
<id>urn:sha1:6b6024a3a2e0297267ad8bc0ad1dd03d6d04265a</id>
<content type='text'>
If there is a '.' in a compatible string, then dtoc will produce a struct
with a name containing a '.'. This won't work, so replace it with '_'.

Also add a suitable test to the sandbox device tree to catch this.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dtoc: Make integer division python 3.x safe</title>
<updated>2016-10-09T15:30:32Z</updated>
<author>
<name>Paul Burton</name>
<email>paul.burton@imgtec.com</email>
</author>
<published>2016-09-27T15:03:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=34c38896357db4aae266b14346927da2cd920de6'/>
<id>urn:sha1:34c38896357db4aae266b14346927da2cd920de6</id>
<content type='text'>
If we use the '/' operator then python 3.x will produce a float, and
refuse to multiply the string sequence in Conv_name_to_c by it with:

    TypeError: can't multiply sequence by non-int of type 'float'

Use the '//' operator instead to enforce that we want integer rather
than floating point division.

Signed-off-by: Paul Burton &lt;paul.burton@imgtec.com&gt;
Acked-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dtoc: Decode strings for struct.unpack on python 3.x</title>
<updated>2016-10-09T15:30:32Z</updated>
<author>
<name>Paul Burton</name>
<email>paul.burton@imgtec.com</email>
</author>
<published>2016-09-27T15:03:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c4c5f9eefbda7231d0e9703905524faebe71e795'/>
<id>urn:sha1:c4c5f9eefbda7231d0e9703905524faebe71e795</id>
<content type='text'>
On python 3.x struct.unpack will complain if we provide it with a
string since it expects to operate on a bytes object. In order to
satisfy this requirement, encode the string to a bytes object when
running on python 3.x.

Signed-off-by: Paul Burton &lt;paul.burton@imgtec.com&gt;
Acked-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dtoc: Use items() to iterate over dictionaries in python 3.x</title>
<updated>2016-10-09T15:30:32Z</updated>
<author>
<name>Paul Burton</name>
<email>paul.burton@imgtec.com</email>
</author>
<published>2016-09-27T15:03:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4ae6549f8e1cd31076c6dbabef568689fc313a13'/>
<id>urn:sha1:4ae6549f8e1cd31076c6dbabef568689fc313a13</id>
<content type='text'>
In python 3.x the iteritems() method has been removed from dictionaries,
and the items() method does effectively the same thing. On python 2.x
using items() is a little less efficient since it involves copying data,
but as speed isn't a concern in the affected code switch to using
items() anyway for simplicity.

Signed-off-by: Paul Burton &lt;paul.burton@imgtec.com&gt;
Acked-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dtoc: Add a way for tests to request the fallback library</title>
<updated>2016-10-09T15:30:32Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2016-09-25T21:52:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3cb44ba80c0379eb7d0eadd1b9b58e66fe2da03e'/>
<id>urn:sha1:3cb44ba80c0379eb7d0eadd1b9b58e66fe2da03e</id>
<content type='text'>
We need to test both the normal (Python libfdt module) and fallback (fdtget)
implementations of the Fdt class. Add a way to select which implementation
to use.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dtoc: Adjust GetProps() in fdt_normal to use the node path</title>
<updated>2016-10-09T15:30:32Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2016-09-25T21:52:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8828254cae24abfc5de9f84d79c570fb8edde354'/>
<id>urn:sha1:8828254cae24abfc5de9f84d79c570fb8edde354</id>
<content type='text'>
There is no need to pass a node path separately. Instead we should use the
path for the node provided. Correct this.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dtoc: Fix bug in GetProp()</title>
<updated>2016-10-09T15:30:32Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2016-09-25T21:52:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0734b70c9cb59f030a8293b08b947aa793baaa74'/>
<id>urn:sha1:0734b70c9cb59f030a8293b08b947aa793baaa74</id>
<content type='text'>
This does not actually call fdtget correctly when requesting a particular
type. Fix it.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
