diff options
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r-- | scripts/lib/recipetool/create.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 4788691cff..ca474fce99 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
@@ -699,6 +699,8 @@ def create_recipe(args): | |||
699 | (stdout, _) = bb.process.run('git rev-parse HEAD', cwd=srctree) | 699 | (stdout, _) = bb.process.run('git rev-parse HEAD', cwd=srctree) |
700 | srcrev = stdout.rstrip() | 700 | srcrev = stdout.rstrip() |
701 | lines_before.append('SRCREV = "%s"' % srcrev) | 701 | lines_before.append('SRCREV = "%s"' % srcrev) |
702 | if args.provides: | ||
703 | lines_before.append('PROVIDES = "%s"' % args.provides) | ||
702 | lines_before.append('') | 704 | lines_before.append('') |
703 | 705 | ||
704 | if srcsubdir and not args.binary: | 706 | if srcsubdir and not args.binary: |
@@ -1300,6 +1302,7 @@ def register_commands(subparsers): | |||
1300 | description='Creates a new recipe from a source tree') | 1302 | description='Creates a new recipe from a source tree') |
1301 | parser_create.add_argument('source', help='Path or URL to source') | 1303 | parser_create.add_argument('source', help='Path or URL to source') |
1302 | parser_create.add_argument('-o', '--outfile', help='Specify filename for recipe to create') | 1304 | parser_create.add_argument('-o', '--outfile', help='Specify filename for recipe to create') |
1305 | parser_create.add_argument('-p', '--provides', help='Specify an alias for the item provided by the recipe') | ||
1303 | parser_create.add_argument('-m', '--machine', help='Make recipe machine-specific as opposed to architecture-specific', action='store_true') | 1306 | parser_create.add_argument('-m', '--machine', help='Make recipe machine-specific as opposed to architecture-specific', action='store_true') |
1304 | parser_create.add_argument('-x', '--extract-to', metavar='EXTRACTPATH', help='Assuming source is a URL, fetch it and extract it to the directory specified as %(metavar)s') | 1307 | parser_create.add_argument('-x', '--extract-to', metavar='EXTRACTPATH', help='Assuming source is a URL, fetch it and extract it to the directory specified as %(metavar)s') |
1305 | parser_create.add_argument('-N', '--name', help='Name to use within recipe (PN)') | 1308 | parser_create.add_argument('-N', '--name', help='Name to use within recipe (PN)') |