mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
target: Install busybox before updating modules
Due to the new read_tree_values API, some devlib modules now use shutils in their __init__, which happens from Target::connect(). Therefore ensure we have busybox on the target before we get to that stage.
This commit is contained in:
parent
7e073c1fce
commit
17bcabd461
@ -215,7 +215,9 @@ class Target(object):
|
||||
tid = id(threading.current_thread())
|
||||
self._connections[tid] = self.get_connection(timeout=timeout)
|
||||
self._resolve_paths()
|
||||
self.busybox = self.get_installed('busybox')
|
||||
self.execute('mkdir -p {}'.format(self.working_directory))
|
||||
self.execute('mkdir -p {}'.format(self.executables_directory))
|
||||
self.busybox = self.install(os.path.join(PACKAGE_BIN_DIRECTORY, self.abi, 'busybox'))
|
||||
self.platform.update_from_target(self)
|
||||
self._update_modules('connected')
|
||||
if self.platform.big_core and self.load_default_modules:
|
||||
@ -232,10 +234,6 @@ class Target(object):
|
||||
return self.conn_cls(timeout=timeout, **self.connection_settings) # pylint: disable=not-callable
|
||||
|
||||
def setup(self, executables=None):
|
||||
self.execute('mkdir -p {}'.format(self.working_directory))
|
||||
self.execute('mkdir -p {}'.format(self.executables_directory))
|
||||
self.busybox = self.install(os.path.join(PACKAGE_BIN_DIRECTORY, self.abi, 'busybox'))
|
||||
|
||||
self._setup_shutils()
|
||||
|
||||
for host_exe in (executables or []): # pylint: disable=superfluous-parens
|
||||
|
Loading…
x
Reference in New Issue
Block a user