Browse Source

Keep flash setting when generate Keil MDK project.

Bernard Xiong 12 years ago
parent
commit
84da2a4dcc
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tools/keil.py

+ 5 - 0
tools/keil.py

@@ -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()