From: Tom Rini <trini@konsulko.com>
To: Sughosh Ganu <sughosh.ganu@linaro.org>
Cc: Simon Glass <sjg@chromium.org>,
u-boot@lists.denx.de, Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Takahiro Akashi <takahiro.akashi@linaro.org>
Subject: Re: [PATCH 2/5] scripts/Makefile.lib: Embed capsule public key in platform's dtb
Date: Wed, 16 Aug 2023 17:26:50 -0400 [thread overview]
Message-ID: <20230816212650.GA1515023@bill-the-cat> (raw)
In-Reply-To: <CADg8p96k4S67og6REPt5vF9TruYP+hK+1HcDU_XiauvsF4wXjg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2705 bytes --]
On Wed, Aug 16, 2023 at 09:58:42AM +0530, Sughosh Ganu wrote:
> hi Simon,
>
> On Wed, 16 Aug 2023 at 00:09, Simon Glass <sjg@chromium.org> wrote:
> >
> > Hi Sughosh,
> >
> > On Tue, 15 Aug 2023 at 10:26, Sughosh Ganu <sughosh.ganu@linaro.org> wrote:
> > >
> > > The EFI capsule authentication logic in u-boot expects the public key
> > > in the form of an EFI Signature List(ESL) to be provided as part of
> > > the platform's dtb. Currently, the embedding of the ESL file into the
> > > dtb needs to be done manually.
> > >
> > > Add a target for generating a dtsi file which contains the signature
> > > node with the ESL file included as a property under the signature
> > > node. Include the dtsi file in the dtb. This brings the embedding of
> > > the ESL in the dtb into the U-Boot build flow.
> > >
> > > The path to the ESL file is specified through the
> > > CONFIG_EFI_CAPSULE_ESL_FILE symbol.
> > >
> > > Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> > > ---
> > > Changes since RFC series:
> > > * Remove the default value of the config symbol.
> > > * s/include_files/dtsi_include_list
> > > * Add all the dtsi files being included as dependency for the dtb
> > > target.
> > >
> > > lib/efi_loader/Kconfig | 8 ++++++++
> > > lib/efi_loader/capsule_esl.dtsi.in | 11 +++++++++++
> > > scripts/Makefile.lib | 18 +++++++++++++++++-
> > > 3 files changed, 36 insertions(+), 1 deletion(-)
> > > create mode 100644 lib/efi_loader/capsule_esl.dtsi.in
> > >
> > > diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
> > > index 9989e3f384..d20aaab6db 100644
> > > --- a/lib/efi_loader/Kconfig
> > > +++ b/lib/efi_loader/Kconfig
> > > @@ -272,6 +272,14 @@ config EFI_CAPSULE_MAX
> > > Select the max capsule index value used for capsule report
> > > variables. This value is used to create CapsuleMax variable.
> > >
> > > +config EFI_CAPSULE_ESL_FILE
> > > + string "Path to the EFI Signature List File"
> >
> > Do we need this, or could we name it as we do with the .env file? It
> > seems confusing to have to set this for each board - it might be
> > better to have it in a defined location.
>
> The reason I put this is because I thought this gave the user the
> flexibility to provide the location and name of the ESL. But I suppose
> that the board directory would be a good location to expect this file.
> Then this file can have a name like capsule_pub_key,esl. Tom, what are
> your thoughts on this?
I feel like an automatic name we can guess isn't likely how this will be
used in the real world, so we should leave this as configurable.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2023-08-16 21:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-15 16:26 [PATCH 0/5] capsule: Embed the public key ESL as part of build Sughosh Ganu
2023-08-15 16:26 ` [PATCH 1/5] scripts/Makefile.lib: Collate all dtsi files for inclusion Sughosh Ganu
2023-08-15 20:23 ` Tom Rini
2023-08-15 16:26 ` [PATCH 2/5] scripts/Makefile.lib: Embed capsule public key in platform's dtb Sughosh Ganu
2023-08-15 18:39 ` Simon Glass
2023-08-16 4:28 ` Sughosh Ganu
2023-08-16 21:26 ` Tom Rini [this message]
2023-08-17 13:41 ` Simon Glass
2023-08-17 15:10 ` Tom Rini
2023-08-18 3:10 ` Simon Glass
2023-08-15 20:24 ` Tom Rini
2023-08-16 4:29 ` Sughosh Ganu
2023-08-15 16:26 ` [PATCH 3/5] sandbox: capsule: Add path to the public key ESL file Sughosh Ganu
2023-08-15 16:26 ` [PATCH 4/5] doc: capsule: Document the new mechanism to embed ESL file into dtb Sughosh Ganu
2023-08-15 16:26 ` [PATCH 5/5] test: capsule: Remove logic to add public key ESL Sughosh Ganu
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=20230816212650.GA1515023@bill-the-cat \
--to=trini@konsulko.com \
--cc=ilias.apalodimas@linaro.org \
--cc=sjg@chromium.org \
--cc=sughosh.ganu@linaro.org \
--cc=takahiro.akashi@linaro.org \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.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