Mike's bootloader sources + added as option, for Taranis only for now (not as clean as it could be, bootloader is always built even if not selected - didn't find how to nest ifs in makefile :\ ) (Issue #546)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
fileout = sys.argv[1]
|
||||
print fileout
|
||||
filename = sys.argv[2]
|
||||
print filename
|
||||
|
||||
fr = open(filename, "rb")
|
||||
fw = open(fileout, "w")
|
||||
|
||||
st = fr.read(16)
|
||||
|
||||
while st:
|
||||
for b in st:
|
||||
fw.write("0x%02x," % ord(b))
|
||||
fw.write("\n")
|
||||
st = fr.read(16)
|
||||
|
||||
fw.write("\n")
|
||||
|
||||
fw.close()
|
||||
Reference in New Issue
Block a user