public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: Uladzimir Bely <ubely@ilbers.de>
Cc: isar-users@googlegroups.com
Subject: Re: [PATCH v2 2/5] wic-img: Set weak default value for WKS_FILE
Date: Tue, 5 Oct 2021 10:49:33 +0200	[thread overview]
Message-ID: <20211005104933.7292a750@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <20210928071352.31382-3-ubely@ilbers.de>

Am Tue, 28 Sep 2021 09:13:49 +0200
schrieb Uladzimir Bely <ubely@ilbers.de>:

> In case user lists "wic-img" in IMAGE_TYPE variable, bitbake fails
> at early parsing stages because WKS_FILE is not defined at this
> moment.
> 
> Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> ---
>  meta/classes/wic-img.bbclass | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta/classes/wic-img.bbclass
> b/meta/classes/wic-img.bbclass index d849ad9..50e9819 100644
> --- a/meta/classes/wic-img.bbclass
> +++ b/meta/classes/wic-img.bbclass
> @@ -6,6 +6,9 @@
>  
>  WKS_FILE_CHECKSUM = "${@'${WKS_FULL_PATH}:%s' %
> os.path.exists('${WKS_FULL_PATH}')}" 
> +# In case user has chosen wic-img in local.conf without mandatory
> WKS_FILE, define default +WKS_FILE ??= "sdimage-efi"
> +

i guess the comment is not needed, should be clear to anyone that this
is just a weak default

With this you can drop WKS_FILE from some machine confs.

Henning

>  do_copy_wks_template[file-checksums] += "${WKS_FILE_CHECKSUM}"
>  do_copy_wks_template () {
>      cp -f '${WKS_TEMPLATE_PATH}' '${WORKDIR}/${WKS_TEMPLATE_FILE}'


  reply	other threads:[~2021-10-05  8:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-28  7:13 [PATCH v2 0/5] Support multiple image types in one build Uladzimir Bely
2021-09-28  7:13 ` [PATCH v2 1/5] image: Make WORKDIR and STAMPs unrelated to IMAGE_TYPE Uladzimir Bely
2021-09-28  7:13 ` [PATCH v2 2/5] wic-img: Set weak default value for WKS_FILE Uladzimir Bely
2021-10-05  8:49   ` Henning Schild [this message]
2021-09-28  7:13 ` [PATCH v2 3/5] start_vm: Use the first image type to start VM Uladzimir Bely
2021-10-05  8:52   ` Henning Schild
2021-09-28  7:13 ` [PATCH v2 4/5] meta-isar: Rework mc:qemuamd64-buster configs Uladzimir Bely
2021-10-05  8:54   ` Henning Schild
2021-09-28  7:13 ` [PATCH v2 5/5] api: Rename IMAGE_TYPE to IMAGE_FSTYPES Uladzimir Bely
2021-10-05  8:56   ` Henning Schild
2021-10-05  9:08 ` [PATCH v2 0/5] Support multiple image types in one build Henning Schild
2021-11-18 13:41   ` Baurzhan Ismagulov

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=20211005104933.7292a750@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=ubely@ilbers.de \
    /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