aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGuillaume Tucker <guillaume.tucker@collabora.com>2019-07-18 19:02:50 +0100
committerGuillaume Tucker <guillaume.tucker@collabora.com>2019-07-26 08:04:26 +0100
commitf74c9a91d7d72a22438aba38fe940d203b752c53 (patch)
tree084156c65bb5c8e505d8cd0c59823d2bb39c954f /templates
parentc0b379fea8525378c79d0f2765a25881d5d0d19e (diff)
templates/boot: add extra_kernel_args for Depthcharge
Similarly to the U-Boot template, if extra_kernel_args is defined then add it to the job context for Depthcharge. Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/boot/generic-depthcharge-tftp-ramdisk-boot-template.jinja23
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/boot/generic-depthcharge-tftp-ramdisk-boot-template.jinja2 b/templates/boot/generic-depthcharge-tftp-ramdisk-boot-template.jinja2
index 5587aad..29546e5 100644
--- a/templates/boot/generic-depthcharge-tftp-ramdisk-boot-template.jinja2
+++ b/templates/boot/generic-depthcharge-tftp-ramdisk-boot-template.jinja2
@@ -3,6 +3,9 @@
{{ super() }}
{% endblock %}
{% block main %}
+{%- if extra_kernel_args %}
+{% do context.update({"extra_kernel_args": extra_kernel_args}) %}
+{% endif %}
{{ super() }}
{% endblock %}
{% block actions %}