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 <[email protected]>
--- meta/classes-recipe/cmake.bbclass | 2 ++ 1 file changed, 2 insertions(+)
meta/classes-recipe/cmake.bbclass +2 -0
@@ -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),