From: Yongxin Liu <[email protected]>

- Added "COMPATIBLE_HOST" to restrict the "linux-npu-driver" recipe
  to x86_64 Linux-based build systems.

- Ensured that the recipe is not compatible with systems using musl libc.

This change ensures the recipe builds only on x86_64 hosts with glibc
and avoids issues with musl-based systems.

Signed-off-by: Yongxin Liu <[email protected]>
---
 .../recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb     | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb
 
b/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb
index d2e90e79..1be67e01 100644
--- 
a/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb
+++ 
b/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb
@@ -23,6 +23,8 @@ SRCREV_FORMAT = 
"linux-npu-driver_npu-compiler-elf_yaml-cpp_lzvext_googletest"
 
 inherit cmake
 
+COMPATIBLE_HOST = '(x86_64).*-linux'
+COMPATIBLE_HOST:libc-musl = 'null'
 
 # Fix warning _FORTIFY_SOURCE requires compiling with optimization (-O)
 EXTRA_OECMAKE += " -DCMAKE_BUILD_TYPE=Release "
-- 
2.46.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8707): 
https://lists.yoctoproject.org/g/meta-intel/message/8707
Mute This Topic: https://lists.yoctoproject.org/mt/117630712/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to