<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/dtoc, branch v2016.11</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=v2016.11</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/dtoc?h=v2016.11'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2016-10-09T15:30:32Z</updated>
<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>
<entry>
<title>dtoc: Add methods for reading data from properties</title>
<updated>2016-09-19T03:04:39Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2016-07-26T00:59:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8f224b3734d042884a8981a14db64c48e87b87a2'/>
<id>urn:sha1:8f224b3734d042884a8981a14db64c48e87b87a2</id>
<content type='text'>
Provide easy helpers for reading integer, string and boolean values from
device-tree properties.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dtoc: Correct quotes in fdt_util</title>
<updated>2016-09-19T03:04:39Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2016-07-26T00:59:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=20024daee58906712f71b927bd86951d1ddb469d'/>
<id>urn:sha1:20024daee58906712f71b927bd86951d1ddb469d</id>
<content type='text'>
The style is to use single quotes for strings where possible. Adjust this
function.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dtoc: Support finding the offset of a property</title>
<updated>2016-09-19T03:04:39Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2016-07-26T00:59:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=babdbde68f1b993289462394f209f4010c761246'/>
<id>urn:sha1:babdbde68f1b993289462394f209f4010c761246</id>
<content type='text'>
Add a way to find the byte offset of a property within the device tree. This
is only supported with the normal libfdt implementation since fdtget does
not provide this information.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>dtoc: Support packing the device tree</title>
<updated>2016-09-19T03:04:39Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2016-07-26T00:59:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=da5f74998b9e5e6b706608a4ca625ef0ee195150'/>
<id>urn:sha1:da5f74998b9e5e6b706608a4ca625ef0ee195150</id>
<content type='text'>
After any node/property deletion the device tree can be packed to remove
spare space. Add a way to perform this operation.

Note that for fdt_fallback, fdtput automatically packs the device tree after
deletion, so no action is required here.

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