cmake: add nativesdk and target versions

Adds a recipe that provides the nativesdk and target versions of
CMake.

This recipe is based on code from OpenEmbeeded (rev
b1f2e1501c19540617a829b37415c0616101c7ad).

(From OE-Core rev: ea25292bbf53c7542578e5d9f4ae0531f9d78374)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Otavio Salvador
2011-06-16 14:27:47 +00:00
committed by Richard Purdie
parent e5fef6bc21
commit 4832e84106
2 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
cmake: don't run cross-binaries on host machine
When doing the cross build we obviously cannot run those binaries on
host since they can be binary incompatible.
Upstream-Status: Inappropriate [embedded specific]
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
diff -ru cmake-2.8.2.orig/CMakeLists.txt cmake-2.8.2/CMakeLists.txt
--- cmake-2.8.2.orig/CMakeLists.txt 2010-07-28 00:48:42.000000000 +0200
+++ cmake-2.8.2/CMakeLists.txt 2010-07-28 01:05:17.000000000 +0200
@@ -518,7 +518,8 @@
# build the remaining subdirectories
ADD_SUBDIRECTORY(Source)
-ADD_SUBDIRECTORY(Utilities)
+# Come on! Running the cross-binaries on host is not a good idea.
+#ADD_SUBDIRECTORY(Utilities)
ADD_SUBDIRECTORY(Tests)
# add a test