mirror of
https://github.com/ARM-software/devlib.git
synced 2025-09-01 09:31:53 +01: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:
@@ -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'):
|
||||
|
Reference in New Issue
Block a user