summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r--scripts/lib/devtool/standard.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 5bd498c933..07c1400388 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -150,6 +150,8 @@ def add(args, config, basepath, workspace):
150 extracmdopts += ' --src-subdir "%s"' % args.src_subdir 150 extracmdopts += ' --src-subdir "%s"' % args.src_subdir
151 if args.autorev: 151 if args.autorev:
152 extracmdopts += ' -a' 152 extracmdopts += ' -a'
153 if args.fetch_dev:
154 extracmdopts += ' --fetch-dev'
153 155
154 tempdir = tempfile.mkdtemp(prefix='devtool') 156 tempdir = tempfile.mkdtemp(prefix='devtool')
155 try: 157 try:
@@ -1823,6 +1825,7 @@ def register_commands(subparsers, context):
1823 group.add_argument('--same-dir', '-s', help='Build in same directory as source', action="store_true") 1825 group.add_argument('--same-dir', '-s', help='Build in same directory as source', action="store_true")
1824 group.add_argument('--no-same-dir', help='Force build in a separate build directory', action="store_true") 1826 group.add_argument('--no-same-dir', help='Force build in a separate build directory', action="store_true")
1825 parser_add.add_argument('--fetch', '-f', help='Fetch the specified URI and extract it to create the source tree (deprecated - pass as positional argument instead)', metavar='URI') 1827 parser_add.add_argument('--fetch', '-f', help='Fetch the specified URI and extract it to create the source tree (deprecated - pass as positional argument instead)', metavar='URI')
1828 parser_add.add_argument('--fetch-dev', help='For npm, also fetch devDependencies', action="store_true")
1826 parser_add.add_argument('--version', '-V', help='Version to use within recipe (PV)') 1829 parser_add.add_argument('--version', '-V', help='Version to use within recipe (PV)')
1827 parser_add.add_argument('--no-git', '-g', help='If fetching source, do not set up source tree as a git repository', action="store_true") 1830 parser_add.add_argument('--no-git', '-g', help='If fetching source, do not set up source tree as a git repository', action="store_true")
1828 parser_add.add_argument('--autorev', '-a', help='When fetching from a git repository, set SRCREV in the recipe to a floating revision instead of fixed', action="store_true") 1831 parser_add.add_argument('--autorev', '-a', help='When fetching from a git repository, set SRCREV in the recipe to a floating revision instead of fixed', action="store_true")