diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2014-10-20 23:58:52 -0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-24 21:59:46 +0100 |
commit | dacc4ce59e48129a1a1e5316e10780f7358e29ef (patch) | |
tree | 6965b4f3ff6389a9e4edc5405753abd773204a4f /meta/recipes-devtools/cmake/cmake_2.8.12.2.bb | |
parent | ce339dde32b7553cba9029c161098a090c4281de (diff) | |
download | poky-dacc4ce59e48129a1a1e5316e10780f7358e29ef.tar.gz |
nativesdk-cmake: Adjust toolchain paths dynamically
This patch adds a flexible way to configure the CMake in SDKs. It adds
a toolchain configuration script which supports subscripts for
extensions, as for example Qt5.
(From OE-Core rev: 4143f3b0ce0d0c52f5b0babc1bb16ac0ac9610eb)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake_2.8.12.2.bb')
-rw-r--r-- | meta/recipes-devtools/cmake/cmake_2.8.12.2.bb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake_2.8.12.2.bb b/meta/recipes-devtools/cmake/cmake_2.8.12.2.bb index de2ac6b219..66a6af629c 100644 --- a/meta/recipes-devtools/cmake/cmake_2.8.12.2.bb +++ b/meta/recipes-devtools/cmake/cmake_2.8.12.2.bb | |||
@@ -6,6 +6,10 @@ DEPENDS += "curl expat zlib libarchive" | |||
6 | 6 | ||
7 | SRC_URI += "file://dont-run-cross-binaries.patch" | 7 | SRC_URI += "file://dont-run-cross-binaries.patch" |
8 | 8 | ||
9 | SRC_URI_append_class-nativesdk = " \ | ||
10 | file://OEToolchainConfig.cmake \ | ||
11 | file://environment.d-cmake.sh" | ||
12 | |||
9 | SRC_URI[md5sum] = "17c6513483d23590cbce6957ec6d1e66" | 13 | SRC_URI[md5sum] = "17c6513483d23590cbce6957ec6d1e66" |
10 | SRC_URI[sha256sum] = "8c6574e9afabcb9fc66f463bb1f2f051958d86c85c37fccf067eb1a44a120e5e" | 14 | SRC_URI[sha256sum] = "8c6574e9afabcb9fc66f463bb1f2f051958d86c85c37fccf067eb1a44a120e5e" |
11 | 15 | ||
@@ -32,6 +36,16 @@ EXTRA_OECMAKE=" \ | |||
32 | ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '-DKWSYS_LFS_WORKS=1', '-DKWSYS_LFS_DISABLE=1', d)} \ | 36 | ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '-DKWSYS_LFS_WORKS=1', '-DKWSYS_LFS_DISABLE=1', d)} \ |
33 | " | 37 | " |
34 | 38 | ||
39 | do_install_append_class-nativesdk() { | ||
40 | mkdir -p ${D}${datadir}/cmake | ||
41 | install -m 644 ${WORKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/ | ||
42 | |||
43 | mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d | ||
44 | install -m 644 ${WORKDIR}/environment.d-cmake.sh ${D}${SDKPATHNATIVE}/environment-setup.d/cmake.sh | ||
45 | } | ||
46 | |||
47 | FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}" | ||
48 | |||
35 | FILES_${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION}" | 49 | FILES_${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION}" |
36 | FILES_${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}" | 50 | FILES_${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}" |
37 | 51 | ||