[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: "Smith, Jackson" <rsmith@xxxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Jason Shuhua Lei <lei56@xxxxxxxxxx>
  • Date: Wed, 27 Jul 2022 15:21:39 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=purdue.edu; dmarc=pass action=none header.from=purdue.edu; dkim=pass header.d=purdue.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=lQSEppn7nPi0ogDwjER+B1GKslGgEmav8cGFc6aJF4k=; b=dSCPtpT2UqA716AyWA2J2oVNx+t/IzW/zNMhP2kUB9FIA8S2SGlgdFUj30rwqcA/X1Avu6whxdlVOVPrY5yR6VlZ73MrIqF8t+MQ4243DNt4B3321RO+hnKJ+0P9UZ4SZHRvPcx8k6L4nerD+CvFtinB+Q6nqJWsV3TyXbfXCRxboBYLGmUUn0AJP+SSrL59bhWbPV+GcXc4VP+Msd3+zBzHCSHVCi14vJkhtaW/H/UVwd3wwW0n1trn+QyNEucsTJszXOcRKDd16f4eSuXdgbwT2d5yXcgo28TQ+3SqvtwdyZ2JxGSioFrpvwObWOwnDcg7FsmslClY5YJYuNljYQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iImqCGDk7AoSLWQnXV9FzrfCCK7Rxxwd/8mXmjf0C3K92lBoUG6rFoa7IFWzp+XnrFAcGYR9/u1X3EGJS0wLRKBEthAk6fd6CWPAJSbdy+jLHcLWlB/KX3mZ6JnrdahTTzatAimSKDGvQ946ckwaE74Z4fedi1b0ZlRBrTRnkVvO5IBGtGzTWvI5P/q+7xnv/dxCDAcSJ3fMr/0S0h9P8LfsM3qKCpmdxc7lYVSv93XcPcHWRCzXYmb5j/+mMpiICIhrf/CHhKEZXpHjZOwTpaKyq1El7k2MDbTGrEduD5R38G3Udo1hvMjQaawPY8ePxlGF4i1Cm7zhLbgc8UuuJg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=purdue.edu;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 28 Jul 2022 04:07:59 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AdigP3XkakTWEwukTeurpU94cGpQzABDr/uAAB0Pf2AAAb+csA==
  • Thread-topic: [IMAGEBUILDER PATCH] uboot-script-gen: allow fit generation with no dom0 kernel

Hello,
> -----Original Message-----
> From: Smith, Jackson <rsmith@xxxxxxxxxxxxxxxxxxxxx>
> 
> > -----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.
> 
Yes, I would like to be signed off on the patch as well using this email.

Thanks,
Jason Lei
> >
> > 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®.