Skip to content
Snippets Groups Projects
Commit d9e02833 authored by Andrii Sosiuk's avatar Andrii Sosiuk Committed by Lorenzo Pagliai
Browse files

[CICD][ARTIFACTS][MEDIATEK] Prevent Mediatek artifacts from being propagated

  The previous implementation for Mediatek-specific artifacts had an issue
  where the same artifacts were applied to all other boards immediately
  after Mediatek.
  This update resolves the issue by ensuring artifacts are correctly
  scoped to Mediatek only.
parent 1915689b
No related branches found
No related tags found
No related merge requests found
......@@ -222,19 +222,6 @@ release:
{% set UBOOT_FILE = "bl2.img u-boot-initial-env fip.bin" %}
{% set KERNEL_FILE = "fitImage" %}
{% set AZURE_PATH = "mediatek/" + machine %}
{% set genio_embedded_full_custom_artifacts = [
"embedded-full:devicetree", "bl2.img", "bootassets.vfat", "capsule.vfat",
"fip.bin", "fitImage", "lk.bin", "partitions.json", "u-boot-initial-env",
"${RECIPE_NAME}-${MACHINE}.manifest", "${RECIPE_NAME}-${MACHINE}.testdata.json",
"${RECIPE_NAME}-${MACHINE}.wic.img"
] %}
{% set genio_things_custom_artifacts = [
"things:devicetree", "bl2.img", "bootassets.vfat", "capsule.vfat",
"fip.bin", "fitImage", "lk.bin", "partitions.json", "u-boot-initial-env",
"${RECIPE_NAME}-${MACHINE}.manifest", "${RECIPE_NAME}-${MACHINE}.testdata.json",
"${RECIPE_NAME}-${MACHINE}.wic.img"
] %}
{% set DISTROS_CUSTOM_ARTIFACTS = genio_embedded_full_custom_artifacts | join(';') ~ ' ' ~ genio_things_custom_artifacts | join(';') %}
{% elif PROCESSOR == 'raspberrypi4-arm64' %}
{% set UBOOT_FILE = "u-boot.bin" %}
{% set KERNEL_FILE = "Image" %}
......@@ -285,22 +272,30 @@ release:
build-{{ machine }}-{{ distro }}:
extends: .build
variables: &build-{{ machine }}-{{ distro }}
BOARD: {{ machine }}
{% if RAM_CONF is defined %}
RAM_CONF: {{ RAM_CONF }}
{% endif %}
PROCESSOR: {{ PROCESSOR }}
MACHINE: {{ MACHINE }}
DEFCONFIG_FILE: {{ DEFCONFIG }}
RECIPE_NAME: {{ recipe }}
IMAGE_NAME: {{ image }}-{{ backend }}
UBOOT_FILE: {{ UBOOT_FILE }}
KERNEL_FILE: {{ KERNEL_FILE }}
AZURE_PATH: {{ AZURE_PATH }}
{% if ca_namespace.CUSTOM_ARTIFACTS %}
CUSTOM_ARTIFACTS: >
{{ ca_namespace.CUSTOM_ARTIFACTS }}
{% endif %}
BOARD: {{ machine }}
{% if RAM_CONF is defined %}
RAM_CONF: {{ RAM_CONF }}
{% endif %}
PROCESSOR: {{ PROCESSOR }}
MACHINE: {{ MACHINE }}
DEFCONFIG_FILE: {{ DEFCONFIG }}
RECIPE_NAME: {{ recipe }}
IMAGE_NAME: {{ image }}-{{ backend }}
UBOOT_FILE: {{ UBOOT_FILE }}
KERNEL_FILE: {{ KERNEL_FILE }}
AZURE_PATH: {{ AZURE_PATH }}
{%- if ca_namespace.CUSTOM_ARTIFACTS %}
CUSTOM_ARTIFACTS: >
{{ ca_namespace.CUSTOM_ARTIFACTS }}
{%- endif %}
{%- if "genio" in PROCESSOR %}
{%- if not ca_namespace.CUSTOM_ARTIFACTS %}
CUSTOM_ARTIFACTS: >
{%- endif %}
devicetree bl2.img bootassets.vfat capsule.vfat fip.bin fitImage lk.bin partitions.json
u-boot-initial-env ${RECIPE_NAME}-${MACHINE}.manifest ${RECIPE_NAME}-${MACHINE}.testdata.json
${RECIPE_NAME}-${MACHINE}.wic.img
{%- endif %}
#----------------------------------------------------
# {{ SECO_REMOTE }}-deploy-{{ machine }}-{{ distro }}
#----------------------------------------------------
......@@ -342,22 +337,30 @@ report-{{ machine }}-{{ distro }}:
build-{{ machine }}-{{ distro }}:
extends: .build
variables: &build-{{ machine }}-{{ distro }}
BOARD: {{ machine }}
{% if RAM_CONF is defined %}
RAM_CONF: {{ RAM_CONF }}
{% endif %}
PROCESSOR: {{ PROCESSOR }}
MACHINE: {{ MACHINE }}
DEFCONFIG_FILE: {{ DEFCONFIG }}
RECIPE_NAME: {{ recipe }}
IMAGE_NAME: {{ image }}
UBOOT_FILE: {{ UBOOT_FILE }}
KERNEL_FILE: {{ KERNEL_FILE }}
AZURE_PATH: {{ AZURE_PATH }}
{% if ca_namespace.CUSTOM_ARTIFACTS %}
CUSTOM_ARTIFACTS: >
{{ ca_namespace.CUSTOM_ARTIFACTS }}
{% endif %}
BOARD: {{ machine }}
{% if RAM_CONF is defined %}
RAM_CONF: {{ RAM_CONF }}
{% endif %}
PROCESSOR: {{ PROCESSOR }}
MACHINE: {{ MACHINE }}
DEFCONFIG_FILE: {{ DEFCONFIG }}
RECIPE_NAME: {{ recipe }}
IMAGE_NAME: {{ image }}
UBOOT_FILE: {{ UBOOT_FILE }}
KERNEL_FILE: {{ KERNEL_FILE }}
AZURE_PATH: {{ AZURE_PATH }}
{%- if ca_namespace.CUSTOM_ARTIFACTS %}
CUSTOM_ARTIFACTS: >
{{ ca_namespace.CUSTOM_ARTIFACTS }}
{%- endif %}
{%- if "genio" in PROCESSOR %}
{%- if not ca_namespace.CUSTOM_ARTIFACTS %}
CUSTOM_ARTIFACTS: >
{%- endif %}
devicetree bl2.img bootassets.vfat capsule.vfat fip.bin fitImage lk.bin partitions.json
u-boot-initial-env ${RECIPE_NAME}-${MACHINE}.manifest ${RECIPE_NAME}-${MACHINE}.testdata.json
${RECIPE_NAME}-${MACHINE}.wic.img
{%- endif %}
#----------------------------------------------------
# {{ SECO_REMOTE }}-deploy-{{ machine }}-{{ distro }}
#----------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment