From d4eaf6a7ed7c1895cef39e0de134741e6971a163 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 8 Jul 2014 14:26:29 +0000 Subject: [PATCH] build.py: Add --exclude to command line arguments of build.py Signed-off-by: Jan Lindemann --- scripts/build.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build.py b/scripts/build.py index c99cf4c7..3f4a036b 100644 --- a/scripts/build.py +++ b/scripts/build.py @@ -89,11 +89,13 @@ modules = Set() parser = argparse.ArgumentParser(description='jannet software project build tool') parser.add_argument('--base', '-b', nargs='?', default=proj_base, help='Project base directory') +parser.add_argument('--exclude', nargs='?', default='', help='List of modules to be excluded from build') parser.add_argument('target', default='all', help='Build target') parser.add_argument('modules', nargs='+', default='', help='Modules to be built') args=parser.parse_args() proj_base=args.base +exclude=args.exclude target=args.target modules=args.modules @@ -101,6 +103,7 @@ modules=args.modules print "calculating order for modules: " + ' '.join(modules) order = [] calculate_order(order, modules, glob_prereq_type) +order = [m for m in order if m not in exclude] print "order is: " + ' '.join(order) build(order, target)