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.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 69bb228487..ae64840062 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -499,6 +499,7 @@ def build(args, config, basepath, workspace):
499 499
500def register_commands(subparsers, context): 500def register_commands(subparsers, context):
501 parser_add = subparsers.add_parser('add', help='Add a new recipe', 501 parser_add = subparsers.add_parser('add', help='Add a new recipe',
502 description='Adds a new recipe',
502 formatter_class=argparse.ArgumentDefaultsHelpFormatter) 503 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
503 parser_add.add_argument('recipename', help='Name for new recipe to add') 504 parser_add.add_argument('recipename', help='Name for new recipe to add')
504 parser_add.add_argument('srctree', help='Path to external source tree') 505 parser_add.add_argument('srctree', help='Path to external source tree')
@@ -506,15 +507,17 @@ def register_commands(subparsers, context):
506 parser_add.set_defaults(func=add) 507 parser_add.set_defaults(func=add)
507 508
508 parser_add = subparsers.add_parser('modify', help='Modify the source for an existing recipe', 509 parser_add = subparsers.add_parser('modify', help='Modify the source for an existing recipe',
510 description='Enables modifying the source for an existing recipe',
509 formatter_class=argparse.ArgumentDefaultsHelpFormatter) 511 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
510 parser_add.add_argument('recipename', help='Name for recipe to edit') 512 parser_add.add_argument('recipename', help='Name for recipe to edit')
511 parser_add.add_argument('srctree', help='Path to external source tree') 513 parser_add.add_argument('srctree', help='Path to external source tree')
512 parser_add.add_argument('--wildcard', '-w', action="store_true", help='Use wildcard for unversioned bbappend') 514 parser_add.add_argument('--wildcard', '-w', action="store_true", help='Use wildcard for unversioned bbappend')
513 parser_add.add_argument('--extract', '-x', action="store_true", help='Extract source as well') 515 parser_add.add_argument('--extract', '-x', action="store_true", help='Extract source as well')
514 parser_add.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout') 516 parser_add.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout (only when using -x)')
515 parser_add.set_defaults(func=modify) 517 parser_add.set_defaults(func=modify)
516 518
517 parser_add = subparsers.add_parser('extract', help='Extract the source for an existing recipe', 519 parser_add = subparsers.add_parser('extract', help='Extract the source for an existing recipe',
520 description='Extracts the source for an existing recipe',
518 formatter_class=argparse.ArgumentDefaultsHelpFormatter) 521 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
519 parser_add.add_argument('recipename', help='Name for recipe to extract the source for') 522 parser_add.add_argument('recipename', help='Name for recipe to extract the source for')
520 parser_add.add_argument('srctree', help='Path to where to extract the source tree') 523 parser_add.add_argument('srctree', help='Path to where to extract the source tree')
@@ -523,22 +526,26 @@ def register_commands(subparsers, context):
523 parser_add.set_defaults(func=extract) 526 parser_add.set_defaults(func=extract)
524 527
525 parser_add = subparsers.add_parser('update-recipe', help='Apply changes from external source tree to recipe', 528 parser_add = subparsers.add_parser('update-recipe', help='Apply changes from external source tree to recipe',
529 description='Applies changes from external source tree to a recipe (updating/adding/removing patches as necessary)',
526 formatter_class=argparse.ArgumentDefaultsHelpFormatter) 530 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
527 parser_add.add_argument('recipename', help='Name of recipe to update') 531 parser_add.add_argument('recipename', help='Name of recipe to update')
528 parser_add.add_argument('--initial-rev', help='Starting revision for patches') 532 parser_add.add_argument('--initial-rev', help='Starting revision for patches')
529 parser_add.add_argument('--no-remove', '-n', action="store_true", help='Don\'t remove patches, only add or update') 533 parser_add.add_argument('--no-remove', '-n', action="store_true", help='Don\'t remove patches, only add or update')
530 parser_add.set_defaults(func=update_recipe) 534 parser_add.set_defaults(func=update_recipe)
531 535
532 parser_status = subparsers.add_parser('status', help='Show status', 536 parser_status = subparsers.add_parser('status', help='Show workspace status',
537 description='Lists recipes currently in your workspace and the paths to their respective external source trees',
533 formatter_class=argparse.ArgumentDefaultsHelpFormatter) 538 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
534 parser_status.set_defaults(func=status) 539 parser_status.set_defaults(func=status)
535 540
536 parser_build = subparsers.add_parser('build', help='Build recipe', 541 parser_build = subparsers.add_parser('build', help='Build a recipe',
542 description='Builds the specified recipe using bitbake (up to do_install)',
537 formatter_class=argparse.ArgumentDefaultsHelpFormatter) 543 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
538 parser_build.add_argument('recipename', help='Recipe to build') 544 parser_build.add_argument('recipename', help='Recipe to build')
539 parser_build.set_defaults(func=build) 545 parser_build.set_defaults(func=build)
540 546
541 parser_reset = subparsers.add_parser('reset', help='Remove a recipe from your workspace', 547 parser_reset = subparsers.add_parser('reset', help='Remove a recipe from your workspace',
548 description='Removes the specified recipe from your workspace (resetting its state)',
542 formatter_class=argparse.ArgumentDefaultsHelpFormatter) 549 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
543 parser_reset.add_argument('recipename', help='Recipe to reset') 550 parser_reset.add_argument('recipename', help='Recipe to reset')
544 parser_reset.set_defaults(func=reset) 551 parser_reset.set_defaults(func=reset)