mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] ARM: i.MX: configurable Super Root Key index
Date: Fri, 8 May 2020 06:52:35 +0200	[thread overview]
Message-ID: <20200508045235.GH5877@pengutronix.de> (raw)
In-Reply-To: <20200505125836.18081-1-r.czerwinski@pengutronix.de>

On Tue, May 05, 2020 at 02:58:36PM +0200, Rouven Czerwinski wrote:
> Allow the configuration of the Super Root Key Index, to let the user
> select another key if a previous key has been revoked.
> 
> Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
> ---
>  arch/arm/mach-imx/Kconfig                          | 10 ++++++++++
>  arch/arm/mach-imx/include/mach/habv4-imx6-gencsf.h |  2 +-
>  arch/arm/mach-imx/include/mach/habv4-imx8-gencsf.h |  2 +-
>  3 files changed, 12 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index 072c659008..6dd5cb2aca 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -845,6 +845,16 @@ config HAB_CERTS_ENV
>  	  CONFIG_HABV4_CSF_CRT_PEM
>  	  CONFIG_HABV4_IMG_CRT_PEM
>  
> +config HABV4_SRK_INDEX
> +	depends on HABV4
> +	int "SRK index"
> +	default 0
> +	help
> +	  Select the Super Root Key used in the Command Sequence File to sign
> +	  the CSF binary. This should only be changed if a previous key was
> +	  revoked and another key needs to be used. For HABV4 the Index is in
> +	  the range from 0 to 3.

Applied this time, but I hope that we won't get many more of these
policy encoding defines in habv4-imx6-gencsf.h.

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2020-05-08  4:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-05 12:58 Rouven Czerwinski
2020-05-08  4:52 ` Sascha Hauer [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=20200508045235.GH5877@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=r.czerwinski@pengutronix.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