From 25f672368b71b3c5aaf83693158a2278c9081967 Mon Sep 17 00:00:00 2001
From: Andrii Sosiuk <andrii.sosiuk@seco.com>
Date: Fri, 6 Dec 2024 10:48:46 +0100
Subject: [PATCH] [CUSTOM][MACHINES] Multiple machine configurations for
 customer projects

  Previously, only a single configuration was supported per customer project.
  Some customers require separate setups for different machine types.
  This introduces multiple configurations, by setting the necessary variables.
  Currently, the supported machine types are limited to c57 and b98.
---
 build-pipeline-yocto.yml.jinja2 | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/build-pipeline-yocto.yml.jinja2 b/build-pipeline-yocto.yml.jinja2
index f54ca80..de55494 100644
--- a/build-pipeline-yocto.yml.jinja2
+++ b/build-pipeline-yocto.yml.jinja2
@@ -234,6 +234,23 @@ release:
         {% set KERNEL_FILE = "Image" %}
         {% set AZURE_PATH = "raspberry/" + machine %}
       {% endif %}
+    {% else %}
+    {# ============== Custom porojects =================== #}
+      {% if "b68" in machine %}
+        {% set PROCESSOR = "intel" %}
+        {% set MACHINE = "seco-intel-apl" %}
+        {% set DEFCONFIG = "seco_" + CUSTOM + "_intel_apl_edgehog" %}
+        {% set UBOOT_FILE = "none" %}
+        {% set KERNEL_FILE = "none" %}
+        {% set BUILD_DIR = "build_" + CUSTOM + "_" + machine %}
+      {% elif "c57" in machine %}
+        {% set PROCESSOR = "imx8qxp" %}
+        {% set MACHINE = "seco-imx8qxp-c57" %}
+        {% set DEFCONFIG = "seco_" + CUSTOM + "_c57_edgehog" %}
+        {% set KERNEL_FILE = "Image" %}
+        {% set UBOOT_FILE = "imx-boot" %}
+        {% set BUILD_DIR = "build_" + CUSTOM + "_" + machine %}
+      {% endif %}
     {% endif %}
     {% for distro in DISTRO.split(' ')%}
       {% set ca_namespace = namespace(CUSTOM_ARTIFACTS="") %}
-- 
GitLab