summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/devtool/build.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/lib/devtool/build.py b/scripts/lib/devtool/build.py
index 252379e9b2..ba9593f1ad 100644
--- a/scripts/lib/devtool/build.py
+++ b/scripts/lib/devtool/build.py
@@ -54,7 +54,11 @@ def build(args, config, basepath, workspace):
54 """Entry point for the devtool 'build' subcommand""" 54 """Entry point for the devtool 'build' subcommand"""
55 workspacepn = check_workspace_recipe(workspace, args.recipename, bbclassextend=True) 55 workspacepn = check_workspace_recipe(workspace, args.recipename, bbclassextend=True)
56 56
57 build_tasks = _get_build_tasks(config) 57 if args.clean:
58 # use clean instead of cleansstate to avoid messing things up in eSDK
59 build_tasks = ['do_clean']
60 else:
61 build_tasks = _get_build_tasks(config)
58 62
59 bbappend = workspace[workspacepn]['bbappend'] 63 bbappend = workspace[workspacepn]['bbappend']
60 if args.disable_parallel_make: 64 if args.disable_parallel_make:
@@ -83,4 +87,5 @@ def register_commands(subparsers, context):
83 group='working', order=50) 87 group='working', order=50)
84 parser_build.add_argument('recipename', help='Recipe to build') 88 parser_build.add_argument('recipename', help='Recipe to build')
85 parser_build.add_argument('-s', '--disable-parallel-make', action="store_true", help='Disable make parallelism') 89 parser_build.add_argument('-s', '--disable-parallel-make', action="store_true", help='Disable make parallelism')
90 parser_build.add_argument('-c', '--clean', action='store_true', help='clean up recipe building results')
86 parser_build.set_defaults(func=build) 91 parser_build.set_defaults(func=build)