summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r--scripts/lib/recipetool/create.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 1be3f14f86..648f2d66fc 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -599,6 +599,11 @@ def create_recipe(args):
599 lines_after.append('INSANE_SKIP_${PN} += "already-stripped"') 599 lines_after.append('INSANE_SKIP_${PN} += "already-stripped"')
600 lines_after.append('') 600 lines_after.append('')
601 601
602 if args.fetch_dev:
603 extravalues['fetchdev'] = True
604 else:
605 extravalues['fetchdev'] = None
606
602 # Find all plugins that want to register handlers 607 # Find all plugins that want to register handlers
603 logger.debug('Loading recipe handlers') 608 logger.debug('Loading recipe handlers')
604 raw_handlers = [] 609 raw_handlers = []
@@ -1134,6 +1139,7 @@ def register_commands(subparsers):
1134 parser_create.add_argument('--src-subdir', help='Specify subdirectory within source tree to use', metavar='SUBDIR') 1139 parser_create.add_argument('--src-subdir', help='Specify subdirectory within source tree to use', metavar='SUBDIR')
1135 parser_create.add_argument('-a', '--autorev', help='When fetching from a git repository, set SRCREV in the recipe to a floating revision instead of fixed', action="store_true") 1140 parser_create.add_argument('-a', '--autorev', help='When fetching from a git repository, set SRCREV in the recipe to a floating revision instead of fixed', action="store_true")
1136 parser_create.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)') 1141 parser_create.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)')
1142 parser_create.add_argument('--fetch-dev', action="store_true", help='For npm, also fetch devDependencies')
1137 parser_create.add_argument('--devtool', action="store_true", help=argparse.SUPPRESS) 1143 parser_create.add_argument('--devtool', action="store_true", help=argparse.SUPPRESS)
1138 parser_create.set_defaults(func=create_recipe) 1144 parser_create.set_defaults(func=create_recipe)
1139 1145