summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/standard.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/devtool/standard.py')
-rw-r--r--scripts/lib/devtool/standard.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 763177de1c..9b5a0855b2 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -502,7 +502,8 @@ def build(args, config, basepath, workspace):
502 if not args.recipename in workspace: 502 if not args.recipename in workspace:
503 logger.error("no recipe named %s in your workspace" % args.recipename) 503 logger.error("no recipe named %s in your workspace" % args.recipename)
504 return -1 504 return -1
505 exec_build_env_command(config.init_path, basepath, 'bitbake -c install %s' % args.recipename, watch=True) 505 build_task = config.get('Build', 'build_task', 'populate_sysroot')
506 exec_build_env_command(config.init_path, basepath, 'bitbake -c %s %s' % (build_task, args.recipename), watch=True)
506 507
507 return 0 508 return 0
508 509
@@ -551,7 +552,7 @@ def register_commands(subparsers, context):
551 parser_status.set_defaults(func=status) 552 parser_status.set_defaults(func=status)
552 553
553 parser_build = subparsers.add_parser('build', help='Build a recipe', 554 parser_build = subparsers.add_parser('build', help='Build a recipe',
554 description='Builds the specified recipe using bitbake (up to do_install)', 555 description='Builds the specified recipe using bitbake',
555 formatter_class=argparse.ArgumentDefaultsHelpFormatter) 556 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
556 parser_build.add_argument('recipename', help='Recipe to build') 557 parser_build.add_argument('recipename', help='Recipe to build')
557 parser_build.set_defaults(func=build) 558 parser_build.set_defaults(func=build)