All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Stabellini <sstabellini@kernel.org>
To: "Smith, Jackson" <rsmith@RiversideResearch.org>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
	 Stefano Stabellini <sstabellini@kernel.org>
Subject: Re: [IMAGEBUILDER PATCH] uboot-script-gen: allow fit generation with no dom0 kernel
Date: Tue, 26 Jul 2022 17:17:09 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.22.394.2207261713020.4648@ubuntu-linux-20-04-desktop> (raw)
In-Reply-To: <BN0P110MB16423592266085271C069BA7CF959@BN0P110MB1642.NAMP110.PROD.OUTLOOK.COM>

On Mon, 25 Jul 2022, Smith, Jackson wrote:
> Hi Stefano,
> 
> My colleague Jason Lei and I would like to submit a patch to imagebuilder.
> 
> It seems that generating a .fit with a true dom0less configuration fails because an extraneous comma is included in the its file.
> 
> We believe this change resolves the issue.

Hi Jackson, thanks for your contribution!

Yes, I see the problem: the code assumes there is a dom0 kernel. If
there is no dom0 kernel then load_files will be wrongly starting with a
","

I would be happy to commit your patch. I assume I can add your
Signed-off-by to it, right?

Signed-off-by: Jackson Smith <rsmith@RiversideResearch.org>

Signed-off-by is the "Developer Certificate of Origin" which means:
https://developercertificate.org/



> 
> Remove extraneous comma in generated its file when no DOM0_KERNEL is specified.
> 
> diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen
> index 8f08cd6..6f94fce 100755
> --- a/scripts/uboot-script-gen
> +++ b/scripts/uboot-script-gen
> @@ -676,7 +676,12 @@ create_its_file_xen()
>              i=$(( $i + 1 ))
>              continue
>          fi
> -        load_files+=", \"domU${i}_kernel\""
> +       if test -z "$load_files"
> +       then
> +           load_files+="\"domU${i}_kernel\""
> +       else
> +           load_files+=", \"domU${i}_kernel\""
> +       fi
>          cat >> "$its_file" <<- EOF
>          domU${i}_kernel {
>              description = "domU${i} kernel binary";
> 
> 


  reply	other threads:[~2022-07-27  0:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-25 17:44 [IMAGEBUILDER PATCH] uboot-script-gen: allow fit generation with no dom0 kernel Smith, Jackson
2022-07-27  0:17 ` Stefano Stabellini [this message]
2022-07-27 14:54   ` Smith, Jackson
2022-07-27 15:21     ` Jason Shuhua Lei
2022-07-27 20:01       ` Stefano Stabellini

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=alpine.DEB.2.22.394.2207261713020.4648@ubuntu-linux-20-04-desktop \
    --to=sstabellini@kernel.org \
    --cc=rsmith@RiversideResearch.org \
    --cc=xen-devel@lists.xenproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.