All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heinrich Schuchardt <xypron.glpk@gmx.de>
To: u-boot@lists.denx.de
Subject: [PATCH 5/5] Makefile: Add provision for embedding public key in platform's dtb
Date: Thu, 8 Apr 2021 21:58:17 +0200	[thread overview]
Message-ID: <5a137b94-d797-e245-6f70-9eaaf474df72@gmx.de> (raw)
In-Reply-To: <20210407115335.8615-6-sughosh.ganu@linaro.org>

On 4/7/21 1:53 PM, Sughosh Ganu wrote:
> Add provision for embedding the public key used for capsule
> authentication in the platform's dtb. This is done by invoking the
> mkeficapsule utility which puts the public key in the efi signature
> list(esl) format into the dtb.
>
> Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> ---
>   Makefile | 10 ++++++++++
>   1 file changed, 10 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index 193aa4d1c9..0d50c6a805 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1010,6 +1010,10 @@ cmd_pad_cat = $(cmd_objcopy) && $(append) || { rm -f $@; false; }
>   quiet_cmd_lzma = LZMA    $@
>   cmd_lzma = lzma -c -z -k -9 $< > $@
>
> +quiet_cmd_mkeficapsule = MKEFICAPSULE     $@
> +cmd_mkeficapsule = $(objtree)/tools/mkeficapsule -K $(CONFIG_EFI_PKEY_FILE) \
> +	-D $@
> +

tools/mkeficapsule --help does neither show a parameter -K nor a
parameter -D. Please, update tools/mkeficapsule.c before using these. A
man-page for mkeficapsule in doc/usage/ would be helpful.

$ tools/mkeficapsule --help
Usage: mkeficapsule [options] <output file>
Options:
         --fit <fit image>       new FIT image file
         --raw <raw image>       new raw image file
         --index <index>         update image index
         --instance <instance>   update hardware instance
         --public-key <key file> public key esl file
         --dtb <dtb file>        dtb file
         --overlay               the dtb file is an overlay
         --help                  print a help message

Best regards

Heinrich

>   cfg: u-boot.cfg
>
>   quiet_cmd_cfgcheck = CFGCHK  $2
> @@ -1104,8 +1108,14 @@ endif
>   PHONY += dtbs
>   dtbs: dts/dt.dtb
>   	@:
> +ifeq ($(CONFIG_EFI_CAPSULE_AUTHENTICATE)$(CONFIG_EFI_PKEY_DTB_EMBED),yy)
> +dts/dt.dtb: u-boot tools
> +	$(Q)$(MAKE) $(build)=dts dtbs
> +	$(call cmd,mkeficapsule)
> +else
>   dts/dt.dtb: u-boot
>   	$(Q)$(MAKE) $(build)=dts dtbs
> +endif
>
>   quiet_cmd_copy = COPY    $@
>         cmd_copy = cp $< $@
>

  reply	other threads:[~2021-04-08 19:58 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-07 11:53 [PATCH 0/5] Add support for embedding public key in platform's dtb Sughosh Ganu
2021-04-07 11:53 ` [PATCH 1/5] efi_loader: Kconfig: Select IMAGE_SIGN_INFO when capsule authentication is enabled Sughosh Ganu
2021-04-08  8:27   ` Heinrich Schuchardt
2021-04-07 11:53 ` [PATCH 2/5] efi_loader: Kconfig: Add symbols for embedding the public key into the platform's dtb Sughosh Ganu
2021-04-08 20:13   ` Heinrich Schuchardt
2021-04-07 11:53 ` [PATCH 3/5] efi_capsule: Add a weak function to check whether capsule authentication is enabled Sughosh Ganu
2021-04-08 19:47   ` Heinrich Schuchardt
2021-04-09  6:25     ` Sughosh Ganu
2021-04-07 11:53 ` [PATCH 4/5] efi_capsule: Add a weak function to get the public key needed for capsule authentication Sughosh Ganu
2021-04-08 19:48   ` Heinrich Schuchardt
2021-04-09  6:25     ` Sughosh Ganu
2021-04-07 11:53 ` [PATCH 5/5] Makefile: Add provision for embedding public key in platform's dtb Sughosh Ganu
2021-04-08 19:58   ` Heinrich Schuchardt [this message]
2021-04-28  5:43     ` AKASHI Takahiro
2021-04-28  6:31       ` Masami Hiramatsu
2021-05-07  8:15         ` AKASHI Takahiro
2021-05-07  9:57           ` Masami Hiramatsu
2021-05-08  3:32             ` Masami Hiramatsu
2021-04-07 16:14 ` [PATCH 0/5] Add support " Simon Glass
2021-04-08  6:53   ` Sughosh Ganu
2021-04-08  8:41     ` Heinrich Schuchardt
2021-04-08 10:10       ` Sughosh Ganu
2021-04-08 11:21         ` Heinrich Schuchardt
2021-04-08 11:48           ` Sughosh Ganu
2021-04-08 23:55     ` Simon Glass
2021-04-09 11:27       ` Sughosh Ganu
2021-04-09 20:58         ` Simon Glass

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=5a137b94-d797-e245-6f70-9eaaf474df72@gmx.de \
    --to=xypron.glpk@gmx.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 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.