kas/shell: Prepare complete bitbake configuration before entering shell

Before this patch, starting the shell in a clean environment, does not
checkout all repository or configures all layers correctly.

This patch adds the missing checkout and configuration steps to the
shell plugin.

Signed-off-by: Claudius Heine <ch@denx.de>
This commit is contained in:
Claudius Heine 2017-07-31 09:29:04 +02:00 committed by Daniel Wagner
parent bb36b907f0
commit 11f047a408

View File

@ -27,7 +27,8 @@
import subprocess
from kas.libkas import kasplugin
from kas.config import load_config
from kas.libcmds import (Macro, Command, SetupProxy, SetupEnviron, SetupHome)
from kas.libcmds import (Macro, Command, SetupDir, SetupProxy, SetupEnviron,
WriteConfig, SetupHome, ReposFetch, ReposCheckout)
__license__ = 'MIT'
__copyright__ = 'Copyright (c) Siemens AG, 2017'
@ -73,8 +74,13 @@ class Shell:
macro = Macro()
macro.add(SetupDir())
macro.add(SetupProxy())
macro.add(SetupEnviron())
macro.add(ReposFetch())
macro.add(ReposCheckout())
macro.add(SetupEnviron())
macro.add(WriteConfig())
macro.add(SetupHome())
macro.add(ShellCommand(args.command))