mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
fa80c25c09
commit
af53f5aafc
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ class Prop:
|
||||||
if type == TYPE_BYTE:
|
if type == TYPE_BYTE:
|
||||||
return chr(0)
|
return chr(0)
|
||||||
elif type == TYPE_INT:
|
elif type == TYPE_INT:
|
||||||
return struct.pack('<I', 0);
|
return struct.pack('>I', 0);
|
||||||
elif type == TYPE_STRING:
|
elif type == TYPE_STRING:
|
||||||
return ''
|
return ''
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue