From: Xiaoning Zhu Date: Thu, 22 Aug 2013 06:29:46 +0000 (+0800) Subject: make customized setting of plugin_dir work in bootstrap mode X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f4cd0070d3e3e760f5082705226b6dd50d556cf;p=tools%2Fmic.git make customized setting of plugin_dir work in bootstrap mode copy plugin_dir into bootstrap in bootstrap mode --- diff --git a/mic/rt_util.py b/mic/rt_util.py index 2a31f4a..e718c67 100644 --- a/mic/rt_util.py +++ b/mic/rt_util.py @@ -72,7 +72,7 @@ def bootstrap_mic(argv=None): rootdir = os.path.join(rootdir, "bootstrap") bsenv.dirsetup(rootdir) - sync_mic(rootdir) + sync_mic(rootdir, plugin=cropts['plugin_dir']) #FIXME: sync the ks file to bootstrap if "/" == os.path.dirname(os.path.abspath(configmgr._ksconf)): @@ -156,6 +156,7 @@ def get_mic_libpath(): # the hard code path is prepared for bootstrap def sync_mic(bootstrap, binpth = '/usr/bin/mic', libpth='/usr/lib', + plugin='/usr/lib/mic/plugins', pylib = '/usr/lib/python2.7/site-packages', conf = '/etc/mic/mic.conf'): _path = lambda p: os.path.join(bootstrap, p.lstrip('/')) @@ -163,6 +164,7 @@ def sync_mic(bootstrap, binpth = '/usr/bin/mic', micpaths = { 'binpth': get_mic_binpath(), 'libpth': get_mic_libpath(), + 'plugin': plugin, 'pylib': get_mic_modpath(), 'conf': '/etc/mic/mic.conf', }