diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /meta/lib/oeqa/runtime/utils | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/utils')
| -rw-r--r-- | meta/lib/oeqa/runtime/utils/__init__.py | 0 | ||||
| -rw-r--r-- | meta/lib/oeqa/runtime/utils/targetbuildproject.py | 44 |
2 files changed, 0 insertions, 44 deletions
diff --git a/meta/lib/oeqa/runtime/utils/__init__.py b/meta/lib/oeqa/runtime/utils/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 --- a/meta/lib/oeqa/runtime/utils/__init__.py +++ /dev/null | |||
diff --git a/meta/lib/oeqa/runtime/utils/targetbuildproject.py b/meta/lib/oeqa/runtime/utils/targetbuildproject.py deleted file mode 100644 index f4f4816a9b..0000000000 --- a/meta/lib/oeqa/runtime/utils/targetbuildproject.py +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | # | ||
| 2 | # Copyright (C) 2016 Intel Corporation | ||
| 3 | # | ||
| 4 | # SPDX-License-Identifier: MIT | ||
| 5 | # | ||
| 6 | |||
| 7 | from oeqa.utils.buildproject import BuildProject | ||
| 8 | |||
| 9 | class TargetBuildProject(BuildProject): | ||
| 10 | |||
| 11 | def __init__(self, target, uri, foldername=None, dl_dir=None): | ||
| 12 | self.target = target | ||
| 13 | self.targetdir = "~/buildtest/" | ||
| 14 | BuildProject.__init__(self, uri, foldername, dl_dir=dl_dir) | ||
| 15 | |||
| 16 | def download_archive(self): | ||
| 17 | self.target.run("mkdir " + self.targetdir + " || true") | ||
| 18 | |||
| 19 | self._download_archive() | ||
| 20 | |||
| 21 | status, output = self.target.copyTo(self.localarchive, self.targetdir) | ||
| 22 | if status: | ||
| 23 | raise Exception('Failed to copy archive to target, ' | ||
| 24 | 'output: %s' % output) | ||
| 25 | |||
| 26 | cmd = 'tar xf %s%s -C %s' % (self.targetdir, | ||
| 27 | self.archive, | ||
| 28 | self.targetdir) | ||
| 29 | status, output = self.target.run(cmd) | ||
| 30 | if status: | ||
| 31 | raise Exception('Failed to extract archive, ' | ||
| 32 | 'output: %s' % output) | ||
| 33 | |||
| 34 | # Change targetdir to project folder | ||
| 35 | self.targetdir = self.targetdir + self.fname | ||
| 36 | |||
| 37 | # The timeout parameter of target.run is set to 0 | ||
| 38 | # to make the ssh command run with no timeout. | ||
| 39 | def _run(self, cmd): | ||
| 40 | ret = self.target.run(cmd, 0) | ||
| 41 | msg = "Command %s failed with exit code %s: %s" % (cmd, ret[0], ret[1]) | ||
| 42 | if ret[0] != 0: | ||
| 43 | raise Exception(msg) | ||
| 44 | return ret[0] | ||
