diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-08-08 15:53:52 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-11 10:53:12 +0100 |
commit | 735bbb8866cf132eae2183a14397a68b0a96ad46 (patch) | |
tree | 16c542af09d2a74a3c2661697de234fe55f6d77f | |
parent | f39d425d8bdb44b55a3e03a007528e6efe9f8ca3 (diff) | |
download | tizen-distro-735bbb8866cf132eae2183a14397a68b0a96ad46.tar.gz tizen-distro-735bbb8866cf132eae2183a14397a68b0a96ad46.tar.bz2 tizen-distro-735bbb8866cf132eae2183a14397a68b0a96ad46.zip |
wic: Rename /mic to /wic
As well as any other stray instances of mic in the codebase that can
be removed.
We don't really need to carry around legacy naming, and the history is
in git.
(From OE-Core rev: 598b120406dc1d2b7e377bd1ab6f0acbef034b22)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | scripts/lib/image/engine.py | 12 | ||||
-rw-r--r-- | scripts/lib/image/help.py | 8 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/__init__.py (renamed from scripts/lib/mic/3rdparty/pykickstart/__init__.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/base.py (renamed from scripts/lib/mic/3rdparty/pykickstart/base.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/commands/__init__.py (renamed from scripts/lib/mic/3rdparty/pykickstart/commands/__init__.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/commands/bootloader.py (renamed from scripts/lib/mic/3rdparty/pykickstart/commands/bootloader.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/commands/partition.py (renamed from scripts/lib/mic/3rdparty/pykickstart/commands/partition.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/constants.py (renamed from scripts/lib/mic/3rdparty/pykickstart/constants.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/errors.py (renamed from scripts/lib/mic/3rdparty/pykickstart/errors.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/handlers/__init__.py (renamed from scripts/lib/mic/3rdparty/pykickstart/handlers/__init__.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/handlers/control.py (renamed from scripts/lib/mic/3rdparty/pykickstart/handlers/control.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/handlers/f16.py (renamed from scripts/lib/mic/3rdparty/pykickstart/handlers/f16.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/ko.py (renamed from scripts/lib/mic/3rdparty/pykickstart/ko.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/options.py (renamed from scripts/lib/mic/3rdparty/pykickstart/options.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/parser.py (renamed from scripts/lib/mic/3rdparty/pykickstart/parser.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/sections.py (renamed from scripts/lib/mic/3rdparty/pykickstart/sections.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/version.py (renamed from scripts/lib/mic/3rdparty/pykickstart/version.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/__init__.py (renamed from scripts/lib/mic/__init__.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/__version__.py (renamed from scripts/lib/mic/__version__.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/conf.py (renamed from scripts/lib/mic/conf.py) | 12 | ||||
-rw-r--r-- | scripts/lib/wic/creator.py (renamed from scripts/lib/mic/creator.py) | 12 | ||||
-rw-r--r-- | scripts/lib/wic/imager/__init__.py (renamed from scripts/lib/mic/imager/__init__.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/imager/baseimager.py (renamed from scripts/lib/mic/imager/baseimager.py) | 10 | ||||
-rw-r--r-- | scripts/lib/wic/imager/direct.py (renamed from scripts/lib/mic/imager/direct.py) | 17 | ||||
-rw-r--r-- | scripts/lib/wic/kickstart/__init__.py (renamed from scripts/lib/mic/kickstart/__init__.py) | 4 | ||||
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/__init__.py (renamed from scripts/lib/mic/kickstart/custom_commands/__init__.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/micboot.py (renamed from scripts/lib/mic/kickstart/custom_commands/micboot.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/micpartition.py (renamed from scripts/lib/mic/kickstart/custom_commands/micpartition.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/partition.py (renamed from scripts/lib/mic/kickstart/custom_commands/partition.py) | 6 | ||||
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/wicboot.py (renamed from scripts/lib/mic/kickstart/custom_commands/wicboot.py) | 2 | ||||
-rw-r--r-- | scripts/lib/wic/msger.py (renamed from scripts/lib/mic/msger.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/plugin.py (renamed from scripts/lib/mic/plugin.py) | 16 | ||||
-rw-r--r-- | scripts/lib/wic/pluginbase.py (renamed from scripts/lib/mic/pluginbase.py) | 20 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct_plugin.py (renamed from scripts/lib/mic/plugins/imager/direct_plugin.py) | 15 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-efi.py (renamed from scripts/lib/mic/plugins/source/bootimg-efi.py) | 16 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-pcbios.py (renamed from scripts/lib/mic/plugins/source/bootimg-pcbios.py) | 16 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/rootfs.py (renamed from scripts/lib/mic/plugins/source/rootfs.py) | 16 | ||||
-rw-r--r-- | scripts/lib/wic/test (renamed from scripts/lib/mic/test) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/utils/__init__.py (renamed from scripts/lib/mic/utils/__init__.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/utils/cmdln.py (renamed from scripts/lib/mic/utils/cmdln.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/utils/errors.py (renamed from scripts/lib/mic/utils/errors.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/utils/fs_related.py (renamed from scripts/lib/mic/utils/fs_related.py) | 8 | ||||
-rw-r--r-- | scripts/lib/wic/utils/misc.py (renamed from scripts/lib/mic/utils/misc.py) | 0 | ||||
-rw-r--r-- | scripts/lib/wic/utils/oe/__init__.py (renamed from scripts/lib/mic/utils/oe/__init__.py) | 2 | ||||
-rw-r--r-- | scripts/lib/wic/utils/oe/misc.py (renamed from scripts/lib/mic/utils/oe/misc.py) | 6 | ||||
-rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py (renamed from scripts/lib/mic/utils/partitionedfs.py) | 10 | ||||
-rw-r--r-- | scripts/lib/wic/utils/runner.py (renamed from scripts/lib/mic/utils/runner.py) | 2 |
47 files changed, 104 insertions, 106 deletions
diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py index b850bb9bfe..f1df8b4db8 100644 --- a/scripts/lib/image/engine.py +++ b/scripts/lib/image/engine.py @@ -37,12 +37,12 @@ import subprocess import shutil import os, sys, errno -from mic import msger, creator -from mic.utils import cmdln, misc, errors -from mic.conf import configmgr -from mic.plugin import pluginmgr -from mic.__version__ import VERSION -from mic.utils.oe.misc import * +from wic import msger, creator +from wic.utils import cmdln, misc, errors +from wic.conf import configmgr +from wic.plugin import pluginmgr +from wic.__version__ import VERSION +from wic.utils.oe.misc import * def verify_build_env(): diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py index 6503aaa18d..080795e577 100644 --- a/scripts/lib/image/help.py +++ b/scripts/lib/image/help.py @@ -144,7 +144,7 @@ DESCRIPTION the corresponding artifacts are typically found in a normal OpenEmbedded build. - Alternatively, users can use the -e option to have 'mic' determine + Alternatively, users can use the -e option to have 'wic' determine those locations for a given image. If the -e option is used, the user needs to have set the appropriate MACHINE variable in local.conf, and have sourced the build environment. @@ -349,12 +349,12 @@ DESCRIPTION implementation that populates a corresponding partition. A source plugin is created as a subclass of SourcePlugin (see - scripts/lib/mic/pluginbase.py) and the plugin file containing it - is added to scripts/lib/mic/plugins/source/ to make the plugin + scripts/lib/wic/pluginbase.py) and the plugin file containing it + is added to scripts/lib/wic/plugins/source/ to make the plugin implementation available to the wic implementation. Source plugins can also be implemented and added by external - layers - any plugins found in a scripts/lib/mic/plugins/source/ + layers - any plugins found in a scripts/lib/wic/plugins/source/ directory in an external layer will also be made available. When the wic implementation needs to invoke a partition-specific diff --git a/scripts/lib/mic/3rdparty/pykickstart/__init__.py b/scripts/lib/wic/3rdparty/pykickstart/__init__.py index e69de29bb2..e69de29bb2 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/__init__.py +++ b/scripts/lib/wic/3rdparty/pykickstart/__init__.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/base.py b/scripts/lib/wic/3rdparty/pykickstart/base.py index e6c8f56f9d..e6c8f56f9d 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/base.py +++ b/scripts/lib/wic/3rdparty/pykickstart/base.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/commands/__init__.py b/scripts/lib/wic/3rdparty/pykickstart/commands/__init__.py index 2d94550935..2d94550935 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/commands/__init__.py +++ b/scripts/lib/wic/3rdparty/pykickstart/commands/__init__.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/commands/bootloader.py b/scripts/lib/wic/3rdparty/pykickstart/commands/bootloader.py index c2b552f689..c2b552f689 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/commands/bootloader.py +++ b/scripts/lib/wic/3rdparty/pykickstart/commands/bootloader.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/commands/partition.py b/scripts/lib/wic/3rdparty/pykickstart/commands/partition.py index 56b91aa9d9..56b91aa9d9 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/commands/partition.py +++ b/scripts/lib/wic/3rdparty/pykickstart/commands/partition.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/constants.py b/scripts/lib/wic/3rdparty/pykickstart/constants.py index 5e12fc80ec..5e12fc80ec 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/constants.py +++ b/scripts/lib/wic/3rdparty/pykickstart/constants.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/errors.py b/scripts/lib/wic/3rdparty/pykickstart/errors.py index a234d99d43..a234d99d43 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/errors.py +++ b/scripts/lib/wic/3rdparty/pykickstart/errors.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/handlers/__init__.py b/scripts/lib/wic/3rdparty/pykickstart/handlers/__init__.py index e69de29bb2..e69de29bb2 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/handlers/__init__.py +++ b/scripts/lib/wic/3rdparty/pykickstart/handlers/__init__.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/handlers/control.py b/scripts/lib/wic/3rdparty/pykickstart/handlers/control.py index 8dc80d1ebe..8dc80d1ebe 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/handlers/control.py +++ b/scripts/lib/wic/3rdparty/pykickstart/handlers/control.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/handlers/f16.py b/scripts/lib/wic/3rdparty/pykickstart/handlers/f16.py index 3c52f8d754..3c52f8d754 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/handlers/f16.py +++ b/scripts/lib/wic/3rdparty/pykickstart/handlers/f16.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/ko.py b/scripts/lib/wic/3rdparty/pykickstart/ko.py index 1350d19c70..1350d19c70 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/ko.py +++ b/scripts/lib/wic/3rdparty/pykickstart/ko.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/options.py b/scripts/lib/wic/3rdparty/pykickstart/options.py index 341c5d7298..341c5d7298 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/options.py +++ b/scripts/lib/wic/3rdparty/pykickstart/options.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/parser.py b/scripts/lib/wic/3rdparty/pykickstart/parser.py index 840a448673..840a448673 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/parser.py +++ b/scripts/lib/wic/3rdparty/pykickstart/parser.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/sections.py b/scripts/lib/wic/3rdparty/pykickstart/sections.py index 44df856b8d..44df856b8d 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/sections.py +++ b/scripts/lib/wic/3rdparty/pykickstart/sections.py diff --git a/scripts/lib/mic/3rdparty/pykickstart/version.py b/scripts/lib/wic/3rdparty/pykickstart/version.py index 102cc37d80..102cc37d80 100644 --- a/scripts/lib/mic/3rdparty/pykickstart/version.py +++ b/scripts/lib/wic/3rdparty/pykickstart/version.py diff --git a/scripts/lib/mic/__init__.py b/scripts/lib/wic/__init__.py index 63c1d9c846..63c1d9c846 100644 --- a/scripts/lib/mic/__init__.py +++ b/scripts/lib/wic/__init__.py diff --git a/scripts/lib/mic/__version__.py b/scripts/lib/wic/__version__.py index 60d7626cac..60d7626cac 100644 --- a/scripts/lib/mic/__version__.py +++ b/scripts/lib/wic/__version__.py diff --git a/scripts/lib/mic/conf.py b/scripts/lib/wic/conf.py index a686e9caa7..d5419f8e94 100644 --- a/scripts/lib/mic/conf.py +++ b/scripts/lib/wic/conf.py @@ -18,15 +18,15 @@ import os, sys, re import ConfigParser -from mic import msger -from mic import kickstart -from mic.utils import misc, runner, errors +from wic import msger +from wic import kickstart +from wic.utils import misc, runner, errors def get_siteconf(): - mic_path = os.path.dirname(__file__) - eos = mic_path.find('scripts') + len('scripts') - scripts_path = mic_path[:eos] + wic_path = os.path.dirname(__file__) + eos = wic_path.find('scripts') + len('scripts') + scripts_path = wic_path[:eos] return scripts_path + "/lib/image/config/wic.conf" diff --git a/scripts/lib/mic/creator.py b/scripts/lib/wic/creator.py index 7c9ca6f9dc..a4b19ac6e0 100644 --- a/scripts/lib/mic/creator.py +++ b/scripts/lib/wic/creator.py @@ -18,10 +18,10 @@ import os, sys, re from optparse import SUPPRESS_HELP -from mic import msger -from mic.utils import cmdln, errors -from mic.conf import configmgr -from mic.plugin import pluginmgr +from wic import msger +from wic.utils import cmdln, errors +from wic.conf import configmgr +from wic.plugin import pluginmgr class Creator(cmdln.Cmdln): @@ -34,7 +34,7 @@ class Creator(cmdln.Cmdln): ${option_list} """ - name = 'mic create(cr)' + name = 'wic create(cr)' def __init__(self, *args, **kwargs): cmdln.Cmdln.__init__(self, *args, **kwargs) @@ -64,7 +64,7 @@ class Creator(cmdln.Cmdln): help='Path of logfile') optparser.add_option('-c', '--config', type='string', dest='config', default=None, - help='Specify config file for mic') + help='Specify config file for wic') optparser.add_option('-o', '--outdir', type='string', action='store', dest='outdir', default=None, help='Output directory') diff --git a/scripts/lib/mic/imager/__init__.py b/scripts/lib/wic/imager/__init__.py index e69de29bb2..e69de29bb2 100644 --- a/scripts/lib/mic/imager/__init__.py +++ b/scripts/lib/wic/imager/__init__.py diff --git a/scripts/lib/mic/imager/baseimager.py b/scripts/lib/wic/imager/baseimager.py index 23919d4cfa..5bcd2f7529 100644 --- a/scripts/lib/mic/imager/baseimager.py +++ b/scripts/lib/wic/imager/baseimager.py @@ -21,10 +21,10 @@ import os, sys import tempfile import shutil -from mic import kickstart -from mic import msger -from mic.utils.errors import CreatorError -from mic.utils import misc, runner, fs_related as fs +from wic import kickstart +from wic import msger +from wic.utils.errors import CreatorError +from wic.utils import misc, runner, fs_related as fs class BaseImageCreator(object): """Base class for image creation. @@ -34,7 +34,7 @@ class BaseImageCreator(object): e.g. - import mic.imgcreate as imgcreate + import wic.imgcreate as imgcreate ks = imgcreate.read_kickstart("foo.ks") imgcreate.ImageCreator(ks, "foo").create() """ diff --git a/scripts/lib/mic/imager/direct.py b/scripts/lib/wic/imager/direct.py index 2f2bd4e072..5b12856289 100644 --- a/scripts/lib/mic/imager/direct.py +++ b/scripts/lib/wic/imager/direct.py @@ -18,8 +18,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # DESCRIPTION -# This implements the 'direct' image creator class for 'wic', based -# loosely on the raw image creator from 'mic' +# This implements the 'direct' image creator class for 'wic' # # AUTHORS # Tom Zanussi <tom.zanussi (at] linux.intel.com> @@ -29,13 +28,13 @@ import os import stat import shutil -from mic import kickstart, msger -from mic.utils import fs_related, runner, misc -from mic.utils.partitionedfs import Image -from mic.utils.errors import CreatorError, ImageError -from mic.imager.baseimager import BaseImageCreator -from mic.utils.oe.misc import * -from mic.plugin import pluginmgr +from wic import kickstart, msger +from wic.utils import fs_related, runner, misc +from wic.utils.partitionedfs import Image +from wic.utils.errors import CreatorError, ImageError +from wic.imager.baseimager import BaseImageCreator +from wic.utils.oe.misc import * +from wic.plugin import pluginmgr disk_methods = { "do_install_disk":None, diff --git a/scripts/lib/mic/kickstart/__init__.py b/scripts/lib/wic/kickstart/__init__.py index 590bf4728f..4f5b778b5d 100644 --- a/scripts/lib/mic/kickstart/__init__.py +++ b/scripts/lib/wic/kickstart/__init__.py @@ -30,8 +30,8 @@ import pykickstart.version as ksversion from pykickstart.handlers.control import commandMap from pykickstart.handlers.control import dataMap -from mic import msger -from mic.utils import errors, misc, runner, fs_related as fs +from wic import msger +from wic.utils import errors, misc, runner, fs_related as fs from custom_commands import wicboot, partition def read_kickstart(path): diff --git a/scripts/lib/mic/kickstart/custom_commands/__init__.py b/scripts/lib/wic/kickstart/custom_commands/__init__.py index f84c6d9e00..f84c6d9e00 100644 --- a/scripts/lib/mic/kickstart/custom_commands/__init__.py +++ b/scripts/lib/wic/kickstart/custom_commands/__init__.py diff --git a/scripts/lib/mic/kickstart/custom_commands/micboot.py b/scripts/lib/wic/kickstart/custom_commands/micboot.py index 66d1678aa7..66d1678aa7 100644 --- a/scripts/lib/mic/kickstart/custom_commands/micboot.py +++ b/scripts/lib/wic/kickstart/custom_commands/micboot.py diff --git a/scripts/lib/mic/kickstart/custom_commands/micpartition.py b/scripts/lib/wic/kickstart/custom_commands/micpartition.py index 59a87fb486..59a87fb486 100644 --- a/scripts/lib/mic/kickstart/custom_commands/micpartition.py +++ b/scripts/lib/wic/kickstart/custom_commands/micpartition.py diff --git a/scripts/lib/mic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 101b90ef10..24f523ae41 100644 --- a/scripts/lib/mic/kickstart/custom_commands/partition.py +++ b/scripts/lib/wic/kickstart/custom_commands/partition.py @@ -29,9 +29,9 @@ import os import tempfile from pykickstart.commands.partition import * -from mic.utils.oe.misc import * -from mic.kickstart.custom_commands import * -from mic.plugin import pluginmgr +from wic.utils.oe.misc import * +from wic.kickstart.custom_commands import * +from wic.plugin import pluginmgr partition_methods = { "do_stage_partition":None, diff --git a/scripts/lib/mic/kickstart/custom_commands/wicboot.py b/scripts/lib/wic/kickstart/custom_commands/wicboot.py index ab8871de4e..f1914169d8 100644 --- a/scripts/lib/mic/kickstart/custom_commands/wicboot.py +++ b/scripts/lib/wic/kickstart/custom_commands/wicboot.py @@ -29,7 +29,7 @@ from pykickstart.errors import * from pykickstart.options import * from pykickstart.commands.bootloader import * -from mic.kickstart.custom_commands.micboot import * +from wic.kickstart.custom_commands.micboot import * class Wic_Bootloader(Mic_Bootloader): def __init__(self, writePriority=10, appendLine="", driveorder=None, diff --git a/scripts/lib/mic/msger.py b/scripts/lib/wic/msger.py index 9afc85be93..9afc85be93 100644 --- a/scripts/lib/mic/msger.py +++ b/scripts/lib/wic/msger.py diff --git a/scripts/lib/mic/plugin.py b/scripts/lib/wic/plugin.py index 43afdbc2f2..61c5859bac 100644 --- a/scripts/lib/mic/plugin.py +++ b/scripts/lib/wic/plugin.py @@ -17,16 +17,16 @@ import os, sys -from mic import msger -from mic import pluginbase -from mic.utils import errors -from mic.utils.oe.misc import * +from wic import msger +from wic import pluginbase +from wic.utils import errors +from wic.utils.oe.misc import * __ALL__ = ['PluginMgr', 'pluginmgr'] PLUGIN_TYPES = ["imager", "source"] -PLUGIN_DIR = "/lib/mic/plugins" # relative to scripts +PLUGIN_DIR = "/lib/wic/plugins" # relative to scripts SCRIPTS_PLUGIN_DIR = "scripts" + PLUGIN_DIR class PluginMgr(object): @@ -41,9 +41,9 @@ class PluginMgr(object): return cls._instance def __init__(self): - mic_path = os.path.dirname(__file__) - eos = mic_path.find('scripts') + len('scripts') - scripts_path = mic_path[:eos] + wic_path = os.path.dirname(__file__) + eos = wic_path.find('scripts') + len('scripts') + scripts_path = wic_path[:eos] self.scripts_path = scripts_path self.plugin_dir = scripts_path + PLUGIN_DIR self.layers_path = None diff --git a/scripts/lib/mic/pluginbase.py b/scripts/lib/wic/pluginbase.py index 46a4f4a6b6..06f318f624 100644 --- a/scripts/lib/mic/pluginbase.py +++ b/scripts/lib/wic/pluginbase.py @@ -17,8 +17,8 @@ import os import shutil -from mic import msger -from mic.utils import errors +from wic import msger +from wic.utils import errors class _Plugin(object): class __metaclass__(type): @@ -26,15 +26,15 @@ class _Plugin(object): if not hasattr(cls, 'plugins'): cls.plugins = {} - elif 'mic_plugin_type' in attrs: - if attrs['mic_plugin_type'] not in cls.plugins: - cls.plugins[attrs['mic_plugin_type']] = {} + elif 'wic_plugin_type' in attrs: + if attrs['wic_plugin_type'] not in cls.plugins: + cls.plugins[attrs['wic_plugin_type']] = {} - elif hasattr(cls, 'mic_plugin_type') and 'name' in attrs: - cls.plugins[cls.mic_plugin_type][attrs['name']] = cls + elif hasattr(cls, 'wic_plugin_type') and 'name' in attrs: + cls.plugins[cls.wic_plugin_type][attrs['name']] = cls def show_plugins(cls): - for cls in cls.plugins[cls.mic_plugin_type]: + for cls in cls.plugins[cls.wic_plugin_type]: print cls def get_plugins(cls): @@ -42,11 +42,11 @@ class _Plugin(object): class ImagerPlugin(_Plugin): - mic_plugin_type = "imager" + wic_plugin_type = "imager" class SourcePlugin(_Plugin): - mic_plugin_type = "source" + wic_plugin_type = "source" """ The methods that can be implemented by --source plugins. diff --git a/scripts/lib/mic/plugins/imager/direct_plugin.py b/scripts/lib/wic/plugins/imager/direct_plugin.py index c05a400768..dabd6fc3e0 100644 --- a/scripts/lib/mic/plugins/imager/direct_plugin.py +++ b/scripts/lib/wic/plugins/imager/direct_plugin.py @@ -18,8 +18,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # DESCRIPTION -# This implements the 'direct' imager plugin class for 'wic', based -# loosely on the raw imager plugin from 'mic' +# This implements the 'direct' imager plugin class for 'wic' # # AUTHORS # Tom Zanussi <tom.zanussi (at] linux.intel.com> @@ -30,13 +29,13 @@ import shutil import re import tempfile -from mic import msger -from mic.utils import misc, fs_related, errors, runner, cmdln -from mic.conf import configmgr -from mic.plugin import pluginmgr +from wic import msger +from wic.utils import misc, fs_related, errors, runner, cmdln +from wic.conf import configmgr +from wic.plugin import pluginmgr -import mic.imager.direct as direct -from mic.pluginbase import ImagerPlugin +import wic.imager.direct as direct +from wic.pluginbase import ImagerPlugin class DirectPlugin(ImagerPlugin): name = 'direct' diff --git a/scripts/lib/mic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py index 5b1a5332c4..53f1782381 100644 --- a/scripts/lib/mic/plugins/source/bootimg-efi.py +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py @@ -29,14 +29,14 @@ import shutil import re import tempfile -from mic import kickstart, msger -from mic.utils import misc, fs_related, errors, runner, cmdln -from mic.conf import configmgr -from mic.plugin import pluginmgr -import mic.imager.direct as direct -from mic.pluginbase import SourcePlugin -from mic.utils.oe.misc import * -from mic.imager.direct import DirectImageCreator +from wic import kickstart, msger +from wic.utils import misc, fs_related, errors, runner, cmdln +from wic.conf import configmgr +from wic.plugin import pluginmgr +import wic.imager.direct as direct +from wic.pluginbase import SourcePlugin +from wic.utils.oe.misc import * +from wic.imager.direct import DirectImageCreator class BootimgEFIPlugin(SourcePlugin): name = 'bootimg-efi' diff --git a/scripts/lib/mic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py index 959cf411bf..bd2225eeaf 100644 --- a/scripts/lib/mic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py @@ -29,14 +29,14 @@ import shutil import re import tempfile -from mic import kickstart, msger -from mic.utils import misc, fs_related, errors, runner, cmdln -from mic.conf import configmgr -from mic.plugin import pluginmgr -import mic.imager.direct as direct -from mic.pluginbase import SourcePlugin -from mic.utils.oe.misc import * -from mic.imager.direct import DirectImageCreator +from wic import kickstart, msger +from wic.utils import misc, fs_related, errors, runner, cmdln +from wic.conf import configmgr +from wic.plugin import pluginmgr +import wic.imager.direct as direct +from wic.pluginbase import SourcePlugin +from wic.utils.oe.misc import * +from wic.imager.direct import DirectImageCreator class BootimgPcbiosPlugin(SourcePlugin): name = 'bootimg-pcbios' diff --git a/scripts/lib/mic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py index 8ebf62c10b..919e97e6b6 100644 --- a/scripts/lib/mic/plugins/source/rootfs.py +++ b/scripts/lib/wic/plugins/source/rootfs.py @@ -30,14 +30,14 @@ import shutil import re import tempfile -from mic import kickstart, msger -from mic.utils import misc, fs_related, errors, runner, cmdln -from mic.conf import configmgr -from mic.plugin import pluginmgr -import mic.imager.direct as direct -from mic.pluginbase import SourcePlugin -from mic.utils.oe.misc import * -from mic.imager.direct import DirectImageCreator +from wic import kickstart, msger +from wic.utils import misc, fs_related, errors, runner, cmdln +from wic.conf import configmgr +from wic.plugin import pluginmgr +import wic.imager.direct as direct +from wic.pluginbase import SourcePlugin +from wic.utils.oe.misc import * +from wic.imager.direct import DirectImageCreator class RootfsPlugin(SourcePlugin): name = 'rootfs' diff --git a/scripts/lib/mic/test b/scripts/lib/wic/test index 9daeafb986..9daeafb986 100644 --- a/scripts/lib/mic/test +++ b/scripts/lib/wic/test diff --git a/scripts/lib/mic/utils/__init__.py b/scripts/lib/wic/utils/__init__.py index e69de29bb2..e69de29bb2 100644 --- a/scripts/lib/mic/utils/__init__.py +++ b/scripts/lib/wic/utils/__init__.py diff --git a/scripts/lib/mic/utils/cmdln.py b/scripts/lib/wic/utils/cmdln.py index b099473ee4..b099473ee4 100644 --- a/scripts/lib/mic/utils/cmdln.py +++ b/scripts/lib/wic/utils/cmdln.py diff --git a/scripts/lib/mic/utils/errors.py b/scripts/lib/wic/utils/errors.py index 86e230ac19..86e230ac19 100644 --- a/scripts/lib/mic/utils/errors.py +++ b/scripts/lib/wic/utils/errors.py diff --git a/scripts/lib/mic/utils/fs_related.py b/scripts/lib/wic/utils/fs_related.py index cf2a759a06..79cc1d52a7 100644 --- a/scripts/lib/mic/utils/fs_related.py +++ b/scripts/lib/wic/utils/fs_related.py @@ -26,10 +26,10 @@ import string import time import uuid -from mic import msger -from mic.utils import runner -from mic.utils.errors import * -from mic.utils.oe.misc import * +from wic import msger +from wic.utils import runner +from wic.utils.errors import * +from wic.utils.oe.misc import * def find_binary_path(binary): if os.environ.has_key("PATH"): diff --git a/scripts/lib/mic/utils/misc.py b/scripts/lib/wic/utils/misc.py index 194b88f691..194b88f691 100644 --- a/scripts/lib/mic/utils/misc.py +++ b/scripts/lib/wic/utils/misc.py diff --git a/scripts/lib/mic/utils/oe/__init__.py b/scripts/lib/wic/utils/oe/__init__.py index d10e802116..0a81575a74 100644 --- a/scripts/lib/mic/utils/oe/__init__.py +++ b/scripts/lib/wic/utils/oe/__init__.py @@ -1,5 +1,5 @@ # -# OpenEmbedded mic utils library +# OpenEmbedded wic utils library # # Copyright (c) 2013, Intel Corporation. # All rights reserved. diff --git a/scripts/lib/mic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py index bed275090d..87e30411b0 100644 --- a/scripts/lib/mic/utils/oe/misc.py +++ b/scripts/lib/wic/utils/oe/misc.py @@ -18,15 +18,15 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # DESCRIPTION -# This module provides a place to collect various mic-related utils +# This module provides a place to collect various wic-related utils # for the OpenEmbedded Image Tools. # # AUTHORS # Tom Zanussi <tom.zanussi (at] linux.intel.com> # -from mic import msger -from mic.utils import runner +from wic import msger +from wic.utils import runner def __exec_cmd(cmd_and_args, as_shell = False, catch = 3): """ diff --git a/scripts/lib/mic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index 68e4cabbe0..76aa42135b 100644 --- a/scripts/lib/mic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py @@ -20,11 +20,11 @@ import os -from mic import msger -from mic.utils import runner -from mic.utils.errors import ImageError -from mic.utils.fs_related import * -from mic.utils.oe.misc import * +from wic import msger +from wic.utils import runner +from wic.utils.errors import ImageError +from wic.utils.fs_related import * +from wic.utils.oe.misc import * # Overhead of the MBR partitioning scheme (just one sector) MBR_OVERHEAD = 1 diff --git a/scripts/lib/mic/utils/runner.py b/scripts/lib/wic/utils/runner.py index fded3c93fa..e740dad253 100644 --- a/scripts/lib/mic/utils/runner.py +++ b/scripts/lib/wic/utils/runner.py @@ -18,7 +18,7 @@ import os import subprocess -from mic import msger +from wic import msger def runtool(cmdln_or_args, catch=1): """ wrapper for most of the subprocess calls |