[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [IMAGEBUILDER PATCH] uboot-script-gen: allow fit generation with no dom0 kernel


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: "Smith, Jackson" <rsmith@xxxxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 27 Jul 2022 14:54:13 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=riversideresearch.org; dmarc=pass action=none header.from=riversideresearch.org; dkim=pass header.d=riversideresearch.org; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector5401; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Mws4yGJ0axrAhY3l1tCcfs8haik85+aRQB1niqx8sQw=; b=kM3Juu10S0OokPOigP39O3zLtOB0QswCTv866WjtHid8NEBYjlUhIZ8TUEwPawIp83RJUnHpFLEpuzhLycddTwThvh6v0jYFChjkEfyXr48HNjgmGqK6IDgPVoMMBS5AiS5lcTnZuohAl2GBTAP23a3XI/WE8sKlbb+nBIhV0BrHtS9rMTqXkvKbaYxmBCQBxGu1d0tJD3K/tbVqdGQKM3+O8gMakNDpE6Zr+9mU5miwmFVuTpdetjBQi/pckPaxZqaiLEdF97hfdb+RWI9oZ7sh9QIOIUX51WkoLobyT5KXPlLa/97BiuN6aYV8XS6kaGr+KCyDBaKIXvFPhTRgzw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector5401; d=microsoft.com; cv=none; b=AacsjLrjIhxanx5m3a2JTlbPRI9Ux36awgIooz3vV54bCFEwvW3nHZXCFhb3QjMq/xEbJkkokSXx5jcQjaJNPlsWf1GbGgfy0VL34sDJ/RzgG0Vo1Vt5rfGwRDE0H90ep0nLIoHYSfeLkxVusvWqCITVe3YOIoXDTcTpU0fROC2A+KWLuUftGd6KJ9YpLpGYaC6du8xTaGDLI8Qg+66nacMEyiFPSD77kNpQjNXmDCFkms9XCwIDSHLIboW+vB42W/UJ6JiN8ynaq0AJwpNGerpBBhKfPomC4PAT9F1tCYqRlBSiCkT8pIMy8U/8+g5qbqv+nG44BYFfH1rQUxqQdA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=RiversideResearch.org;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "lei56@xxxxxxxxxx" <lei56@xxxxxxxxxx>
  • Delivery-date: Wed, 27 Jul 2022 14:54:25 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AdigP3XkakTWEwukTeurpU94cGpQzABDr/uAAB0Pf2A=
  • Thread-topic: [IMAGEBUILDER PATCH] uboot-script-gen: allow fit generation with no dom0 kernel

> -----Original Message-----
> From: Stefano Stabellini <sstabellini@xxxxxxxxxx>
>
> 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?

Yes, that is fine. Could you also add Jason, as he worked this out initially?
I've added him to the message so he can give his ok.

>
> Signed-off-by: Jackson Smith <rsmith@xxxxxxxxxxxxxxxxxxxxx>
>
> 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";
> >
> >



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.