diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-12-24 17:59:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-26 18:49:07 +0000 |
commit | e5be12ef57a4a8d94e45ba87d2b4c23c9aea6c30 (patch) | |
tree | 193fe8fffa0249e37fb015d1b9f6da9e94937178 /meta/recipes-devtools/cmake/cmake_3.25.1.bb | |
parent | 5b5e4cd6e261a62c85b55a65770d7751c55fb22c (diff) | |
download | poky-e5be12ef57a4a8d94e45ba87d2b4c23c9aea6c30.tar.gz |
cmake: update 3.24.2 -> 3.25.1
License-Update: additional contributors
(From OE-Core rev: bc7dcc79cc5c8e2ea92ee45fe918a3488b4b1086)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake_3.25.1.bb')
-rw-r--r-- | meta/recipes-devtools/cmake/cmake_3.25.1.bb | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake_3.25.1.bb b/meta/recipes-devtools/cmake/cmake_3.25.1.bb new file mode 100644 index 0000000000..bb7ed83e30 --- /dev/null +++ b/meta/recipes-devtools/cmake/cmake_3.25.1.bb | |||
@@ -0,0 +1,67 @@ | |||
1 | require cmake.inc | ||
2 | |||
3 | inherit cmake bash-completion | ||
4 | |||
5 | DEPENDS += "curl expat zlib libarchive xz ncurses bzip2" | ||
6 | |||
7 | SRC_URI:append:class-nativesdk = " \ | ||
8 | file://OEToolchainConfig.cmake \ | ||
9 | file://SDKToolchainConfig.cmake.template \ | ||
10 | file://cmake-setup.py \ | ||
11 | file://environment.d-cmake.sh \ | ||
12 | file://0001-CMakeDetermineSystem-use-oe-environment-vars-to-load.patch \ | ||
13 | " | ||
14 | |||
15 | LICENSE:append = " & BSD-1-Clause & MIT" | ||
16 | LIC_FILES_CHKSUM:append = " \ | ||
17 | file://Utilities/cmjsoncpp/LICENSE;md5=5d73c165a0f9e86a1342f32d19ec5926 \ | ||
18 | file://Utilities/cmlibrhash/COPYING;md5=a8c2a557a5c53b1c12cddbee98c099af \ | ||
19 | file://Utilities/cmlibuv/LICENSE;md5=ad93ca1fffe931537fcf64f6fcce084d \ | ||
20 | " | ||
21 | |||
22 | # Strip ${prefix} from ${docdir}, set result into docdir_stripped | ||
23 | python () { | ||
24 | prefix=d.getVar("prefix") | ||
25 | docdir=d.getVar("docdir") | ||
26 | |||
27 | if not docdir.startswith(prefix): | ||
28 | bb.fatal('docdir must contain prefix as its prefix') | ||
29 | |||
30 | docdir_stripped = docdir[len(prefix):] | ||
31 | if len(docdir_stripped) > 0 and docdir_stripped[0] == '/': | ||
32 | docdir_stripped = docdir_stripped[1:] | ||
33 | |||
34 | d.setVar("docdir_stripped", docdir_stripped) | ||
35 | } | ||
36 | |||
37 | EXTRA_OECMAKE=" \ | ||
38 | -DCMAKE_DOC_DIR=${docdir_stripped}/cmake-${CMAKE_MAJOR_VERSION} \ | ||
39 | -DCMAKE_USE_SYSTEM_LIBRARIES=1 \ | ||
40 | -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0 \ | ||
41 | -DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=0 \ | ||
42 | -DCMAKE_USE_SYSTEM_LIBRARY_LIBRHASH=0 \ | ||
43 | -DKWSYS_CHAR_IS_SIGNED=1 \ | ||
44 | -DBUILD_CursesDialog=0 \ | ||
45 | -DKWSYS_LFS_WORKS=1 \ | ||
46 | " | ||
47 | |||
48 | do_install:append:class-nativesdk() { | ||
49 | mkdir -p ${D}${datadir}/cmake | ||
50 | install -m 644 ${WORKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/ | ||
51 | |||
52 | mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d | ||
53 | install -m 644 ${WORKDIR}/environment.d-cmake.sh ${D}${SDKPATHNATIVE}/environment-setup.d/cmake.sh | ||
54 | |||
55 | # install cmake-setup.py to create arch-specific toolchain cmake file from template | ||
56 | install -m 0644 ${WORKDIR}/SDKToolchainConfig.cmake.template ${D}${datadir}/cmake/ | ||
57 | install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d | ||
58 | install -m 0755 ${WORKDIR}/cmake-setup.py ${D}${SDKPATHNATIVE}/post-relocate-setup.d/ | ||
59 | } | ||
60 | |||
61 | FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}" | ||
62 | |||
63 | FILES:${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION} ${datadir}/cmake ${datadir}/aclocal ${datadir}/emacs ${datadir}/vim" | ||
64 | FILES:${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}" | ||
65 | FILES:${PN}-dev = "" | ||
66 | |||
67 | BBCLASSEXTEND = "nativesdk" | ||