Keep flash setting when generate Keil MDK project.
This commit is contained in:
parent
b0c7d480ee
commit
84da2a4dcc
|
@ -169,6 +169,11 @@ def MDK4Project(target, script):
|
||||||
out.write(etree.tostring(root, encoding='utf-8'))
|
out.write(etree.tostring(root, encoding='utf-8'))
|
||||||
out.close()
|
out.close()
|
||||||
|
|
||||||
|
# copy uvopt file
|
||||||
|
if os.path.exists('template.uvopt'):
|
||||||
|
import shutil
|
||||||
|
shutil.copy2('template.uvopt', 'project.uvopt')
|
||||||
|
|
||||||
def MDKProject(target, script):
|
def MDKProject(target, script):
|
||||||
template = file('template.Uv2', "rb")
|
template = file('template.Uv2', "rb")
|
||||||
lines = template.readlines()
|
lines = template.readlines()
|
||||||
|
|
Loading…
Reference in New Issue