From patchwork Tue Jan 16 13:25:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 124667 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp1013288lje; Tue, 16 Jan 2018 05:26:06 -0800 (PST) X-Google-Smtp-Source: ACJfBosgjxcQhZGLAmCEJQvYf9iJbR+Aeo5k9DNc1b5s6T/NHJlvvC+tcKc55z4kZk1tQIDbsrNU X-Received: by 10.159.244.133 with SMTP id y5mr31262671plr.392.1516109166751; Tue, 16 Jan 2018 05:26:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516109166; cv=none; d=google.com; s=arc-20160816; b=zwmpnNkC96dHTrNbVw65jRrhV28WoIADZm0BkGZKoWhMaQgXSWn5rRHUaQBcwwDZeZ Ew0IpG/zhmnUhGtGxF+D3NCXbNMfXIv2XWyiYnPH44gwqGksx4O2Jmn/x/1pcuaQuDXC zEOjQFwcpNrU+TE5MHxmOHO1BXGdjR6tabIpPYrbMJ1RgpD6nSpqcTuxBQZA8OzlqSqz Cbjqg1UBQd5kEa0tCmbyKvY+joBYnazGaxRC8MiMa/+AtpKOAEjbPjr7EbXYQrT1/Pru igeQhlH/wqt8j0s+Vx2HSSJiAqIaHRUJGcbKTuPgEyx/E/YFAvEIe2hJeo681PaA8A54 /pZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=FC+uRIFuPud1WAms4+lXS2yIeLkLXAR83DsrnnfwrtA=; b=m1LNduBfGEKN+PhJ8ott5Y7iPH6qA/IKKPjjGdcf6Uki1COjRU68gCCOgG9xCHDwxk jVUYx/atddXeCtXwLM3PQFOXSC+3XZ/sEdWGekTJGGuRv0Yhn0zmJwpTdQ1VQVmIiUTe kEPo/EJP5mQNwGy1qFR58FrA114uUk70JPZnTg76N5JX4Zcf1mWwUnzskcgSS9MuqGpo jFNn7Y3ksZqHVkXZaTNhJopsH50/0tPC7pxzf6wvG0n5DVOaK98vbHrMQ1daiIL2Vy7e hf0OIFlFehH+Dhi40oAHDlKKP8Mgao8O15KDnJ4VNums65t/KwgTdcPd6nB61EO3ElJR KN5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=S/OucQjw; 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 Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id m3si1648677pgs.54.2018.01.16.05.26.06; Tue, 16 Jan 2018 05:26:06 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=S/OucQjw; 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 Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 38F067867E; Tue, 16 Jan 2018 13:26:04 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by mail.openembedded.org (Postfix) with ESMTP id 9E6767867E for ; Tue, 16 Jan 2018 13:26:03 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id f3so8665666wmc.1 for ; Tue, 16 Jan 2018 05:26:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=p8rf/15eIwTy+nGR7fz6qASmkrPl9gEdubUdCh5gEAU=; b=S/OucQjw3SBfLCG4blkPuMAtMCmGXuOIDSeZVlMRLbSloBxPao43oMHmIwxVKU8SKu rKZU2BwGcEaH4aSmYFse3jxIO2uDIcDWJjJc7l3kmD9JAwtknqahJLE0ztTkGYpdh087 JNLNoloV7DVg3/zGXrFGtpt/qOkVIPu3NFcI5j9vuQKcXNU18zArIhHWMtHTHtP3larK b+lcIXbgJYyrUP1BfcnpA5FzV1eZUr1JGRTBKfcLv5RobsIczRBBqdyu6gmyB0Ab0x79 M4couhEBi9zjRS07dWi/z0XDkRLif+yIMQxpe1hiXf/07s29eAnXp1LP0TrJyQ4WsnbR zf4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=p8rf/15eIwTy+nGR7fz6qASmkrPl9gEdubUdCh5gEAU=; b=iWYuZBTnVEFVzijwRay9nM4/TwW4GK/PSZNvrdj1AK3IOYc2hj2dTo6qodddb6EC/0 mR/nr/ZeKpHQFEi1Jlptk8OsI2ppqJh1dbNvLAEBZLWgT6nDOiMWdom4/vqjZqZSBuSw oVdsSC9cD4j0Vk+hbcDJqI6di1cbmFnAU4vr+dOtXpWreoFD1pIEfS/i3hSaqWvO7z9d 6nF4eLmLEkLTZADZCagdopCnxB+5pghlSQUgPjoGuM4LKS3eew1dWRGKscKRx0JS7lTJ CrbTyDRWpOJ3q45fZ+wkpHuMUJy8lUCRB3xV/5GKmnGk+JjR4IK9vJPcaIZL6dcqhf03 /aFA== X-Gm-Message-State: AKwxytd4hdkrYTmYWT1I1/a0+8BrNEwYYq7RnOFmMyxV/nQu4MWaljws ntCmJculQsxxyDTDatF33PUAPlnn X-Received: by 10.28.196.73 with SMTP id u70mr7928535wmf.116.1516109164267; Tue, 16 Jan 2018 05:26:04 -0800 (PST) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id b133sm1430134wmh.4.2018.01.16.05.26.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 05:26:03 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 16 Jan 2018 13:25:59 +0000 Message-Id: <20180116132559.27794-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [RFC PATCH] cmake: use Ninja backend instead of Make 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org The Ninja backend is faster than Make for large projects (takes three minutes off webkitgtk:do_compile for me), so use it by default. Signed-off-by: Ross Burton --- meta/classes/cmake.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core Signed-off-by: Ross Burton <ross.burton@intel.com>
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 10c4edcf1a5..ab29b1f1c23 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass @@ -1,7 +1,7 @@ # Path to the CMake file to process. OECMAKE_SOURCEPATH ??= "${S}" -DEPENDS_prepend = "cmake-native " +DEPENDS_prepend = "cmake-native ninja-native " B = "${WORKDIR}/build" # We need to unset CCACHE otherwise cmake gets too confused @@ -120,7 +120,7 @@ cmake_do_configure() { oecmake_sitefile= fi - cmake \ + cmake -GNinja \ $oecmake_sitefile \ ${OECMAKE_SOURCEPATH} \ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \ @@ -141,7 +141,7 @@ cmake_do_configure() { -Wno-dev } -do_compile[progress] = "percent" +do_compile[progress] = "outof:^\[(\d+)/(\d+)\]\s+" cmake_do_compile() { bbnote VERBOSE=1 cmake --build '${B}' --target ${OECMAKE_TARGET_COMPILE} -- ${EXTRA_OECMAKE_BUILD} VERBOSE=1 cmake --build '${B}' --target ${OECMAKE_TARGET_COMPILE} -- ${EXTRA_OECMAKE_BUILD}