[1/3] cmake.bbclass: support android os

Message ID 20211216103846.718910-2-randy.li@synaptics.com
State New
Headers show
Series support Android target in all build system | expand

Commit Message

Hsia-Jun Li Dec. 16, 2021, 10:38 a.m. UTC
From: "Hsia-Jun(Randy) Li" <randy.li@synaptics.com>

Signed-off-by: Randy Li <ayaka@soulik.info>
Signed-off-by: Hsia-Jun(Randy) Li <randy.li@synaptics.com>
---
 meta/classes/cmake.bbclass | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 92b9197c48..40ae4fba08 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -69,6 +69,8 @@  OECMAKE_TARGET_COMPILE ?= "all"
 OECMAKE_TARGET_INSTALL ?= "install"
 
 def map_host_os_to_system_name(host_os):
+    if host_os.startswith('android'):
+        return 'Android'
     if host_os.startswith('mingw'):
         return 'Windows'
     if host_os.startswith('linux'):