From 9949e7d68fd7be16d420492ff39655b684f75001 Mon Sep 17 00:00:00 2001 From: Harald Brinkmann Date: Tue, 28 Jul 2026 11:54:44 +0200 Subject: [PATCH] classes/cmake: use correct CMAKE_SYSTEM_NAME for baremetal arm target tclibc-newlib.inc sets TARGET_OS:arm to 'eabi', which gets assigned to HOST_OS and is used here to determine CMAKE_SYSTEM_NAME. Signed-off-by: Harald Brinkmann Signed-off-by: Richard Purdie --- meta/classes-recipe/cmake.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes-recipe/cmake.bbclass b/meta/classes-recipe/cmake.bbclass index 4f59966521e..a1eec6b1420 100644 --- a/meta/classes-recipe/cmake.bbclass +++ b/meta/classes-recipe/cmake.bbclass @@ -103,6 +103,8 @@ def map_host_os_to_system_name(host_os): return 'Windows' if host_os.startswith('linux'): return 'Linux' + if host_os == 'eabi': + return 'Generic' return host_os # CMake expects target architectures in the format of uname(2), -- 2.47.3