diff options
Diffstat (limited to 'scripts/lib/devtool/standard.py')
-rw-r--r-- | scripts/lib/devtool/standard.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 4d51a458fe..cbc023247e 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py | |||
@@ -857,22 +857,6 @@ def reset(args, config, basepath, workspace): | |||
857 | return 0 | 857 | return 0 |
858 | 858 | ||
859 | 859 | ||
860 | def build(args, config, basepath, workspace): | ||
861 | """Entry point for the devtool 'build' subcommand""" | ||
862 | import bb | ||
863 | if not args.recipename in workspace: | ||
864 | raise DevtoolError("no recipe named %s in your workspace" % | ||
865 | args.recipename) | ||
866 | build_task = config.get('Build', 'build_task', 'populate_sysroot') | ||
867 | try: | ||
868 | exec_build_env_command(config.init_path, basepath, 'bitbake -c %s %s' % (build_task, args.recipename), watch=True) | ||
869 | except bb.process.ExecutionError as e: | ||
870 | # We've already seen the output since watch=True, so just ensure we return something to the user | ||
871 | return e.exitcode | ||
872 | |||
873 | return 0 | ||
874 | |||
875 | |||
876 | def register_commands(subparsers, context): | 860 | def register_commands(subparsers, context): |
877 | """Register devtool subcommands from this plugin""" | 861 | """Register devtool subcommands from this plugin""" |
878 | parser_add = subparsers.add_parser('add', help='Add a new recipe', | 862 | parser_add = subparsers.add_parser('add', help='Add a new recipe', |
@@ -921,12 +905,6 @@ def register_commands(subparsers, context): | |||
921 | formatter_class=argparse.ArgumentDefaultsHelpFormatter) | 905 | formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
922 | parser_status.set_defaults(func=status) | 906 | parser_status.set_defaults(func=status) |
923 | 907 | ||
924 | parser_build = subparsers.add_parser('build', help='Build a recipe', | ||
925 | description='Builds the specified recipe using bitbake', | ||
926 | formatter_class=argparse.ArgumentDefaultsHelpFormatter) | ||
927 | parser_build.add_argument('recipename', help='Recipe to build') | ||
928 | parser_build.set_defaults(func=build) | ||
929 | |||
930 | parser_reset = subparsers.add_parser('reset', help='Remove a recipe from your workspace', | 908 | parser_reset = subparsers.add_parser('reset', help='Remove a recipe from your workspace', |
931 | description='Removes the specified recipe from your workspace (resetting its state)', | 909 | description='Removes the specified recipe from your workspace (resetting its state)', |
932 | formatter_class=argparse.ArgumentDefaultsHelpFormatter) | 910 | formatter_class=argparse.ArgumentDefaultsHelpFormatter) |