aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/boot/generic-grub-tftp.jinja246
-rw-r--r--templates/machines/upsquare.jinja28
-rw-r--r--utils/agljobtemplate.py8
3 files changed, 59 insertions, 3 deletions
diff --git a/templates/boot/generic-grub-tftp.jinja2 b/templates/boot/generic-grub-tftp.jinja2
new file mode 100644
index 0000000..0d42443
--- /dev/null
+++ b/templates/boot/generic-grub-tftp.jinja2
@@ -0,0 +1,46 @@
+{%- extends 'boot/generic-base-boot.jinja2' %}
+{%- set boot_method = "grub" %}
+{%- block main %}
+{{ super() }}
+{%- if rootfs_type == 'nbd' %}
+protocols:
+ lava-xnbd:
+ port: auto
+
+# context allows specific values to be overridden or included
+context:
+ extra_kernel_args: initrd={{ initrd }}
+{%- endif %}
+{% endblock %}
+{%- block boot %}
+{{ super() }}
+ 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 == 'ramdisk' %}
+ type: {{ kernel_type }}
+ ramdisk:
+ url: {{ initrd_url }}
+ compression: {{ initrd_compression }}
+{%- elif rootfs_type == 'nbd' %}
+ initrd:
+ url: {{ initrd_url }}
+ allow_modify: false
+ nbdroot:
+ url: {{ rootfs_url }}
+ compression: {{ rootfs_compression }}
+{%- endif %}
+{%- if modules_url %}
+ modules:
+ url: {{ modules_url }}
+ compression: {{ modules_compression }}
+{%- endif %}
+{%- endblock %}
diff --git a/templates/machines/upsquare.jinja2 b/templates/machines/upsquare.jinja2
new file mode 100644
index 0000000..46ced27
--- /dev/null
+++ b/templates/machines/upsquare.jinja2
@@ -0,0 +1,8 @@
+{%- extends 'boot/generic-grub-tftp.jinja2' %}
+{%- set device_arch = "x86" %}
+{%- set device_mach = "intel" %}
+{%- set device_type = "upsquare" %}
+{%- set yocto_machine = "intel-corei7-64" %}
+{%- set kernel_image = kernel_image|default("bzImage") %}
+{%- set rootfs_type = rootfs_type|default("nbd") %}
+{%- set rfs_image = rfs_image|default("agl-demo-platform-crosssdk-intel-corei7-64.ext4.xz") %}
diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py
index 0dcafb5..691b54f 100644
--- a/utils/agljobtemplate.py
+++ b/utils/agljobtemplate.py
@@ -122,10 +122,12 @@ class Agljobtemplate(object):
else:
url_fragment += vcs_branch + '/' + version + '/'
+ machine_frag_url = machine
if (machine == 'm3ulcb') or (machine == 'porter'):
- url_fragment += machine + '-nogfx'
- else:
- url_fragment += machine
+ machine_frag_url = machine + '-nogfx'
+ if machine == "upsquare":
+ machine_frag_url = "intel-corei7-64"
+ url_fragment += machine_frag_url
if (build_type != 'ci'):
url_fragment += '/deploy/images/' + machine