diff options
Diffstat (limited to 'scripts/lib')
| -rw-r--r-- | scripts/lib/devtool/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py index 61b810c938..b54ddf5ff4 100644 --- a/scripts/lib/devtool/__init__.py +++ b/scripts/lib/devtool/__init__.py | |||
| @@ -96,7 +96,7 @@ def exec_fakeroot(d, cmd, **kwargs): | |||
| 96 | newenv[splitval[0]] = splitval[1] | 96 | newenv[splitval[0]] = splitval[1] |
| 97 | return subprocess.call("%s %s" % (fakerootcmd, cmd), env=newenv, **kwargs) | 97 | return subprocess.call("%s %s" % (fakerootcmd, cmd), env=newenv, **kwargs) |
| 98 | 98 | ||
| 99 | def setup_tinfoil(): | 99 | def setup_tinfoil(config_only=False): |
| 100 | """Initialize tinfoil api from bitbake""" | 100 | """Initialize tinfoil api from bitbake""" |
| 101 | import scriptpath | 101 | import scriptpath |
| 102 | bitbakepath = scriptpath.add_bitbake_lib_path() | 102 | bitbakepath = scriptpath.add_bitbake_lib_path() |
| @@ -106,7 +106,7 @@ def setup_tinfoil(): | |||
| 106 | 106 | ||
| 107 | import bb.tinfoil | 107 | import bb.tinfoil |
| 108 | tinfoil = bb.tinfoil.Tinfoil() | 108 | tinfoil = bb.tinfoil.Tinfoil() |
| 109 | tinfoil.prepare(False) | 109 | tinfoil.prepare(config_only) |
| 110 | tinfoil.logger.setLevel(logger.getEffectiveLevel()) | 110 | tinfoil.logger.setLevel(logger.getEffectiveLevel()) |
| 111 | return tinfoil | 111 | return tinfoil |
| 112 | 112 | ||
