From patchwork Wed Dec 18 23:39:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182039 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp1341198ile; Wed, 18 Dec 2019 15:39:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwoU9g0vjN4k8+nqW0bogSS8bJ0eDFUXTo1S6oHdWUqtE6oDmSeCK1DD170C0KRu2Ew5cNI X-Received: by 2002:a62:5343:: with SMTP id h64mr5806808pfb.171.1576712387567; Wed, 18 Dec 2019 15:39:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576712387; cv=none; d=google.com; s=arc-20160816; b=XbPfVk7qyizx/HgFBetufnfmaLx4OOzatc5p0wu20jrQTjM6waYzpCd3nXxkANcjL1 Ptzuz5BlHtTwBlff/qqvi38tyrxThFZL0mNrsnqffPFTcgKXumblrIaMm4DIuLm+Tnx6 n0Ee2iCBD3COaqw9dd9SEQs6Z3kE38kggTeiq0rdLt+yCv+QcBeNtjijPP2y5uNnc2Oc PukS2De896Zxhn0oZ3CDvqph5vUpSYLFM7QmJm5nemF/ntu9uF1+/nkZMBveA/o/4Pj9 1OfFd5nJqDfwNA93XiERYEL5Fcpknc2QtxhTd54LCBLRLVF1gpGDB+c0NE0VybQx+SJ5 ZKUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=CAlQwk9fBmXbmAor8C+ogiOu5KqDPldDXAXoaedFqw0=; b=FBVDEShhE2Zc2SuHmFOtOhjkiqb1dESo492gRAoqrBANtsWkzVCcu/Y49g+HQktiwz 4XluR/Fh+qH+LAL4DqsEPcucKGdEPkX3/hMT+ZmdpO8tVfHosv1eorJlE+SOD2T8tz7y C400O6wH39JRXVUDtijnQb04zx6pX5zKX88/1vRawP3w7VEr7LrDlcmi1gNC5+YfW3vP d7ZCcOLy12VNF9bwePJvME/M3Wuc8XbAFYCmwLEDqFq75AVQYdY1fwzCYft0BiiKvCMB hOqKH1udpz/rf5i6y2fW458114mEjvjT7nU6BknXb+ade6qGdQTWe/FOdB04tidJRtRw O3wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=IRIcKqgq; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id v44si4127772pgn.105.2019.12.18.15.39.46; Wed, 18 Dec 2019 15:39:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=IRIcKqgq; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 9DF577FA17; Wed, 18 Dec 2019 23:39:41 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by mail.openembedded.org (Postfix) with ESMTP id 64B217ED5C for ; Wed, 18 Dec 2019 23:39:39 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id b137so2098549pga.6 for ; Wed, 18 Dec 2019 15:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3W6QpADCYFz+InbbQuY/8Hxh96Ft1SlsAQqT3PAbP+I=; b=IRIcKqgqZAkfNtE1wwenbA+K+1Yj0uxCM/Qz8OPowNRGE4FTWi/R7BOMy1UjRicmW1 0nPs+UT7cvpBn0FHFlth9M473vgOMGn2DxfgbBmRhQ5SFfc5cmLw1y7zzS3GckcxyH6U wPF9PTTB1ouVeIVcn7RgD07XHt/EeUFuD1IRu+F3kwVr5aIyljqwiGF2Ydp1IA2pJaOT 55CzOvxRBmz4DulvEKg2OGlrjmvDs+ht0XOmNv0uA4Y4DEGoJwFTekhNIOaUVocHyiDz uKQddIX/PJuNPA/Gx71CocCXNUdFPT6kUivT2Ws0SI6EIT/iwZpnxhqvIx3weghR8cPb xyJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3W6QpADCYFz+InbbQuY/8Hxh96Ft1SlsAQqT3PAbP+I=; b=C0y/tR52c578MRZ8lv4eml0NXsIlCU/f1C8vT8lz0N96Qq+xuAn+WM2Jzf9/FN0eDS 8Jk7Ml9rOfPI9gvHT/iESgCMn3Tj11hOrnlOAbMw80+pBiMBPXnpibAE6KOE+EdyvKa5 LvRqttkHN6UJbYBZD0THRzyzFVYkU+Wqduxbij4aipQ8bj+4OhqWD8LadjJ3Xs1tEYft IkQeyDTyEnFltjOwPBMaZ1w0ncQZr/S0VJwDo2yJQJ0zHv98RE8jwi8zPF4TAV8P7a32 oyF+B4QAv73yDfouTM6IIyZZwFc4WYQtjatoCztugXadqlK7EBm+VnugU5Rh07t3NNdq HcWw== X-Gm-Message-State: APjAAAWZ7kprmIv9tLGtOppcQqhsgir4Da4Xy7TA8CJT2iraYkrm7W/O dybhIrttTTIXH5uCb/E0I98BdQCd66g= X-Received: by 2002:a63:de4a:: with SMTP id y10mr5883648pgi.367.1576712379706; Wed, 18 Dec 2019 15:39:39 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::2ebb]) by smtp.gmail.com with ESMTPSA id o19sm7774327pjr.2.2019.12.18.15.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 15:39:39 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 18 Dec 2019 15:39:28 -0800 Message-Id: <20191218233928.696037-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH] cmake: Displace VERBOSE setting X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org 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 enable this logs for targetted debugging debugging that could be added via EXTRA_OECMAKE_BUILD += "--verbose" in recipe Signed-off-by: Khem Raj Cc: Ross Burton --- meta/classes/cmake.bbclass | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) -- 2.24.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 8ccb1eefc7..8a44a0c216 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass @@ -181,9 +181,14 @@ cmake_do_configure() { -Wno-dev } +# To enable VERBOSE option to emit all kind of logs for a given recipe add following in it +# +# EXTRA_OECMAKE_BUILD += "--verbose" +# +# Then run do_compile again cmake_runcmake_build() { - bbnote ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} - eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} + bbnote ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} + eval ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} } cmake_do_compile() {