mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
bitbake: toaster: add package manifest path to Target objects
Store the path to the *.rootfs.manifest file for targets which generate images. A link to the package manifest is displayed in the build dashboard for targets which produce image files. Like the license manifest path, if a target would have produced the package manifest (but didn't, because it already existed), that path is copied from the target which did produce the package manifest. (Bitbake rev: 79b8e349a0da2ea6b97ad82daa5837e6dfffe0af) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: bavery <brian.avery@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1027e0e313
commit
2db40e3771
@@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orm', '0008_refactor_artifact_models'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='target',
|
||||
name='package_manifest_path',
|
||||
field=models.CharField(null=True, max_length=500),
|
||||
),
|
||||
]
|
||||
@@ -622,6 +622,7 @@ class Target(models.Model):
|
||||
is_image = models.BooleanField(default = False)
|
||||
image_size = models.IntegerField(default=0)
|
||||
license_manifest_path = models.CharField(max_length=500, null=True)
|
||||
package_manifest_path = models.CharField(max_length=500, null=True)
|
||||
|
||||
def package_count(self):
|
||||
return Target_Installed_Package.objects.filter(target_id__exact=self.id).count()
|
||||
@@ -729,9 +730,9 @@ class Target(models.Model):
|
||||
Target_Image_File object for an ext4 image being associated with a
|
||||
target for a project which didn't produce an ext4 image (for example).
|
||||
|
||||
Also sets the license_manifest_path of this target to the same path
|
||||
as that of target being cloned from, as the license manifest path is
|
||||
also a build artifact but is treated differently.
|
||||
Also sets the license_manifest_path and package_manifest_path
|
||||
of this target to the same path as that of target being cloned from, as
|
||||
the manifests are also build artifacts but are treated differently.
|
||||
"""
|
||||
|
||||
image_fstypes = self.build.get_image_fstypes()
|
||||
@@ -754,6 +755,7 @@ class Target(models.Model):
|
||||
kernel_file.save()
|
||||
|
||||
self.license_manifest_path = target.license_manifest_path
|
||||
self.package_manifest_path = target.package_manifest_path
|
||||
self.save()
|
||||
|
||||
def clone_sdk_artifacts_from(self, target):
|
||||
|
||||
@@ -90,6 +90,12 @@
|
||||
<dd>
|
||||
<a href="{% url 'build_artifact' build.pk 'licensemanifest' target.target.pk %}">License manifest</a>
|
||||
</dd>
|
||||
|
||||
{% if target.target.package_manifest_path %}
|
||||
<dd>
|
||||
<a href="{% url 'build_artifact' build.pk 'packagemanifest' target.target.pk %}">Package manifest</a>
|
||||
</dd>
|
||||
{% endif %}
|
||||
</dl>
|
||||
|
||||
<dl class="dl-horizontal">
|
||||
|
||||
@@ -2315,6 +2315,9 @@ if True:
|
||||
elif artifact_type == "licensemanifest":
|
||||
file_name = Target.objects.get(build = build, pk = artifact_id).license_manifest_path
|
||||
|
||||
elif artifact_type == "packagemanifest":
|
||||
file_name = Target.objects.get(build = build, pk = artifact_id).package_manifest_path
|
||||
|
||||
elif artifact_type == "tasklogfile":
|
||||
file_name = Task.objects.get(build = build, pk = artifact_id).logfile
|
||||
|
||||
|
||||
Reference in New Issue
Block a user