From 8609c9b23ba94dbd152e1a04568daf69b353930d Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Thu, 9 Jul 2026 16:43:55 +0200 Subject: [PATCH] ci: fix WOLFBOOT_ROOT resolution in dual-bank fallback test The top-level Makefile defaults WOLFBOOT_ROOT to $(PWD), which is the environment value of the invoking step: under the workflow's working-directory (test-app/emu-test-apps) the keytools paths resolved under the wrong root and keygen was never found, so src/keystore.c was missing and the wolfboot build failed. Export the computed absolute WOLFBOOT_ROOT so the make invocations resolve tool paths correctly wherever the script is started from. --- test-app/emu-test-apps/test-dualbank.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test-app/emu-test-apps/test-dualbank.sh b/test-app/emu-test-apps/test-dualbank.sh index e5c20724..ece29c5a 100755 --- a/test-app/emu-test-apps/test-dualbank.sh +++ b/test-app/emu-test-apps/test-dualbank.sh @@ -46,6 +46,10 @@ set -euo pipefail script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" WOLFBOOT_ROOT="${WOLFBOOT_ROOT:-$(cd "$script_dir/../.." && pwd)}" +# The top-level Makefile defaults WOLFBOOT_ROOT to $(PWD), which is the +# caller's directory when invoked via make -C: export the real root so +# tool paths (keygen/sign) resolve correctly wherever this script runs. +export WOLFBOOT_ROOT EMU_APPS="$WOLFBOOT_ROOT/test-app/emu-test-apps" EMU_DIR=stm32u585-dualbank EMU_PATH="$EMU_APPS/$EMU_DIR"