summaryrefslogtreecommitdiff
blob: f9d0c00602c8f8b4b88b04c370aae39544ca700c (plain)
1
2
3
4
5
6
7
8
9
10
11
--- mkimage/imagetool-uncompressed.py
+++ mkimage/imagetool-uncompressed.py
@@ -46,7 +47,7 @@
 f = open(args.bootimage, "wb")
 
 for m in mem:
-   f.write(chr(m))
+   f.write(chr(m).encode('latin1'))
 
 f.write(kernel_image)
 f.close()