]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dtoc: Fixed endianness in Prop.GetEmpty()
authorSimon Glass <sjg@chromium.org>
Fri, 14 Sep 2018 10:57:14 +0000 (04:57 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 28 Sep 2018 17:09:01 +0000 (11:09 -0600)
This should be big endian, since that is what device tree uses. Fix it.

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

index 76cd66fbf958e6d0f516f35a39651c2ade9dd3b3..ccf3b23ced475205064968e1ad6a94c825fcc17e 100644 (file)
@@ -146,7 +146,7 @@ class Prop:
         if type == TYPE_BYTE:
             return chr(0)
         elif type == TYPE_INT:
-            return struct.pack('<I', 0);
+            return struct.pack('>I', 0);
         elif type == TYPE_STRING:
             return ''
         else: