[oe-commits] Richard Purdie : cmake: set system name correctly

git at git.openembedded.org git at git.openembedded.org
Wed Jan 8 17:22:36 UTC 2014


Module: openembedded-core.git
Branch: dylan
Commit: 8a414086c04acb1c9387567a49f05577fa0d66ba
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8a414086c04acb1c9387567a49f05577fa0d66ba

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Wed Jan  8 17:22:59 2014 +0000

cmake: set system name correctly

For unknown reasons, the cmake class is using SDK_OS as the
target system OS. This makes no sense but only shows up as a problem
when you try a different SDK OS. Fix it to use TARGET_OS which is
the correct thing to do. For the vast majority of users this will
make no difference.

(From OE-Core master rev: 57be84259f0885865c85d7bac350979430b956b5)

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/cmake.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index e64c30c..4ef9fca 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -35,7 +35,7 @@ cmake_do_generate_toolchain_file() {
 	cat > ${WORKDIR}/toolchain.cmake <<EOF
 # CMake system name must be something like "Linux".
 # This is important for cross-compiling.
-set( CMAKE_SYSTEM_NAME `echo ${SDK_OS} | sed 's/^./\u&/'` )
+set( CMAKE_SYSTEM_NAME `echo ${TARGET_OS} | sed 's/^./\u&/'` )
 set( CMAKE_SYSTEM_PROCESSOR ${TARGET_ARCH} )
 set( CMAKE_C_COMPILER ${OECMAKE_C_COMPILER} )
 set( CMAKE_CXX_COMPILER ${OECMAKE_CXX_COMPILER} )



More information about the Openembedded-commits mailing list