From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH v2 1/7] image: Introduce template support for imagetypes
Date: Thu, 14 Apr 2022 21:00:55 +0300 [thread overview]
Message-ID: <20220414180101.3373-2-amikan@ilbers.de> (raw)
In-Reply-To: <20220414180101.3373-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 dfe7bfa..e3a64d1 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -222,6 +222,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
next prev parent reply other threads:[~2022-04-14 18:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-14 18:00 [PATCH v2 0/7] Rebuild phyBOARD-Mira UBI image generation Anton Mikanovich
2022-04-14 18:00 ` Anton Mikanovich [this message]
2022-04-14 18:00 ` [PATCH v2 2/7] ubi: Move imager-related defines to image bbclasses Anton Mikanovich
2022-04-14 18:00 ` [PATCH v2 3/7] ubi: Remove isar-image-ubi Anton Mikanovich
2022-04-14 18:00 ` [PATCH v2 4/7] ubi: Split UBI configs for phyboard-mira and imx6-sabrelite Anton Mikanovich
2022-04-14 18:00 ` [PATCH v2 5/7] conf: Remove machine-specific defines from multiconfig Anton Mikanovich
2022-04-14 18:01 ` [PATCH v2 6/7] meta-isar: Add linux-phy kernel Anton Mikanovich
2022-04-14 18:01 ` [PATCH v2 7/7] meta: Add barebox bootloader support 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=20220414180101.3373-2-amikan@ilbers.de \
--to=amikan@ilbers.de \
--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