All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Boccassi <luca.boccassi@gmail.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>,
	 openembedded-core@lists.openembedded.org
Cc: Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH] u-boot: install dumpimage and fit_check_sign in u-boot-tools
Date: Thu, 21 Mar 2019 12:53:06 +0000	[thread overview]
Message-ID: <2f676258e8152eef29f41ef1fa94acb7677ebf36.camel@gmail.com> (raw)
In-Reply-To: <6b2ad2e463f5ba0f3513e6d9755aa755828686e4.camel@linuxfoundation.org>

On Thu, 2019-03-21 at 11:44 +0000, Richard Purdie wrote:
> On Tue, 2019-03-19 at 18:15 +0000, luca.boccassi@gmail.com wrote:
> > From: Luca Boccassi <luca.boccassi@microsoft.com>
> > 
> > Dumpimage and fit_check_sign can be used to extract kernel and
> > ramdisk from
> > a FIT file, verify them and kexec for a faster reboot.
> > 
> > Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
> > ---
> >  meta/recipes-bsp/u-boot/u-boot-tools_2019.01.bb | 8 ++++++++
> >  1 file changed, 8 insertions(+)
> > 
> > diff --git a/meta/recipes-bsp/u-boot/u-boot-tools_2019.01.bb
> > b/meta/recipes-bsp/u-boot/u-boot-tools_2019.01.bb
> > index ff26e32482..c487849bb2 100644
> > --- a/meta/recipes-bsp/u-boot/u-boot-tools_2019.01.bb
> > +++ b/meta/recipes-bsp/u-boot/u-boot-tools_2019.01.bb
> > @@ -45,6 +45,14 @@ do_install () {
> >  	# mkenvimage
> >  	install -m 0755 tools/mkenvimage ${D}${bindir}/uboot-mkenvimage
> >  	ln -sf uboot-mkenvimage ${D}${bindir}/mkenvimage
> > +
> > +	# dumpimage
> > +	install -m 0755 tools/dumpimage ${D}${bindir}/uboot-dumpimage
> > +	ln -sf uboot-dumpimage ${D}${bindir}/dumpimage
> > +
> > +	# fit_check_sign
> > +	install -m 0755 tools/fit_check_sign ${D}${bindir}/uboot-
> > fit_check_sign
> > +	ln -sf uboot-fit_check_sign ${D}${bindir}/fit_check_sign
> >  }
> >  
> >  ALLOW_EMPTY_${PN} = "1"
> 
> Fails on musl:
> https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/420
> https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/421
> no-x11:
> https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/419
> qemux86-world:
> https://autobuilder.yoctoproject.org/typhoon/#/builders/52/builds/412
> 
> so basically it looks like any world build fails with this.
> 
> Cheers,
> 
> Richard

Hi,

Sorry about that, this recipe has changed a bit since sumo - it seems
the files need to be also listed individually in FILES_${PN}:

ERROR: u-boot-tools-1_2019.01-r0 do_package: QA Issue: u-boot-tools:
Files/directories were installed but not shipped in any package:
  /usr/bin/uboot-dumpimage
  /usr/bin/fit_check_sign
  /usr/bin/dumpimage
  /usr/bin/uboot-fit_check_sign
Please set FILES such that these items are packaged. Alternatively if
they are unneeded, avoid installing them or delete them within
do_install.

eg:

-FILES_${PN}-mkimage = "${bindir}/uboot-mkimage ${bindir}/mkimage"
+FILES_${PN}-mkimage = "${bindir}/uboot-mkimage ${bindir}/mkimage {bindir}/uboot-dumpimage ${bindir}/dumpimage {bindir}/uboot-fit_check_sign ${bindir}/fit_check_sign"

Is this the right solution? Or should it be a new package?

-- 
Kind regards,
Luca Boccassi



  reply	other threads:[~2019-03-21 12:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-19 18:15 [PATCH] u-boot: install dumpimage and fit_check_sign in u-boot-tools luca.boccassi
2019-03-20 13:46 ` Tom Rini
2019-03-21 11:44 ` Richard Purdie
2019-03-21 12:53   ` Luca Boccassi [this message]
2019-03-21 18:35 ` [PATCH v2] " luca.boccassi
2019-03-21 19:30   ` Alex Kiernan
2019-03-21 19:49     ` Luca Boccassi
2019-03-21 19:49 ` [PATCH v3] " luca.boccassi

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=2f676258e8152eef29f41ef1fa94acb7677ebf36.camel@gmail.com \
    --to=luca.boccassi@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    --cc=trini@konsulko.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 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.