mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-07 05:30:44 +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:
parent
1dc1e1364c
commit
c4e46b7c26
@ -216,6 +216,9 @@ class Target(object):
|
|||||||
for host_exe in (executables or []): # pylint: disable=superfluous-parens
|
for host_exe in (executables or []): # pylint: disable=superfluous-parens
|
||||||
self.install(host_exe)
|
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):
|
def reboot(self, hard=False, connect=True, timeout=180):
|
||||||
if hard:
|
if hard:
|
||||||
if not self.has('hard_reset'):
|
if not self.has('hard_reset'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user