1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 10:50:51 +01:00

LocalLinuxTarget: fix executables folder location

Since:
   cafc0a4 target: do not create shutil in package directory
we generate 'shutils' in /tmp, which is also the executables_path
used by default by a LocalLinuxTarget.

This ultimately results into a:

   self.install(shutils_ofile)
      ...
         shutil.copy(source, dest)

raising an exception since source == dest.

Let's fix this by setting /tmp/devlib-target as a default base path for
all devlib deployed stuff into a localhost target.

Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
This commit is contained in:
Patrick Bellasi 2018-01-16 14:25:06 +00:00 committed by marcbonnici
parent 730118d6d0
commit cc0210af37

View File

@ -1644,10 +1644,10 @@ class LocalLinuxTarget(LinuxTarget):
def _resolve_paths(self):
if self.working_directory is None:
self.working_directory = '/tmp'
self.working_directory = '/tmp/devlib-target'
self._file_transfer_cache = self.path.join(self.working_directory, '.file-cache')
if self.executables_directory is None:
self.executables_directory = '/tmp'
self.executables_directory = '/tmp/devlib-target/bin'
def _get_model_name(section):