From: Simon Glass <sjg@chromium.org> Date: Fri, 14 Sep 2018 10:57:14 +0000 (-0600) Subject: dtoc: Fixed endianness in Prop.GetEmpty() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=af53f5aafcbbe1ba97264a0262067657f3dc8c34;p=project%2Fbcm63xx%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 <sjg@chromium.org> --- 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: