From patchwork Sat Dec 28 07:56:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182488 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp3913758ild; Fri, 27 Dec 2019 23:56:28 -0800 (PST) X-Google-Smtp-Source: APXvYqx4Y/mrh4DSB13EXVRT0TUIuq9dveNbtG3TPUH8mw4njb01sWDt6oITO4LI/mBrXZOk1x7X X-Received: by 2002:a17:902:d906:: with SMTP id c6mr12370720plz.137.1577519788562; Fri, 27 Dec 2019 23:56:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577519788; cv=none; d=google.com; s=arc-20160816; b=LiY5Vf9woOSlqRpodnxqiv9xVh0dt+KJQWQlf+imUGZvd+u8XTtVGFdza09AYppauj InFkSKZ7VaK5RFz8aAFIgwB9IWGFGt5OhVHAmjyBUX20tM847+hlqJDjfZmIGDeE51LZ CL+9WCkk+ho3XsOZgH5yPUFnC+DoyYeckVQOeEs8CheSNSI4MusXa0vdBxHXzVES7MaR 6oHv/xLwo3oh5onlau5d4fIhta+YhnfsihSYV0CZMrajT2y1DYHmFeJZP93Lkr+tWmw1 jU5/ShUJMomEakp+prSbcNWitxlgtfXx6UNYxXW8i8hEwXvP7P4bzrXNxjlRUWn9O9zC zJGw== 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=A9CKpjJUvQeVFUmLL4du73I7hAav0XES3DQK42xF6Jw=; b=vaez/kXpyts+LnS0RcmjuuDkPk0IHoNqSISvhftsmThTXSoqeRl6gMOufLauGNmqas 0fx2y6a7h8JP5YRsoZk6E4rqQgwmUy2kdSTEgFwAQM5dT/KlXn6v69w6kQhFjC9E024i hLk/Le2+QCpJmClh09fCwMaEJ4meQ4/efINbTpqvSZw8r3Yc0AgDw0Smfm0VzFTEmQ9v Fq5R4OUrFEujH6d9uTs0tkFk5bxwznOgk8xIfhQCu08RsncM4HVpAyZCA1Ly0G+sgGZh E2ntb5ByeP/DjrQ/ykGkmlG7EmH9ARb8bTaT9nOSge26UPO5aplbooxjpQ6+SAy4FpJM CQZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=pAW7FgU1; 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 w5si29744988pll.311.2019.12.27.23.56.28; Fri, 27 Dec 2019 23:56:28 -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=pAW7FgU1; 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 7F5047BD72; Sat, 28 Dec 2019 07:56:19 +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 DCFA0603FE for ; Sat, 28 Dec 2019 07:56:16 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id k197so15524774pga.10 for ; Fri, 27 Dec 2019 23:56:17 -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=pLtJIx/NXnjmii9g/ty8czlKc3qLXQ/cWRTQ5kL8QNE=; b=pAW7FgU1t9n/6UU8sYRebV61Qnf0mzu3qSgQAvg2LqTOHFpQD4NoUSdaqIfb7zKZj2 MgVC7sEv22yuOAcXP7lvJTTAMlHgIyt56WUwnOk4gfP4IxUcxHj18MmLhfzXfoUDrgAK vSTPzVNeVBRg0ci0VC5O6F6GUFbjVvb86yIT/QjtFYUqSU8uu4XSFABssfhqUy3vFHQs 3QuEGHH4o05RNnacmgPg/XgVuGReD/s0ufHB7UxtMliPNA2H044qlhO0sfaXoNfutgqg St9UikIbzPCYMXSfOnyj6MyLUIuZ9B8Wu1hv218T1lP+F1GvZJAoKhxGKewoUziypRcY SAAA== 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=pLtJIx/NXnjmii9g/ty8czlKc3qLXQ/cWRTQ5kL8QNE=; b=lAZR9esYzEmaDWegEE9FKUmgqKV6p2x1BeMVWM0SUQqJAtQWoT0VUvYbRS7JX2w6Qt apiSMG+ub9qbTucGfZZ6YbcsFy5onH3YrHSd3pNSZ86tXkbzHhlN6nUiy1kHpb+XfRqk C5CczIGA5rar95/0C6PHklK5956wbzuzGomjHLNFcWEirDnvG+DUNVMX8gnz4HcnmZ5E 7MvgxdN+4uGbYb6dL8a624kEmxMnvRe5VN7rZ3YOFGZQs5hD/J/yifjdfT4ACFEoOXXd UYtYe8YXXaqMN8HKYi3b4Je4l9Z4cnSer2ykWp/PMqCpbo+XjDtjEhd94bkN7kp5/zb1 kSEg== X-Gm-Message-State: APjAAAU90hv+kB12vDAdHZlr2oy56MUGggscFSPD3qgokVYTQ/KO+Db6 rpUY0pzLk4xIWdyLbT9bLy40tG7zQF8= X-Received: by 2002:a63:b141:: with SMTP id g1mr61391830pgp.168.1577519777059; Fri, 27 Dec 2019 23:56:17 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::2f83]) by smtp.gmail.com with ESMTPSA id j7sm43752635pgn.0.2019.12.27.23.56.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2019 23:56:16 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 27 Dec 2019 23:56:08 -0800 Message-Id: <20191228075608.47905-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH V3] cmake: Add a knob for cmake VERBOSE settings 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 disable these logs for a recipe or globally CMAKE_VERBOSE = "" in recipe or in global metadata e.g. local.conf Signed-off-by: Khem Raj Cc: Ross Burton Cc: Andre McCurdy --- v2: Make a knob for verbose option and keep the defaults as such v3: Use environment variable instead of using -v option, it does not work for all recipes e.g. fluentbit meta/classes/cmake.bbclass | 13 +++++++++++-- 1 file changed, 11 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..11ffb0d33f 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass @@ -181,9 +181,18 @@ cmake_do_configure() { -Wno-dev } +# To disable verbose cmake logs for a given recipe or globally config metadata e.g. local.conf +# add following +# +# CMAKE_VERBOSE = "" +# + +CMAKE_VERBOSE ??= "VERBOSE=1" + +# 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_VERBOSE} cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} + eval ${DESTDIR:+DESTDIR=${DESTDIR} }${CMAKE_VERBOSE} cmake --build '${B}' "$@" -- ${EXTRA_OECMAKE_BUILD} } cmake_do_compile() {