diff options
-rw-r--r-- | templates/machines/raspberrypi4-64.jinja2 | 1 | ||||
-rw-r--r-- | templates/machines/raspberrypi4.jinja2 | 4 | ||||
-rw-r--r-- | utils/agljobtemplate.py | 6 |
3 files changed, 9 insertions, 2 deletions
diff --git a/templates/machines/raspberrypi4-64.jinja2 b/templates/machines/raspberrypi4-64.jinja2 new file mode 100644 index 0000000..063ca3b --- /dev/null +++ b/templates/machines/raspberrypi4-64.jinja2 @@ -0,0 +1 @@ +{%- extends 'machines/raspberrypi4.jinja2' %} diff --git a/templates/machines/raspberrypi4.jinja2 b/templates/machines/raspberrypi4.jinja2 index 2a96b43..efa3e11 100644 --- a/templates/machines/raspberrypi4.jinja2 +++ b/templates/machines/raspberrypi4.jinja2 @@ -11,9 +11,9 @@ {%- endif %} {%- set dtb = dtb|default("bcm2711-rpi-4-b.dtb") %} {%- if (build_type == 'daily') or (build_type == 'release') %} - {%- set rfs_image = rfs_image|default("agl-demo-platform-crosssdk-raspberrypi4.ext4.xz") %} + {%- set rfs_image = rfs_image|default("agl-demo-platform-crosssdk-" + yocto_machine + ".ext4.xz") %} {%- else %} - {%- set rfs_image = rfs_image|default("agl-demo-platform-raspberrypi4.ext4.xz") %} + {%- set rfs_image = rfs_image|default("agl-demo-platform-" + yocto_machine + ".ext4.xz") %} {%- endif %} {%- block main %} diff --git a/utils/agljobtemplate.py b/utils/agljobtemplate.py index b3763dd..61fc82b 100644 --- a/utils/agljobtemplate.py +++ b/utils/agljobtemplate.py @@ -119,6 +119,8 @@ class Agljobtemplate(object): url_fragment = '' if (build_type == 'ci'): url_fragment += changeid + '/' + patchset + '/' + if not vcs_branch: + vcs_branch = 'master' elif (build_type == 'snapshot' or build_type == 'weekly' or build_type == 'daily') and (not vcs_branch and not version): vcs_branch = 'master' version = 'latest' @@ -137,6 +139,10 @@ class Agljobtemplate(object): if machine == "upsquare": machine_frag_url = "intel-corei7-64" build_name = "intel-corei7-64" + if vcs_branch == "master" and (machine == "raspberrypi4" or machine == "raspberrypi4-64"): + machine_frag_url = "raspberrypi4-64" + build_name = "raspberrypi4" + job['yocto_machine'] = "raspberrypi4-64" url_fragment += build_name if (build_type != 'ci'): |