]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
classes/cmake: use correct CMAKE_SYSTEM_NAME for baremetal arm target master
authorHarald Brinkmann <brinkmann@stulz-digital-solutions.com>
Tue, 28 Jul 2026 09:54:44 +0000 (11:54 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Jul 2026 09:58:19 +0000 (10:58 +0100)
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 <brinkmann@stulz-digital-solutions.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cmake.bbclass

index 4f59966521ee8cecf04349ab128bf9ef8ec94251..a1eec6b1420c88a4954b4dec18c5c187334e180a 100644 (file)
@@ -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),