public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 4/6] binman: add optional support for U-Boot image signing
Date: Tue, 28 Nov 2017 14:29:03 +0100	[thread overview]
Message-ID: <20171128142903.698a1840@crub> (raw)
In-Reply-To: <CAPnjgZ37MBBuCBNSa1OdnRuVdPQAkSxLyjAx04E7TH-uhUMegQ@mail.gmail.com>

Hi Simon,

On Mon, 20 Nov 2017 08:40:29 -0700
Simon Glass sjg at chromium.org wrote:
...
> >  tools/binman/binman.py         |  3 +++
> >  tools/binman/cmdline.py        |  2 ++
> >  tools/binman/control.py        |  1 +
> >  tools/binman/image.py          | 23 +++++++++++++++++++++++
> >  tools/binman/signing/signer.py | 22 ++++++++++++++++++++++
> >  5 files changed, 51 insertions(+)
> >  create mode 100644 tools/binman/signing/signer.py  
> 
> This looks reasonable to me, but can you please add a test and also
> docs to the binman README for this new feature?
> 
> You might want to rebase on top of my recent fixes because there are
> some test problems at present.
> 
> dm/binman-working
> 
> I'll hopefully pull these in this week.

OK, thanks! Yes, I'll add some docs to README and try to come up
with a test.

...
> > diff --git a/tools/binman/control.py b/tools/binman/control.py
> > index ffa2bbd80f..2ad1ebf3fb 100644
> > --- a/tools/binman/control.py
> > +++ b/tools/binman/control.py
> > @@ -113,6 +113,7 @@ def Binman(options, args):
> >                  image.ProcessEntryContents()
> >                  image.WriteSymbols()
> >                  image.BuildImage()
> > +                image.SignImage(options)  
> 
> Can you put the info somewhere, or pass the info you need out of
> options? I am not keen on the options object bleeding into the image
> code.

Yes, will do in v4 patch. I can just pass options.keydir here and use
indir/outdir from tools.

...
> > +class ImageSigner(object):
> > +    def __init__(self, sign_func):
> > +        self.sign = sign_func
> > +
> > +def GetImageSigner(soc):  
> 
> Function comment.

OK, added in v4.

Thanks,
Anatolij

      reply	other threads:[~2017-11-28 13:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-17  1:15 [U-Boot] [PATCH v3 4/6] binman: add optional support for U-Boot image signing Anatolij Gustschin
2017-11-20 15:40 ` Simon Glass
2017-11-28 13:29   ` Anatolij Gustschin [this message]

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=20171128142903.698a1840@crub \
    --to=agust@denx.de \
    --cc=u-boot@lists.denx.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