1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

target: add a "setup" stage for modules initialisation

Some modules could requires assets available on a target before being
initialised. For example, the cgroups module requires busybox and shutil
to properly initialise.

This patch adds a new stage to Target which allows to post-pone the
initialisation of some modules till Target.setup() has been executed.

Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
This commit is contained in:
Patrick Bellasi 2016-05-13 18:15:51 +01:00
parent 1dc1e1364c
commit c4e46b7c26

View File

@ -216,6 +216,9 @@ class Target(object):
for host_exe in (executables or []): # pylint: disable=superfluous-parens
self.install(host_exe)
# Initialize modules which requires Buxybox (e.g. shutil dependent tasks)
self._update_modules('setup')
def reboot(self, hard=False, connect=True, timeout=180):
if hard:
if not self.has('hard_reset'):