summaryrefslogtreecommitdiff
path: root/tools/dtoc/fdt.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-09-14 04:57:14 -0600
committerSimon Glass <sjg@chromium.org>2018-09-28 11:09:01 -0600
commitaf53f5aafcbbe1ba97264a0262067657f3dc8c34 (patch)
tree5094997018f43c79ea6b08f7c92712f340b0cc71 /tools/dtoc/fdt.py
parentfa80c25c09a6c59be4df9c42b4a02538d8a07382 (diff)
downloadu-boot-af53f5aafcbbe1ba97264a0262067657f3dc8c34.tar.gz
u-boot-af53f5aafcbbe1ba97264a0262067657f3dc8c34.tar.bz2
u-boot-af53f5aafcbbe1ba97264a0262067657f3dc8c34.zip
dtoc: Fixed endianness in Prop.GetEmpty()
This should be big endian, since that is what device tree uses. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/fdt.py')
-rw-r--r--tools/dtoc/fdt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py
index 76cd66fbf9..ccf3b23ced 100644
--- a/tools/dtoc/fdt.py
+++ b/tools/dtoc/fdt.py
@@ -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: