public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: adriaan.schmidt@siemens.com, Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH v3 1/7] image: Introduce template support for imagetypes
Date: Wed,  4 May 2022 08:41:23 +0300	[thread overview]
Message-ID: <20220504054129.15218-2-amikan@ilbers.de> (raw)
In-Reply-To: <20220504054129.15218-1-amikan@ilbers.de>

Provide SRC_URI, TEMPLATE_FILES and TEMPLATE_VARS variables defines for
supporting per-imagetype templates support.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta/classes/image.bbclass | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 26b1b0d..0246ad3 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -232,6 +232,17 @@ python() {
         d.delVarFlag('IMAGE_CMD_' + bt_clean, 'func')
         task_deps = d.getVarFlag('IMAGE_CMD_' + bt_clean, 'depends')
 
+        image_src = localdata.getVar('IMAGE_SRC_URI_' + bt_clean)
+        if image_src:
+            d.appendVar("SRC_URI", ' ' + image_src)
+
+        image_tmpl_files = localdata.getVar('IMAGE_TEMPLATE_FILES_' + bt_clean)
+        image_tmpl_vars = localdata.getVar('IMAGE_TEMPLATE_VARS_' + bt_clean)
+        if image_tmpl_files:
+            d.appendVar("TEMPLATE_FILES", ' ' + image_tmpl_files)
+        if image_tmpl_vars:
+            d.appendVar("TEMPLATE_VARS", ' ' + image_tmpl_vars)
+
         # add conversions
         conversion_depends = set()
         rm_images = set()
-- 
2.17.1


  reply	other threads:[~2022-05-04  5:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-04  5:41 [PATCH v3 0/7] Rebuild phyBOARD-Mira UBI image generation Anton Mikanovich
2022-05-04  5:41 ` Anton Mikanovich [this message]
2022-05-04  5:41 ` [PATCH v3 2/7] ubi: Move imager-related defines to image bbclasses Anton Mikanovich
2022-05-04  5:41 ` [PATCH v3 3/7] ubi: Remove isar-image-ubi Anton Mikanovich
2022-05-04  5:41 ` [PATCH v3 4/7] ubi: Split UBI configs for phyboard-mira and imx6-sabrelite Anton Mikanovich
2022-05-04  5:41 ` [PATCH v3 5/7] conf: Remove machine-specific defines from multiconfig Anton Mikanovich
2022-05-04  5:41 ` [PATCH v3 6/7] meta-isar: Add linux-phy kernel Anton Mikanovich
2022-05-04  5:41 ` [PATCH v3 7/7] meta: Add barebox bootloader support Anton Mikanovich
2022-05-16  9:31 ` [PATCH v3 0/7] Rebuild phyBOARD-Mira UBI image generation Anton Mikanovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220504054129.15218-2-amikan@ilbers.de \
    --to=amikan@ilbers.de \
    --cc=adriaan.schmidt@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox