summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-12-27 23:56:08 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-30 08:47:13 +0000
commitd54ccf9f89be67acd57126ec732e1d3831c2614d (patch)
treeac837901ea2b01827672782acb57d3dc48165147 /meta/classes
parentfe3cefa2113d2ed272dd312ab7409122f51ab2aa (diff)
downloadpoky-d54ccf9f89be67acd57126ec732e1d3831c2614d.tar.gz
cmake: Add a knob for cmake VERBOSE settings
Setting VERBOSE always, while is fine on one hand for debugging, its coming at an expense of creating lots and lots of logs, e.g. qtwebkit compile logs alone with VERBOSE is 163MB, there are many other large packages which use cmake e.g. WPE, webkitgtk etc which are in same range with out this option on, the logs reduce to 861K and also speeds up build a notch If user needs to disable these logs for a recipe or globally CMAKE_VERBOSE = "" in recipe or in global metadata e.g. local.conf (From OE-Core rev: f8d2cd0025f97819898da26041f353d527a27952) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Ross Burton <ross.burton@intel.com> Cc: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/cmake.bbclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 8ccb1eefc7..11ffb0d33f 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -181,9 +181,18 @@ cmake_do_configure() {
181 -Wno-dev 181 -Wno-dev
182} 182}
183 183
184# To disable verbose cmake logs for a given recipe or globally config metadata e.g. local.conf
185# add following
186#
187# CMAKE_VERBOSE = ""
188#
189
190CMAKE_VERBOSE ??= "VERBOSE=1"
191
192# Then run do_compile again
184cmake_runcmake_build() { 193cmake_runcmake_build() {
185 bbnote ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} 194 bbnote ${DESTDIR:+DESTDIR=${DESTDIR} }${CMAKE_VERBOSE} cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD}
186 eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} 195 eval ${DESTDIR:+DESTDIR=${DESTDIR} }${CMAKE_VERBOSE} cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD}
187} 196}
188 197
189cmake_do_compile() { 198cmake_do_compile() {