From db69d118294f08aae86378c98aa082ac73e15b73 Mon Sep 17 00:00:00 2001 From: Manish V Badarkhe Date: Mon, 3 Feb 2025 09:27:28 +0000 Subject: [PATCH] fix(arm): create build directory before key generation Arm ROTPK generation may start before the build directory is created, causing errors like: 00:45:53.235 Can't open "/home/buildslave/workspace/tf-a-coverity/ trusted-firmware-a/build/rd1ae/debug/arm_rotpk.bin" for writing, No such file or directory This patch ensures the build directory is created beforehand to prevent such issues. Signed-off-by: Manish V Badarkhe Change-Id: I73f7d5af00efc738e95ea79c5cacecdb6a2d20c6 --- plat/arm/board/common/board_common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/arm/board/common/board_common.mk b/plat/arm/board/common/board_common.mk index 124a44b2d..889b8b353 100644 --- a/plat/arm/board/common/board_common.mk +++ b/plat/arm/board/common/board_common.mk @@ -67,7 +67,7 @@ ifdef ROT_KEY PK_PREREQUISITES = $(ROT_KEY) FORCE endif -$(ARM_ROTPK) : $(PK_PREREQUISITES) +$(ARM_ROTPK) : $(PK_PREREQUISITES) | $$(@D)/ ifndef ROT_KEY $(error Cannot generate public key: no ROT_KEY defined) endif