From: Benjamin Herrenschmidt Date: Mon, 1 Jun 2020 08:24:15 +0000 (+1000) Subject: bin2hex: Make sure to generate little endian files X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9178ed0c151e6096e378777f31739556e0eeb9b;p=microwatt.git bin2hex: Make sure to generate little endian files Signed-off-by: Benjamin Herrenschmidt --- diff --git a/scripts/bin2hex.py b/scripts/bin2hex.py index af278bc..cd732cb 100755 --- a/scripts/bin2hex.py +++ b/scripts/bin2hex.py @@ -8,9 +8,9 @@ with open(sys.argv[1], "rb") as f: while True: word = f.read(8) if len(word) == 8: - print("%016x" % struct.unpack('Q', word)); + print("%016x" % struct.unpack('