diff mbox series

[v6,11/16] Makefile: provide sah-key to binman

Message ID 20220225145754.30217-12-philippe.reynes@softathome.com
State Changes Requested
Delegated to: Simon Glass
Headers show
Series image: add a stage pre-load | expand

Commit Message

Philippe REYNES Feb. 25, 2022, 2:57 p.m. UTC
Set the variable key-path with the shell variable
KEY_PATH that contain the keys path (used for signature).
This variable key-path is provided to binman.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Glass March 3, 2022, 3:37 a.m. UTC | #1
On Fri, 25 Feb 2022 at 07:58, Philippe Reynes
<philippe.reynes@softathome.com> wrote:
>
> Set the variable key-path with the shell variable
> KEY_PATH that contain the keys path (used for signature).
> This variable key-path is provided to binman.
>
> Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
> ---
>  Makefile | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

>
> diff --git a/Makefile b/Makefile
> index 697cc51d67..c6da6cdba0 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1335,6 +1335,7 @@ cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \
>                 -a tpl-bss-pad=$(if $(CONFIG_TPL_SEPARATE_BSS),,1) \
>                 -a spl-dtb=$(CONFIG_SPL_OF_REAL) \
>                 -a tpl-dtb=$(CONFIG_TPL_OF_REAL) \
> +               -a key-path=${KEY_PATH} \

I wonder if preload-key might be better, since 'key' is very generic.

>                 $(BINMAN_$(@F))
>
>  OBJCOPYFLAGS_u-boot.ldr.hex := -I binary -O ihex
> --
> 2.17.1
>

Regards,
Simon
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 697cc51d67..c6da6cdba0 100644
--- a/Makefile
+++ b/Makefile
@@ -1335,6 +1335,7 @@  cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \
 		-a tpl-bss-pad=$(if $(CONFIG_TPL_SEPARATE_BSS),,1) \
 		-a spl-dtb=$(CONFIG_SPL_OF_REAL) \
 		-a tpl-dtb=$(CONFIG_TPL_OF_REAL) \
+		-a key-path=${KEY_PATH} \
 		$(BINMAN_$(@F))
 
 OBJCOPYFLAGS_u-boot.ldr.hex := -I binary -O ihex