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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 741f0ea91b..7ef0ab8c64 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -139,6 +139,8 @@ def add(args, config, basepath, workspace):
139 extracmdopts += ' -V %s' % args.version 139 extracmdopts += ' -V %s' % args.version
140 if args.binary: 140 if args.binary:
141 extracmdopts += ' -b' 141 extracmdopts += ' -b'
142 if args.also_native:
143 extracmdopts += ' --also-native'
142 144
143 tempdir = tempfile.mkdtemp(prefix='devtool') 145 tempdir = tempfile.mkdtemp(prefix='devtool')
144 try: 146 try:
@@ -1307,6 +1309,7 @@ def register_commands(subparsers, context):
1307 parser_add.add_argument('--version', '-V', help='Version to use within recipe (PV)') 1309 parser_add.add_argument('--version', '-V', help='Version to use within recipe (PV)')
1308 parser_add.add_argument('--no-git', '-g', help='If fetching source, do not set up source tree as a git repository', action="store_true") 1310 parser_add.add_argument('--no-git', '-g', help='If fetching source, do not set up source tree as a git repository', action="store_true")
1309 parser_add.add_argument('--binary', '-b', help='Treat the source tree as something that should be installed verbatim (no compilation, same directory structure). Useful with binary packages e.g. RPMs.', action='store_true') 1311 parser_add.add_argument('--binary', '-b', help='Treat the source tree as something that should be installed verbatim (no compilation, same directory structure). Useful with binary packages e.g. RPMs.', action='store_true')
1312 parser_add.add_argument('--also-native', help='Also add native variant (i.e. support building recipe for the build host as well as the target machine)', action='store_true')
1310 parser_add.set_defaults(func=add) 1313 parser_add.set_defaults(func=add)
1311 1314
1312 parser_modify = subparsers.add_parser('modify', help='Modify the source for an existing recipe', 1315 parser_modify = subparsers.add_parser('modify', help='Modify the source for an existing recipe',