diff options
author | setrofim <setrofim@gmail.com> | 2017-10-10 08:31:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-10 08:31:33 +0100 |
commit | 535fc7ea63c233c061b99f1c99e480ccfb3d6730 (patch) | |
tree | d78a8288c38967223aa520cc7a8603b6befdbdb3 | |
parent | 7e073c1fce9304cdf7b60f507208f15a66939bc0 (diff) | |
parent | 17bcabd461b22434db00552056e7de995fc7f498 (diff) | |
download | devlib-535fc7ea63c233c061b99f1c99e480ccfb3d6730.tar.gz |
Merge pull request #185 from bjackman/master
target: Install busybox before updating modules
-rw-r--r-- | devlib/target.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/devlib/target.py b/devlib/target.py index 6d2a12d..81629b1 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -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 |