From: Simon Glass Date: Fri, 14 Sep 2018 10:57:14 +0000 (-0600) Subject: dtoc: Fixed endianness in Prop.GetEmpty() X-Git-Tag: v2018.11-rc1~2^2~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=af53f5aafcbbe1ba97264a0262067657f3dc8c34;p=oweals%2Fu-boot.git 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 --- 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); elif type == TYPE_STRING: return '' else: