mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09: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
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user