diff options
author | Loys Ollivier <lollivier@baylibre.com> | 2017-09-22 10:48:07 +0200 |
---|---|---|
committer | Loys Ollivier <lollivier@baylibre.com> | 2017-09-26 08:02:24 +0200 |
commit | 7a534f7dfac2d4367172e4dd1bd5d36e1525bbc5 (patch) | |
tree | 391d4c8c84a147e92c7c66f54222c8f782377f9a /templates | |
parent | 1bd6162cb9ab717b55ce0f0635bea7c1366b07e6 (diff) |
Add AGL metadata in job description
These metadatas will be used in the frontend to display job's info
related to AGL.
Change-Id: I3eff231c42fa72a3920ed3583ecb79652ef5b201
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/agl-base-defaults.jinja2 | 7 | ||||
-rw-r--r-- | templates/base/agl-base.jinja2 | 3 | ||||
-rw-r--r-- | templates/base/agl-metadata.jinja2 | 12 |
3 files changed, 20 insertions, 2 deletions
diff --git a/templates/base/agl-base-defaults.jinja2 b/templates/base/agl-base-defaults.jinja2 index af82379..9ae5c6d 100644 --- a/templates/base/agl-base-defaults.jinja2 +++ b/templates/base/agl-base-defaults.jinja2 @@ -11,6 +11,13 @@ {%- set kernel_image = kernel_image|default('uImage') %} {%- set kernel_url = kernel_url|default(baseurl(kernel_image)) %} {%- set rootfs_type = rootfs_type|default("ramdisk") %} +{%- set image_type = image_type|default("AGL") %} +{%- set kernel_defconfig_base = kernel_defconfig_base|default("defconfig") %} +{%- set kernel_defconfig = kernel_defconfig|default("defconfig+CONFIG_AGL=y") %} +{%- set kernel_tree = kernel_tree|default("AGL-kernel-tree") %} +{%- set kernel_version = kernel_version|default("AGL-kernel-version") %} +{%- set vcs_branch = vcs_branch|default("agl-branch") %} +{%- set vcs_url = vcs_url|default(baseurl()) %} {%- if dtb %} {%- set dtb_url = dtb_url|default(baseurl(dtb)) %} {%- endif %} diff --git a/templates/base/agl-base.jinja2 b/templates/base/agl-base.jinja2 index f717ef6..069eeb2 100644 --- a/templates/base/agl-base.jinja2 +++ b/templates/base/agl-base.jinja2 @@ -1,8 +1,7 @@ {%- extends 'base/agl-base-defaults.jinja2' %} {%- block job %} {%- block metadata %} -metadata: - image.type: 'AGL' +{% include 'base/agl-metadata.jinja2' %} {% endblock %} {% if callback_name %} {% include 'base/agl-callback.jinja2' %} diff --git a/templates/base/agl-metadata.jinja2 b/templates/base/agl-metadata.jinja2 new file mode 100644 index 0000000..050eeff --- /dev/null +++ b/templates/base/agl-metadata.jinja2 @@ -0,0 +1,12 @@ +metadata: + git.branch: {{ vcs_branch }} + image.type: {{ image_type }} + job.arch: {{ device_arch }} + job.name: {{ name }} + kernel.tree: {{ kernel_tree }} + kernel.version: {{ kernel_version }} + kernel.defconfig_base: {{ kernel_defconfig_base }} + kernel.defconfig: {{ kernel_defconfig }} + platform.mach: {{ device_mach }} + platform.name: {{ device_type }} + vcs.url: {{ vcs_url }} |