summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-07 23:25:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-08 10:48:24 +0100
commit57be84259f0885865c85d7bac350979430b956b5 (patch)
tree68161cc94941029275c512624191d40ec6d21113 /meta/classes
parent765982f4c050d9cd3eb608d630312da482c737c7 (diff)
downloadopenembedded-core-57be84259f0885865c85d7bac350979430b956b5.tar.gz
openembedded-core-57be84259f0885865c85d7bac350979430b956b5.tar.bz2
openembedded-core-57be84259f0885865c85d7bac350979430b956b5.zip
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/cmake.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 8e579a7f9e..1e72371e76 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} )