Skip to contentSkip to conversation

cmake.bbclass: add Darwin support

PATCH In review [email protected] 1 participant 2 messages Jan 16, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cmake.bbclass: add Darwin support

From: Etienne Cordonnier <[email protected]>

This was initially added by https://git.yoctoproject.org/meta-darwin/commit/?id=97a84e083d0c2812e44231d48fb478e9a9cfac79
to the meta-darwin repository, however having it directly in openembedded-core will make the maintenance of meta-darwin easier.

---
 meta/classes-recipe/cmake.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes-recipe/cmake.bbclass +2 -0
index d978b88944..1e353f660f 100644
@@ -72,6 +72,8 @@ OECMAKE_TARGET_COMPILE ?= "all"
 OECMAKE_TARGET_INSTALL ?= "install"
 
 def map_host_os_to_system_name(host_os):
+    if host_os.startswith('darwin'):
+        return 'Darwin'
     if host_os.startswith('mingw'):
         return 'Windows'
     if host_os.startswith('linux'):
Signature · 1 line
2.36.1.vfs.0.0
#1 lore raw

I fixed a typo in the commit message: "directory -> directly".

Quoted 31 lines · On Tue, Jan 16, 2024 at 10:02 AM <[email protected]> wrote:

From: Etienne Cordonnier <[email protected]>

This was initially added by
https://git.yoctoproject.org/meta-darwin/commit/?id=97a84e083d0c2812e44231d48fb478e9a9cfac79
to the meta-darwin repository, however having it directly in openembedded-core will make the maintenance of meta-darwin easier.

---
 meta/classes-recipe/cmake.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes-recipe/cmake.bbclass +2 -1
index d978b88944..1e353f660f 100644
@@ -72,6 +72,8 @@ OECMAKE_TARGET_COMPILE ?= "all"
 OECMAKE_TARGET_INSTALL ?= "install"
 
 def map_host_os_to_system_name(host_os):
+    if host_os.startswith('darwin'):
+        return 'Darwin'
     if host_os.startswith('mingw'):
         return 'Windows'
     if host_os.startswith('linux'):
--

2.36.1.vfs.0.0