[U-Boot] [PATCH 09/31] dtoc: Fixed endianness in Prop.GetEmpty()
Simon Glass
sjg at chromium.org
Fri Sep 14 10:57:14 UTC 2018
This should be big endian, since that is what device tree uses. Fix it.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
tools/dtoc/fdt.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py
index 76cd66fbf95..ccf3b23ced4 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:
--
2.19.0.397.gdd90340f6a-goog
More information about the U-Boot
mailing list