From 05146fa425d94a77ba35b43ac3b0a5c633163d4e Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Tue, 22 Aug 2017 16:07:47 -0700 Subject: initial snapshot: LAVA job creation based on templates Change-Id: I5d545d3531f4c4190453724738076bd4eddfc4d6 Signed-off-by: Jerome Brunet Signed-off-by: Loys Ollivier Signed-off-by: Kevin Hilman --- templates/boot/generic-uboot-tftp.jinja2 | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 templates/boot/generic-uboot-tftp.jinja2 (limited to 'templates/boot/generic-uboot-tftp.jinja2') diff --git a/templates/boot/generic-uboot-tftp.jinja2 b/templates/boot/generic-uboot-tftp.jinja2 new file mode 100644 index 0000000..cbdda7a --- /dev/null +++ b/templates/boot/generic-uboot-tftp.jinja2 @@ -0,0 +1,51 @@ +{%- extends 'boot/generic-base-boot.jinja2' %} +{%- set boot_method = "u-boot" %} +{%- block main %} +{{ super() }} +{%- if rootfs_type == 'nbd' %} +protocols: + lava-xnbd: + port: auto +{%- endif %} +{% endblock %} +{%- block boot %} +{{ super() }} + type: {{ uboot_type|default("bootm") }} + commands: {{ boot_commands|default("ramdisk") }} +{%- if rootfs_type == 'nbd' %} + transfer_overlay: + download_command: wget + unpack_command: tar -C / -xvpf +{%- endif %} +{%- endblock %} +{%- block deploy -%} +{{ super() }} + kernel: + url: {{ kernel_url }} +{%- if rootfs_type == 'nfs' %} + nfsrootfs: + url: {{ nfsrootfs_url }} + compression: {{ nfsroot_compression }} +{%- elif rootfs_type == 'nbd' %} + initrd: + url: {{ nbdinitrd_url }} + allow_modify: false + nbdroot: + url: {{ nbdroot_url }} + compression: {{ nbdroot_compression }} +{%- endif %} +{%- if initrd_url and rootfs_type != 'nbd' %} + ramdisk: + url: {{ initrd_url }} + compression: {{ initrd_compression }} +{%- endif %} +{%- if modules_url %} + modules: + url: {{ modules_url }} + compression: {{ modules_compression }} +{%- endif %} +{%- if dtb_url %} + dtb: + url: {{ dtb_url }} +{%- endif %} +{%- endblock %} -- cgit 1.2.3-korg