Merge pull request #89 from amullins83/master

Added 'macros' keyword to build_api.py to allow building USB libraries

Thanks! This is something I've neglected to do in one of my latest commits.
pull/90/head^2
Bogdan Marinescu 2013-10-21 09:20:56 -07:00
commit 87d93542d1
1 changed files with 2 additions and 2 deletions

View File

@ -124,12 +124,12 @@ def build_library(src_paths, build_path, target, toolchain_name,
toolchain.build_library(objects, bin_path, name)
def build_lib(lib_id, target, toolchain, options=None, verbose=False, clean=False):
def build_lib(lib_id, target, toolchain, options=None, verbose=False, clean=False, macros=None):
lib = Library(lib_id)
if lib.is_supported(target, toolchain):
build_library(lib.source_dir, lib.build_dir, target, toolchain,
lib.dependencies, options,
verbose=verbose, clean=clean)
verbose=verbose, clean=clean, macros=macros)
else:
print '\n\nLibrary "%s" is not yet supported on target %s with toolchain %s' % (lib_id, target.name, toolchain)