public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: Stephen Ecker <stephenecker240@gmail.com>,
	isar-users <isar-users@googlegroups.com>
Subject: Re: Overrides for different targets?
Date: Fri, 20 Dec 2024 09:35:51 +0200	[thread overview]
Message-ID: <fb8b8226-41b5-48a9-bdb8-0a72767c7a90@ilbers.de> (raw)
In-Reply-To: <787c5ef4-b99c-4b62-9ff8-8016982ebd14n@googlegroups.com>

20/12/2024 04:39, Stephen Ecker wrote:
> Is there a way to set overrides only for specific targets?  ...let me 
> explain my problem:
>
> I have a wks file I use for the base image, and a separate one for 
> installer.  In my installer recipe, I have
> WKS_FILE = <my installer file>
>
> but in another kas file loaded for a given option, I am defining an 
> override
>
> OVERRIDES .= ":my_override"
>
> and
>
> WKS_FILE:my_override = "different wks file"
>
> unfortunately this means that it uses my overridden wks file when this 
> option is used... In my opinion, the right solution would be to use a 
> different variable for the installer wks file, unless there's a 
> solution here I'm not seeing.
>
>
> Thanks,
>     Stephen

Hello Stephen,

To have "different wks file" value used only for one target you need to set
OVERRIDES .= ":my_override" only for this target (in multiconfig config 
file),
while WKS_FILE and WKS_FILE:my_override values can be declared globally 
in yaml
(which makes it be copied to local.conf).

Note that you already have ${MACHINE} and ${DISTRO} in default overrides, so
it can be quite enough for target specific settings. See example of 
usage in:
meta-test/recipes-core/images/isar-image-ci.bb

But if you only need to set specific WKS_FILE value for installer itself
(not a target), you should use INSTALLER_WKS_FILE variable.

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/fb8b8226-41b5-48a9-bdb8-0a72767c7a90%40ilbers.de.

      reply	other threads:[~2024-12-20  7:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-20  2:39 Stephen Ecker
2024-12-20  7:35 ` Anton Mikanovich [this message]

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=fb8b8226-41b5-48a9-bdb8-0a72767c7a90@ilbers.de \
    --to=amikan@ilbers.de \
    --cc=isar-users@googlegroups.com \
    --cc=stephenecker240@gmail.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