diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2017-06-02 15:42:43 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-05 09:19:51 +0100 |
commit | e3372ac0b4b0d1e5d246837aa940f020b6c0cfbc (patch) | |
tree | bea77bc5d99294d2e0b288eff358eeb4d4c60da4 /meta/recipes-devtools/cmake/cmake_3.8.2.bb | |
parent | 374f3d6be2df7393dc6ac5d7ea34f12e2d2c4f03 (diff) | |
download | poky-e3372ac0b4b0d1e5d246837aa940f020b6c0cfbc.tar.gz |
cmake: Upgrade to 3.8.2
There was a set of changes, those are:
- CMake now requires librhash for build and as there is no other
users in OE-Core we make it use its internal copy instead;
- Copyright.txt checksum has change due new contrubutors and 2017
year additions;
- Patch avoid-gcc-warnings-with-Wstrict-prototypes.patch was removed
as it is not need anymore;
- Patch 0001-KWIML-tests-Remove-format-security-from-flags.patch was
removed as it is included in this release.
(From OE-Core rev: cc75f693bde412edd0a1aa4fd4e92fb29b492b76)
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_3.8.2.bb')
-rw-r--r-- | meta/recipes-devtools/cmake/cmake_3.8.2.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake_3.8.2.bb b/meta/recipes-devtools/cmake/cmake_3.8.2.bb new file mode 100644 index 0000000000..3f8fd7a997 --- /dev/null +++ b/meta/recipes-devtools/cmake/cmake_3.8.2.bb | |||
@@ -0,0 +1,50 @@ | |||
1 | require cmake.inc | ||
2 | |||
3 | inherit cmake | ||
4 | |||
5 | DEPENDS += "curl expat zlib libarchive xz ncurses bzip2" | ||
6 | |||
7 | SRC_URI_append_class-nativesdk = " \ | ||
8 | file://OEToolchainConfig.cmake \ | ||
9 | file://environment.d-cmake.sh" | ||
10 | |||
11 | # Strip ${prefix} from ${docdir}, set result into docdir_stripped | ||
12 | python () { | ||
13 | prefix=d.getVar("prefix") | ||
14 | docdir=d.getVar("docdir") | ||
15 | |||
16 | if not docdir.startswith(prefix): | ||
17 | bb.fatal('docdir must contain prefix as its prefix') | ||
18 | |||
19 | docdir_stripped = docdir[len(prefix):] | ||
20 | if len(docdir_stripped) > 0 and docdir_stripped[0] == '/': | ||
21 | docdir_stripped = docdir_stripped[1:] | ||
22 | |||
23 | d.setVar("docdir_stripped", docdir_stripped) | ||
24 | } | ||
25 | |||
26 | EXTRA_OECMAKE=" \ | ||
27 | -DCMAKE_DOC_DIR=${docdir_stripped}/cmake-${CMAKE_MAJOR_VERSION} \ | ||
28 | -DCMAKE_USE_SYSTEM_LIBRARIES=1 \ | ||
29 | -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0 \ | ||
30 | -DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=0 \ | ||
31 | -DCMAKE_USE_SYSTEM_LIBRARY_LIBRHASH=0 \ | ||
32 | -DKWSYS_CHAR_IS_SIGNED=1 \ | ||
33 | -DBUILD_CursesDialog=0 \ | ||
34 | -DKWSYS_LFS_WORKS=1 \ | ||
35 | " | ||
36 | |||
37 | do_install_append_class-nativesdk() { | ||
38 | mkdir -p ${D}${datadir}/cmake | ||
39 | install -m 644 ${WORKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/ | ||
40 | |||
41 | mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d | ||
42 | install -m 644 ${WORKDIR}/environment.d-cmake.sh ${D}${SDKPATHNATIVE}/environment-setup.d/cmake.sh | ||
43 | } | ||
44 | |||
45 | FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}" | ||
46 | |||
47 | FILES_${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION}" | ||
48 | FILES_${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}" | ||
49 | |||
50 | BBCLASSEXTEND = "nativesdk" | ||