commit | c330b140434789e805bcf4fce364340525ebb69a | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Sep 14 04:57:14 2018 -0600 |
committer | Simon Glass <sjg@chromium.org> | Fri Sep 28 11:09:01 2018 -0600 |
tree | 5094997018f43c79ea6b08f7c92712f340b0cc71 | |
parent | eddd72916c7b4a26e47b84912c93b538ea85e72b [diff] [blame] |
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>
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py index 76cd66f..ccf3b23 100644 --- a/tools/dtoc/fdt.py +++ b/tools/dtoc/fdt.py
@@ -146,7 +146,7 @@ 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: