summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>2017-07-13 11:33:55 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 22:51:37 +0100
commitc2318ef416e13c3eaae14f395153ad97491a06bf (patch)
treebd8d467fb34a7f71b34bad0115e258127f889f67
parent819179d775ca084bcec6a86cd74d0c0c18278f12 (diff)
downloadpoky-c2318ef416e13c3eaae14f395153ad97491a06bf.tar.gz
devtool: standard: enable options for PREMIRRORS and MIRRORS
Since we have provide an option to manually enable PREMIRRORS and MIRRORS in recipetool, we need to make sure devtool is having the same options as devtool uses recipetool in creating new recipes. (From OE-Core rev: 198bddeb928a318c3ad168bcb4f83b5cd9a604fb) Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 54558ce799..22a9ec82c9 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -149,6 +149,8 @@ def add(args, config, basepath, workspace):
149 extracmdopts += ' -a' 149 extracmdopts += ' -a'
150 if args.fetch_dev: 150 if args.fetch_dev:
151 extracmdopts += ' --fetch-dev' 151 extracmdopts += ' --fetch-dev'
152 if args.mirrors:
153 extracmdopts += ' --mirrors'
152 154
153 tempdir = tempfile.mkdtemp(prefix='devtool') 155 tempdir = tempfile.mkdtemp(prefix='devtool')
154 try: 156 try:
@@ -1797,6 +1799,7 @@ def register_commands(subparsers, context):
1797 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') 1799 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')
1798 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') 1800 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')
1799 parser_add.add_argument('--src-subdir', help='Specify subdirectory within source tree to use', metavar='SUBDIR') 1801 parser_add.add_argument('--src-subdir', help='Specify subdirectory within source tree to use', metavar='SUBDIR')
1802 parser_add.add_argument('--mirrors', help='Enable PREMIRRORS and MIRRORS for source tree fetching (disable by default).', action="store_true")
1800 parser_add.set_defaults(func=add, fixed_setup=context.fixed_setup) 1803 parser_add.set_defaults(func=add, fixed_setup=context.fixed_setup)
1801 1804
1802 parser_modify = subparsers.add_parser('modify', help='Modify the source for an existing recipe', 1805 parser_modify = subparsers.add_parser('modify', help='Modify the source for an existing recipe',