From 379d9034ebd13d3395ae55d63a4fbf548fc7ebd6 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Sun, 12 Feb 2023 21:29:39 +0530 Subject: [PATCH] partition_table: fix make build for new "--secure [v1/v2]" argument --- components/partition_table/Makefile.projbuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/partition_table/Makefile.projbuild b/components/partition_table/Makefile.projbuild index 7b85adaa0f..3241052f53 100644 --- a/components/partition_table/Makefile.projbuild +++ b/components/partition_table/Makefile.projbuild @@ -21,7 +21,11 @@ endif PARTITION_SECURE_OPT := ifdef CONFIG_SECURE_BOOT ifndef CONFIG_SECURE_BOOT_ALLOW_SHORT_APP_PARTITION -PARTITION_SECURE_OPT += --secure +ifdef CONFIG_SECURE_BOOT_V2_ENABLED +PARTITION_SECURE_OPT += --secure v2 +else +PARTITION_SECURE_OPT += --secure v1 +endif endif endif