From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id sLhxL2bqRGZ4CAAAe85BDQ:P1 (envelope-from ) for ; Wed, 15 May 2024 19:01:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id sLhxL2bqRGZ4CAAAe85BDQ (envelope-from ) for ; Wed, 15 May 2024 19:01:26 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JlI3i5Jq; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715792486; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3qLIJiKjlqDr6/0rhoK1uneVr/IFtt8EnXKUNj+2b/Q=; b=aZxAIpwfejdb7PcwT2k7EjTuDsOZQjo6ykR6HC02cu4U/oVTCdbgEhN6HACfdEE2rjoDuE JC39UXQtQo7gOcKp+RLtfvKCPepXxnzMDtopRUnZ0je+P7Jp0hYgegWOnqVYkhbDjDmIYQ hgiixZP6+Bx0+qzz2VMjGazfr1meDUDWnYsSza43MpgSzV36hOZzMfDt1YFmtlI+2ul0Xl 5NlHU+OHVqECmOAlrvtlyAITb17eelInAzv9ed66FuBBzYgsDRE2uC9KNulqtCXo1QRScQ wOpxXnCpFV78S4iAXG0SPoTiKVtvqEC9TR8NzBuLeVBdwCTw3CePlPwigEGsww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JlI3i5Jq; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715792486; a=rsa-sha256; cv=none; b=SLObZNHtYFrLsMBh5FKMXQr27Fw9bcofwqkzQXyha1SY9j5efLVsJvNMS+NUp4/+LFRPxs L3nuhW6gO8jjdVXLg/Q2u/I7olaPX/5SA0ufwvq05lGgEk+UM0o5bVeN6DWe3GIadmBr4H HOXAu9o0yP7WL1Tv3TZAqXeMIDAne+WK+AdFZUNf70o7KdFsu3UA6GHSfTfxhKtpLBbWwT 2vFLHCViYu1/xUtvDJkQLyidLHM6hY3bkZvE0qdMxyH/fpw/M6+7xS+KRzy+gZ/NE4jb89 7hQxEjoXhwUmF7yppryJOSFT7CGi8Xdqy5A0keUQ2HW1+p/rFl14rsY6YFnKpA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8B7D45167D for ; Wed, 15 May 2024 19:01:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7HzH-0001tn-4k; Wed, 15 May 2024 13:00:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7Hz5-0001p8-QN for guix-patches@gnu.org; Wed, 15 May 2024 13:00:09 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s7Hz3-0007GG-Vf for guix-patches@gnu.org; Wed, 15 May 2024 13:00:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7Hz4-0007CL-8v; Wed, 15 May 2024 13:00:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70962] [PATCH 10/14] gnu: make-linux-libre*: Run install targets in parallel. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: leo@famulari.name, me@tobias.gr, w@wmeyer.eu, guix-patches@gnu.org Resent-Date: Wed, 15 May 2024 17:00:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70962 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70962@debbugs.gnu.org Cc: Maxim Cournoyer , Leo Famulari , Tobias Geerinckx-Rice , Wilko Meyer X-Debbugs-Original-Xcc: Leo Famulari , Tobias Geerinckx-Rice , Wilko Meyer Received: via spool by 70962-submit@debbugs.gnu.org id=B70962.171579237127514 (code B ref 70962); Wed, 15 May 2024 17:00:06 +0000 Received: (at 70962) by debbugs.gnu.org; 15 May 2024 16:59:31 +0000 Received: from localhost ([127.0.0.1]:43171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7HyU-00079d-SA for submit@debbugs.gnu.org; Wed, 15 May 2024 12:59:31 -0400 Received: from mail-yb1-f172.google.com ([209.85.219.172]:50652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7HyR-00078f-MK for 70962@debbugs.gnu.org; Wed, 15 May 2024 12:59:28 -0400 Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-dbed0710c74so6118196276.1 for <70962@debbugs.gnu.org>; Wed, 15 May 2024 09:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715792300; x=1716397100; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3qLIJiKjlqDr6/0rhoK1uneVr/IFtt8EnXKUNj+2b/Q=; b=JlI3i5Jq+prP4TYeBbwegOfFzBIIRHo1Kdk0KN9aL2DbQ76EV+TAaBOzoeiHdBYCfk uzwEs+/Y6VXsC4ljxI73OmgFhW0xzbx+Tz3X+C52FgwLj7hxlWEI4+WrN8OkfTHAjZYU cAV73f+wkDPwgmBIOmMah/4S5vJnV1M/zWoBNjrvmt61UviZWEFYG18KHmVfaTi1oVp8 wWcscZ8xx6Qy0MR594RXTynUI7FBpn5nEPjH7HhExgIcokRjxy68Et3RnQTTcJblyhD7 R/OGWZhsOGncWQ4aVc3vM6w2YI3P3cec2e0zXP/eR4U661Tk1exUgvuui9HSQbV8/AOd 1tKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715792300; x=1716397100; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3qLIJiKjlqDr6/0rhoK1uneVr/IFtt8EnXKUNj+2b/Q=; b=haKJx3KVkoyD/7W7JvyKkoDmGeT7puq5wQ7csLa9vBWKo5Gip+hGfnuddFr0Zr/hQ3 8LGhhQn2JiXfuST+lIs8KmCLM34SvFsRq/+RKgKG5ij6x9qkJbWZimGVPH0rsegPuPR6 KVdNdK37GsS3dHue5yVgoRLX4u2twu2b2+XtSwYtEZMp/GTqc48tKuCLhBNC6nWBMxy3 pw4N5Ey9NTZVbcOiXekPB4uAQK1+YHbWem+wqyNq7Qr1LtfmkVO/OGg0c0WyfsvD+sjF pZRjaFPpY/ThQJO80EuXkNAi76aCFqcxgo0Nphchg9GQ/ToAQoQRfnmQoL9OtfihED9O rm/A== X-Gm-Message-State: AOJu0YwwK1LgV8bweBpyDO8l0ZAJxjz1d9jqQ6m9JPzJ2j6iQnTRdbn2 HAJ7sy9UpSwd77T3iyjW5ACjeabbI6DP3gNuLBQBdohHER9VtHo7s4bJ/w== X-Google-Smtp-Source: AGHT+IGrMwWwh+OKnrxYFTaGNIlMrjHN5mHy4EqvK6yj3ke+PfJLbpdZSyPNWMvIPiBkonLEwo5vpA== X-Received: by 2002:a25:8102:0:b0:dc2:41de:b744 with SMTP id 3f1490d57ef6-dee4f338307mr14184974276.32.1715792299928; Wed, 15 May 2024 09:58:19 -0700 (PDT) Received: from localhost.localdomain (dsl-205-233-125-107.b2b2c.ca. [205.233.125.107]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6a15f194871sm66068896d6.59.2024.05.15.09.58.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 09:58:19 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 15 May 2024 12:57:20 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: <7cf609dcf83c85b6897c9fb9af46ce8a854a15c8.1715791830.git.maxim.cournoyer@gmail.com> References: <7cf609dcf83c85b6897c9fb9af46ce8a854a15c8.1715791830.git.maxim.cournoyer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 6.13 X-Spam-Score: 6.13 X-Migadu-Queue-Id: 8B7D45167D X-Migadu-Scanner: mx13.migadu.com X-TUID: 0Z2cqwno5DdV This reduces the total build time by about 20%. * gnu/packages/linux.scm (make-linux-libre*) [phases] {install}: Ensure that -jN is used for the install targets. Also honor make flags. Change-Id: Ib3f4fdcbdeab736315a91eafa8d6d1dff5b89884 --- gnu/packages/linux.scm | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 5386a263cd..4547ab525f 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1049,9 +1049,15 @@ (define* (make-linux-libre* version gnu-revision source supported-systems (close-port port)) (invoke "make" "oldconfig")))) (replace 'install - (lambda _ + (lambda* (#:key make-flags parallel-build? #:allow-other-keys) (let ((moddir (string-append #$output "/lib/modules")) - (dtbdir (string-append #$output "/lib/dtbs"))) + (dtbdir (string-append #$output "/lib/dtbs")) + (make-flags + (append make-flags + (list "-j" + (if parallel-build? + (number->string (parallel-job-count)) + "1"))))) ;; Install kernel image, kernel configuration and link map. (for-each (lambda (file) (install-file file #$output)) (find-files "." "^(\\.config|bzImage|zImage|Image\ @@ -1059,22 +1065,23 @@ (define* (make-linux-libre* version gnu-revision source supported-systems ;; Install device tree files (unless (null? (find-files "." "\\.dtb$")) (mkdir-p dtbdir) - (invoke "make" (string-append "INSTALL_DTBS_PATH=" dtbdir) - "dtbs_install")) + (apply invoke "make" + (string-append "INSTALL_DTBS_PATH=" dtbdir) + "dtbs_install" make-flags)) ;; Install kernel modules (mkdir-p moddir) - (invoke "make" - ;; Disable depmod because the Guix system's module - ;; directory is an union of potentially multiple - ;; packages. It is not possible to use depmod to - ;; usefully calculate a dependency graph while - ;; building only one of them. - "DEPMOD=true" - (string-append "MODULE_DIR=" moddir) - (string-append "INSTALL_PATH=" #$output) - (string-append "INSTALL_MOD_PATH=" #$output) - "INSTALL_MOD_STRIP=1" - "modules_install") + (apply invoke "make" + ;; Disable depmod because the Guix system's module + ;; directory is an union of potentially multiple + ;; packages. It is not possible to use depmod to + ;; usefully calculate a dependency graph while building + ;; only one of them. + "DEPMOD=true" + (string-append "MODULE_DIR=" moddir) + (string-append "INSTALL_PATH=" #$output) + (string-append "INSTALL_MOD_PATH=" #$output) + "INSTALL_MOD_STRIP=1" + "modules_install" make-flags) (let* ((versions (filter (lambda (name) (not (string-prefix? "." name))) (scandir moddir))) @@ -1096,7 +1103,7 @@ (define* (make-linux-libre* version gnu-revision source supported-systems elfutils ;needed to enable CONFIG_STACK_VALIDATION flex bison - util-linux ;needed for hexdump + util-linux ;needed for hexdump ;; These are needed to compile the GCC plugins. gmp mpfr -- 2.41.0