diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-01-30 23:23:00 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-02 17:37:33 +0000 |
commit | 702ee7a1fe30d87d55ba9528ae89abff4e294fd9 (patch) | |
tree | 1912464363555cbb65ffb3055c2e6e1b77987087 | |
parent | 65c26d51eedc687c92e8ade262d24dc53ca71cec (diff) | |
download | openembedded-core-702ee7a1fe30d87d55ba9528ae89abff4e294fd9.tar.gz openembedded-core-702ee7a1fe30d87d55ba9528ae89abff4e294fd9.tar.bz2 openembedded-core-702ee7a1fe30d87d55ba9528ae89abff4e294fd9.zip |
wic: creator: stop using config manager
This is a preparation to removing conf.py and config/wic.conf
from the codebase.
confmgr object is complicated for no reason and almost
useless as all configuration info comes from command line and
bitbake variables. It's used it creator.py to store information
about output directory, logs and some never used functionality
like tmpfs for future use, which doesn't actually happen.
[YOCTO #10619]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
-rw-r--r-- | scripts/lib/wic/creator.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/scripts/lib/wic/creator.py b/scripts/lib/wic/creator.py index 8f7d1503f5..74db83cd30 100644 --- a/scripts/lib/wic/creator.py +++ b/scripts/lib/wic/creator.py @@ -20,10 +20,8 @@ from optparse import OptionParser, SUPPRESS_HELP from wic import msger from wic.utils import errors -from wic.conf import configmgr from wic.plugin import pluginmgr - class Creator(): """${name}: create an image @@ -89,23 +87,6 @@ class Creator(): os.makedirs(os.path.dirname(logfile_abs_path)) msger.set_interactive(False) msger.set_logfile(logfile_abs_path) - configmgr.create['logfile'] = options.logfile - - if options.config: - configmgr.reset() - configmgr._siteconf = options.config - - if options.outdir is not None: - configmgr.create['outdir'] = abspath(options.outdir) - - cdir = 'outdir' - if os.path.exists(configmgr.create[cdir]) \ - and not os.path.isdir(configmgr.create[cdir]): - msger.error('Invalid directory specified: %s' \ - % configmgr.create[cdir]) - - if options.enabletmpfs: - configmgr.create['enabletmpfs'] = options.enabletmpfs def main(self, argv=None): if argv is None: |