Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed API helper
tools/make.py
- Committer:
- sam_grove
- Date:
- 2014-05-23
- Revision:
- 3:085cd7710765
- Child:
- 6:1922f216f192
File content as of revision 3:085cd7710765:
""" 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)