From 043f971c823ee2840e5bcbd1acc23c26c05d49c6 Mon Sep 17 00:00:00 2001 From: Kshitij Sisodia Date: Mon, 21 Jul 2025 15:36:18 +0100 Subject: [PATCH] MLECO-6380: Fix dependency chain The Arm NPU delegate library needs to be built before other libraries higher up in the chain. Although this dependency was captured in CMake, using only the target file (and not the CMake target itself) can cause issues with Makefile generator. Adding this dependency explicitly fixes the issue. Change-Id: Iad5f9bfa01ebfe7413f2473dbbd043a13fbfc8fa Signed-off-by: Kshitij Sisodia --- scripts/cmake/executorch.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/cmake/executorch.cmake b/scripts/cmake/executorch.cmake index 8ca2ab7..eea3dfd 100644 --- a/scripts/cmake/executorch.cmake +++ b/scripts/cmake/executorch.cmake @@ -155,6 +155,11 @@ else() "-Wl,--whole-archive" $ "-Wl,--no-whole-archive") + + # Explicitly add dependency as some generators might not + # add it automatically when only TARGET_FILE is used + # in linking. + add_dependencies(mlek_executorch executorch_delegate_ethos_u) endif() endif() -- GitLab