Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#
|
||||
# Copyright (C) 2016 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
from oeqa.utils.buildproject import BuildProject
|
||||
|
||||
class TargetBuildProject(BuildProject):
|
||||
|
||||
def __init__(self, target, uri, foldername=None, dl_dir=None):
|
||||
self.target = target
|
||||
self.targetdir = "~/buildtest/"
|
||||
BuildProject.__init__(self, uri, foldername, dl_dir=dl_dir)
|
||||
|
||||
def download_archive(self):
|
||||
self.target.run("mkdir " + self.targetdir + " || true")
|
||||
|
||||
self._download_archive()
|
||||
|
||||
status, output = self.target.copyTo(self.localarchive, self.targetdir)
|
||||
if status:
|
||||
raise Exception('Failed to copy archive to target, '
|
||||
'output: %s' % output)
|
||||
|
||||
cmd = 'tar xf %s%s -C %s' % (self.targetdir,
|
||||
self.archive,
|
||||
self.targetdir)
|
||||
status, output = self.target.run(cmd)
|
||||
if status:
|
||||
raise Exception('Failed to extract archive, '
|
||||
'output: %s' % output)
|
||||
|
||||
# Change targetdir to project folder
|
||||
self.targetdir = self.targetdir + self.fname
|
||||
|
||||
# The timeout parameter of target.run is set to 0
|
||||
# to make the ssh command run with no timeout.
|
||||
def _run(self, cmd):
|
||||
ret = self.target.run(cmd, 0)
|
||||
msg = "Command %s failed with exit code %s: %s" % (cmd, ret[0], ret[1])
|
||||
if ret[0] != 0:
|
||||
raise Exception(msg)
|
||||
return ret[0]
|
||||
Reference in New Issue
Block a user