Prevent AARCH64-specific KleiDiAI kernels from being included in armv7 builds, resolving build issues on 32-bit ARM platforms.
Added Patch; - 0009-cmake-Exclude-AARCH64-specific-KleiDiAI-kernels-from.patch Signed-off-by: Pratham Deshmukh <[email protected]> --- Change Logs: - Added shorter commit message ...RCH64-specific-KleiDiAI-kernels-from.patch | 37 +++++++++++++++++++ .../arm-compute-library_52.7.0.bb | 1 + 2 files changed, 38 insertions(+) create mode 100644 meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0009-cmake-Exclude-AARCH64-specific-KleiDiAI-kernels-from.patch diff --git a/meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0009-cmake-Exclude-AARCH64-specific-KleiDiAI-kernels-from.patch b/meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0009-cmake-Exclude-AARCH64-specific-KleiDiAI-kernels-from.patch new file mode 100644 index 00000000..fd72189b --- /dev/null +++ b/meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library/0009-cmake-Exclude-AARCH64-specific-KleiDiAI-kernels-from.patch @@ -0,0 +1,37 @@ +From 4e2bdad07af1a4a16264ef1373488f41fadd62ab Mon Sep 17 00:00:00 2001 +From: Pratham Deshmukh <[email protected]> +Date: Wed, 18 Mar 2026 20:55:08 +0530 +Subject: [PATCH] cmake: Exclude AARCH64-specific KleiDiAI kernels from armv7 + builds + +The KleiDiAI matrix multiplication kernels use AARCH64-specific instructions +that are incompatible with armv7 architecture. + +Update CMake and add expressions to conditionally exclude these files when +ACL_ARCH_ISA is set to armv7, preventing build failures on 32-bit ARM platforms. + +Upstream-Status: Pending + +Signed-off-by: Pratham Deshmukh <[email protected]> +--- + src/CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 0867ba81ad..45046fd0f1 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -361,8 +361,8 @@ set(ARM_COMPUTE_SVE2_SOURCES + ) + + set(ARM_COMPUTE_SOURCES +- ../third_party/kleidiai/kai/ukernels/matmul/matmul_clamp_f32_f32_f32p/kai_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla.c +- ../third_party/kleidiai/kai/ukernels/matmul/pack/kai_rhs_pack_kxn_f32p8x1biasf32_f32_f32_neon.c ++ $<$<NOT:$<STREQUAL:${ACL_ARCH_ISA},armv7>>:../third_party/kleidiai/kai/ukernels/matmul/matmul_clamp_f32_f32_f32p/kai_matmul_clamp_f32_f32_f32p8x1biasf32_6x8x4_neon_mla.c> ++ $<$<NOT:$<STREQUAL:${ACL_ARCH_ISA},armv7>>:../third_party/kleidiai/kai/ukernels/matmul/pack/kai_rhs_pack_kxn_f32p8x1biasf32_f32_f32_neon.c> + c/AclContext.cpp + c/AclOperator.cpp + c/AclQueue.cpp +-- +2.34.1 + diff --git a/meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_52.7.0.bb b/meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_52.7.0.bb index 02155d20..f3b67a66 100644 --- a/meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_52.7.0.bb +++ b/meta-arago-extras/recipes-devtools/arm-compute-library/arm-compute-library_52.7.0.bb @@ -13,6 +13,7 @@ SRC_URI = " \ file://0006-Remove-TARGET-dependency.patch \ file://0007-cmake-Generate-generic-library-name-instead-of.patch \ file://0008-Add-FP16-source-path.patch \ + file://0009-cmake-Exclude-AARCH64-specific-KleiDiAI-kernels-from.patch \ " SRCREV = "c9a1fff898abd5109b759e8e16616519dc758fdd" -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17442): https://lists.yoctoproject.org/g/meta-arago/message/17442 Mute This Topic: https://lists.yoctoproject.org/mt/118514538/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
