diff options
author | Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com> | 2017-07-13 11:33:55 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-21 12:36:36 +0100 |
commit | 198bddeb928a318c3ad168bcb4f83b5cd9a604fb (patch) | |
tree | f61ebf3dbd5659f2361feb4ffbf84d4012209347 | |
parent | 5a16b3c804c5eca331a1c08a7ce31a54909af105 (diff) | |
download | openembedded-core-198bddeb928a318c3ad168bcb4f83b5cd9a604fb.tar.gz openembedded-core-198bddeb928a318c3ad168bcb4f83b5cd9a604fb.tar.bz2 openembedded-core-198bddeb928a318c3ad168bcb4f83b5cd9a604fb.zip |
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.
Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | scripts/lib/devtool/standard.py | 3 |
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): extracmdopts += ' -a' if args.fetch_dev: extracmdopts += ' --fetch-dev' + if args.mirrors: + extracmdopts += ' --mirrors' tempdir = tempfile.mkdtemp(prefix='devtool') try: @@ -1797,6 +1799,7 @@ def register_commands(subparsers, context): 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') 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') parser_add.add_argument('--src-subdir', help='Specify subdirectory within source tree to use', metavar='SUBDIR') + parser_add.add_argument('--mirrors', help='Enable PREMIRRORS and MIRRORS for source tree fetching (disable by default).', action="store_true") parser_add.set_defaults(func=add, fixed_setup=context.fixed_setup) parser_modify = subparsers.add_parser('modify', help='Modify the source for an existing recipe', |