HDK-Development / Mbed 2 deprecated CMSIS-DAP

Dependencies:   mbed mbed API helper

Revision:
3:085cd7710765
Child:
6:1922f216f192
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/make.py	Fri May 23 17:54:50 2014 -0500
@@ -0,0 +1,42 @@
+"""
+ 
+Build programs in this project
+ 
+"""
+import os, errno
+ 
+ 
+def build_program(args):
+    path = os.getcwd()
+    parent_path = os.sep.join(path.split(os.sep)[:-1])
+    parent_path += "\\output\\"
+    odir = " --destdir " + parent_path
+
+    mbeduser = " --user sam_grove"
+    preprocessor = " --extra_symbols" + " ONE,TWO"
+    
+    string = "python ./mbed-API-helper/mbedapi.py  --repo http://mbed.org/teams/HDK-Development/code/CMSIS-DAP/ --api http://mbed.org --platform FRDM-KL05Z"
+    string += odir
+    string += mbeduser
+    string += preprocessor
+    
+    try:
+        os.makedirs(parent_path)
+    except OSError, e:
+        if e.errno != errno.EEXIST:
+            raise
+            
+    #print string
+    os.system(string)
+      
+ 
+if __name__ == "__main__":
+    import argparse
+    parser = argparse.ArgumentParser(description='configure a mbed repository build.')
+    parser.add_argument('--username', type=str, help='What is your mbed username', required=False)
+    parser.add_argument('--odir', type=str, help='Where does the output go', required=False)
+    
+    args = parser.parse_args()
+    build_program(args)
+    
+    
\ No newline at end of file