summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikhil R <nikhilr5@kpit.com>2025-08-05 12:54:43 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-08-07 12:11:16 +0100
commitd0d9cf07464cf8c6e0204ef72519f932359d3bb8 (patch)
tree20400f31716027b10e8915ff2f0b1e0e59f7e3b3
parente8fc876ada65aed612fe49107b34229950d883b8 (diff)
downloadpoky-d0d9cf07464cf8c6e0204ef72519f932359d3bb8.tar.gz
cmake: Add PACKAGECONFIG option for debugger support
Starting from CMake version 2.27 support for interactive debugging of CMake scripts and configurations was added. However, by default the `nativesdk-cmake` is compiled with debugger support turned off. This change adds debugger support for cmake (From OE-Core rev: 8acfca456c3502f0d097ba01a2d08f83fb75ab60) Signed-off-by: Nikhil R <nikhilr5@kpit.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/cmake/cmake_4.0.3.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/cmake/cmake_4.0.3.bb b/meta/recipes-devtools/cmake/cmake_4.0.3.bb
index 7d8b8cac65..cfc5cb1b93 100644
--- a/meta/recipes-devtools/cmake/cmake_4.0.3.bb
+++ b/meta/recipes-devtools/cmake/cmake_4.0.3.bb
@@ -43,9 +43,11 @@ EXTRA_OECMAKE = " \
43 -DKWSYS_CHAR_IS_SIGNED=1 \ 43 -DKWSYS_CHAR_IS_SIGNED=1 \
44 -DBUILD_CursesDialog=0 \ 44 -DBUILD_CursesDialog=0 \
45 -DKWSYS_LFS_WORKS=1 \ 45 -DKWSYS_LFS_WORKS=1 \
46 -DCMake_ENABLE_DEBUGGER=0 \
47" 46"
48 47
48PACKAGECONFIG ??= ""
49PACKAGECONFIG[debugger] = "-DCMake_ENABLE_DEBUGGER=1,-DCMake_ENABLE_DEBUGGER=0,"
50
49do_install:append:class-nativesdk() { 51do_install:append:class-nativesdk() {
50 mkdir -p ${D}${datadir}/cmake 52 mkdir -p ${D}${datadir}/cmake
51 install -m 644 ${UNPACKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/ 53 install -m 644 ${UNPACKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/