Skip to contentSkip to conversation

classes/cmake: use correct CMAKE_SYSTEM_NAME for baremetal arm target

PATCH Harald Brinkmann 1 participant 1 message Jul 28 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

tclibc-newlib.inc sets TARGET_OS:arm to 'eabi', which gets assigned to HOST_OS and is used here to determine CMAKE_SYSTEM_NAME.

---
 meta/classes-recipe/cmake.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes-recipe/cmake.bbclass +2 -0
index 4f59966521..a1eec6b142 100644
@@ -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),