target_dsp/bin2cfile.py: make it compatible with python3
Change-Id: I2659c2e4633bd120cc6cd76942eff5b66d2057bb
This commit is contained in:
parent
37575534a4
commit
1fa8e29e69
|
@ -31,7 +31,7 @@ def main(pn, filename):
|
|||
name = filename.split('.',1)[0]
|
||||
|
||||
# Header / footer
|
||||
print """
|
||||
print("""
|
||||
#define _SA_DECL (const uint16_t *)&(const uint16_t [])
|
||||
|
||||
static const struct dsp_section %s[] = {
|
||||
|
@ -50,7 +50,7 @@ static const struct dsp_section %s[] = {
|
|||
};
|
||||
|
||||
#undef _SA_DECL
|
||||
""" % (name, len(d)/2, ops)
|
||||
""" % (name, len(d)/2, ops))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in New Issue