Keep flash setting when generate Keil MDK project.

This commit is contained in:
Bernard Xiong 2013-06-03 06:37:54 +08:00
parent b0c7d480ee
commit 84da2a4dcc
1 changed files with 5 additions and 0 deletions

View File

@ -169,6 +169,11 @@ def MDK4Project(target, script):
out.write(etree.tostring(root, encoding='utf-8'))
out.close()
# copy uvopt file
if os.path.exists('template.uvopt'):
import shutil
shutil.copy2('template.uvopt', 'project.uvopt')
def MDKProject(target, script):
template = file('template.Uv2', "rb")
lines = template.readlines()