aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGuillaume Tucker <guillaume.tucker@collabora.com>2018-01-10 13:40:04 +0000
committerGuillaume Tucker <guillaume.tucker@collabora.com>2018-02-13 16:52:20 +0000
commit63e79a1690c44052ead76f6f9d72992ff6af4692 (patch)
tree5dac3920acc406d142e8b04a367b9c3a6705af16 /templates
parent966045a4b2c8bb44d5f854b6d3927348ec23ab4a (diff)
templates: add Depthcharge jobs for boot and boot-nfs
Add generic templates for plain boot and boot-nfs jobs for devices using Coreboot/Depthcharge (typically Chrome OS devices). This involves removing the kernel image type attribute for Depthcharge as it needs a FIT image rather than the legacy U-Boot image conversion to uImage. Please note that these devices need to be manually updated with a Depthcharge custom build with the debug CLI config enabled and the tftpboot command available. Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/base/kernel-ci-base-tftp-deploy.jinja22
-rw-r--r--templates/boot-nfs/generic-depthcharge-tftp-nfs-template.jinja224
-rw-r--r--templates/boot/generic-depthcharge-tftp-ramdisk-template.jinja224
3 files changed, 50 insertions, 0 deletions
diff --git a/templates/base/kernel-ci-base-tftp-deploy.jinja2 b/templates/base/kernel-ci-base-tftp-deploy.jinja2
index 43b366c..1e372ee 100644
--- a/templates/base/kernel-ci-base-tftp-deploy.jinja2
+++ b/templates/base/kernel-ci-base-tftp-deploy.jinja2
@@ -13,7 +13,9 @@ actions:
to: tftp
kernel:
url: {{ kernel_url }}
+{%- block kernel_image_type %}
type: {{ kernel_image.lower() }}
+{%- endblock %}
{%- if nfsrootfs_url %}
nfsrootfs:
url: {{ nfsrootfs_url }}
diff --git a/templates/boot-nfs/generic-depthcharge-tftp-nfs-template.jinja2 b/templates/boot-nfs/generic-depthcharge-tftp-nfs-template.jinja2
new file mode 100644
index 0000000..debc0e2
--- /dev/null
+++ b/templates/boot-nfs/generic-depthcharge-tftp-nfs-template.jinja2
@@ -0,0 +1,24 @@
+{% extends 'base/kernel-ci-base-tftp-deploy.jinja2' %}
+{% block metadata %}
+{{ super() }}
+{% endblock %}
+{% block main %}
+{{ super() }}
+{% endblock %}
+{% block actions %}
+{%- block deploy %}
+{{ super () }}
+{%- endblock %}
+{% block kernel_image_type %}
+{%- endblock %}
+
+- boot:
+ timeout:
+ minutes: 5
+ method: depthcharge
+ commands: nfs
+ prompts:
+ - 'linaro-test'
+ - 'root@debian:~#'
+ - '/ #'
+{% endblock %}
diff --git a/templates/boot/generic-depthcharge-tftp-ramdisk-template.jinja2 b/templates/boot/generic-depthcharge-tftp-ramdisk-template.jinja2
new file mode 100644
index 0000000..28fbeb3
--- /dev/null
+++ b/templates/boot/generic-depthcharge-tftp-ramdisk-template.jinja2
@@ -0,0 +1,24 @@
+{% extends 'base/kernel-ci-base-tftp-deploy.jinja2' %}
+{% block metadata %}
+{{ super() }}
+{% endblock %}
+{% block main %}
+{{ super() }}
+{% endblock %}
+{% block actions %}
+{%- block deploy %}
+{{ super () }}
+{%- endblock %}
+{% block kernel_image_type %}
+{%- endblock %}
+
+- boot:
+ timeout:
+ minutes: 5
+ method: depthcharge
+ commands: ramdisk
+ prompts:
+ - 'linaro-test'
+ - 'root@debian:~#'
+ - '/ #'
+{% endblock %}