From f598be15da739ef078a4c06b65f7a1897591fdac Mon Sep 17 00:00:00 2001 From: IFX-Anusha Date: Wed, 23 Sep 2026 10:42:36 +0000 Subject: [PATCH] ci(ifx_package_core): pre-install imgtool signing deps for kit_pse84_ai hal_infineon's pse84_metadata.cmake attempts to pip-install imgtool's Python dependencies (cryptography, cbor2, click, intelhex, Pillow) at CMake-configure time, but only emits a message(WARNING ...) if that fails rather than aborting the build. In our CI this silently no-ops, and the failure resurfaces later as a confusing ModuleNotFoundError: No module named 'cryptography' from imgtool.py during the post-build signing step. Pre-install the same packages explicitly in this workflow, scoped to kit_pse84_ai only, so the existing HAL-level install attempt becomes a harmless no-op regardless of whether/why it fails in CI. --- .github/workflows/ifx_package_core.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ifx_package_core.yml b/.github/workflows/ifx_package_core.yml index 5113e58fa..388776ada 100644 --- a/.github/workflows/ifx_package_core.yml +++ b/.github/workflows/ifx_package_core.yml @@ -215,6 +215,15 @@ jobs: key: ${{ github.job }}-${{ matrix.board }} # independent caches path: ~/.cache/ccache + - name: Install PSE84 signing dependencies + if: ${{ matrix.board == 'kit_pse84_ai' }} + run: | + # imgtool (invoked by hal_infineon's pse84_metadata.cmake to sign the + # image) needs these; its own pip-install-at-configure-time attempt + # only warns on failure, so pre-install them here to be safe. + source venv/bin/activate + pip3 install cryptography cbor2 click intelhex Pillow + - name: Build loader shell: bash run: |