blob: dd751c4ede49af33863701d496cf1ce0ac161a98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env python3
#
# Patches kaleido bss size in relocations for matching builds.
#
import sys
with open(sys.argv[1], "r+") as reloc_sfile:
contents = reloc_sfile.read()
contents = contents.replace(".word _ovl_kaleido_scopeSegmentBssSize\n", ".word 0x10\n")
reloc_sfile.seek(0)
reloc_sfile.write(contents)
reloc_sfile.truncate()
|