Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA1DACE7A88 for ; Sat, 23 Sep 2023 16:04:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 5BC0441836; Sat, 23 Sep 2023 16:04:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5BC0441836 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ool5JtETYFTp; Sat, 23 Sep 2023 16:04:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 58B5B4182B; Sat, 23 Sep 2023 16:04:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 58B5B4182B Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id F28391BF310 for ; Sat, 23 Sep 2023 16:04:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id D9016414B6 for ; Sat, 23 Sep 2023 16:04:15 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org D9016414B6 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GBZKznUYiBvo for ; Sat, 23 Sep 2023 16:04:14 +0000 (UTC) Received: from mail.light-speed.de (mail.light-speed.de [85.214.38.116]) by smtp2.osuosl.org (Postfix) with ESMTPS id 9D1A8414B7 for ; Sat, 23 Sep 2023 16:04:14 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 9D1A8414B7 Received: from bilbo.fritz.box (ip5f5a8b4a.dynamic.kabel-deutschland.de [95.90.139.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.light-speed.de (Postfix) with ESMTPSA id BB2D83D42A6B; Sat, 23 Sep 2023 18:04:11 +0200 (CEST) To: buildroot@buildroot.org Date: Sat, 23 Sep 2023 18:04:11 +0200 Message-Id: <20230923160411.3662885-1-mail@jens-maus.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230923093901.1372593-1-mail@jens-maus.de> References: <20230923093901.1372593-1-mail@jens-maus.de> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jens-maus.de; s=mail; t=1695485051; bh=YJCABGUiZMol+aS+87m/Zf6EaIKtV4NHeqGEVFi4TWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=0YVLUlLivSi3BitpJy5nqw+lC/eTMTqIoNlwELlnfYDo/J4+HxQ4tLB74Sb3JEHdj uq5OX29GwWCxdJJQgscA8vONU90hJqMstkR6x3xgqhvyY3D2EEkDRuwlbq7wMyg1qB gtkCmASGrtI9QfF86mJA35fweW6/kFMeLy0kfS1Q= X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key) header.d=jens-maus.de header.i=@jens-maus.de header.a=rsa-sha256 header.s=mail header.b=0YVLUlLi Subject: [Buildroot] [PATCH v2] package/nodejs: fix parallel build X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jens Maus via buildroot Reply-To: Jens Maus Cc: Martin Bark , Daniel Price Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" In ninja-based nodejs builds performing parallel builds using "make -jX" is not working during buildroot initiated builds because the JOBS variable is not set in the MAKE_OPTS variables in nodejs.mk. This commit remedies the issue by setting JOBS to BR2_JLEVEL. Signed-off-by: Jens Maus --- Changes v1 -> v2: - removed unrelated v8-qemu-wrapper.in change (Yann) - revised change summary (Yann) - removed unnecessary top-level Makefile modifications (Yann) Signed-off-by: Jens Maus --- package/nodejs/nodejs.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/nodejs/nodejs.mk b/package/nodejs/nodejs.mk index fe629ada21..4e70bd71a3 100644 --- a/package/nodejs/nodejs.mk +++ b/package/nodejs/nodejs.mk @@ -46,14 +46,16 @@ HOST_NODEJS_MAKE_OPTS = \ CXXFLAGS="$(HOST_NODEJS_CXXFLAGS)" \ LDFLAGS.host="$(HOST_LDFLAGS)" \ NO_LOAD=cctest.target.mk \ - PATH=$(@D)/bin:$(BR_PATH) + PATH=$(@D)/bin:$(BR_PATH) \ + JOBS=$(BR2_JLEVEL) NODEJS_MAKE_OPTS = \ $(TARGET_CONFIGURE_OPTS) \ NO_LOAD=cctest.target.mk \ PATH=$(@D)/bin:$(BR_PATH) \ LDFLAGS="$(NODEJS_LDFLAGS)" \ - LD="$(TARGET_CXX)" + LD="$(TARGET_CXX)" \ + JOBS=$(BR2_JLEVEL) # nodejs's build system uses python which can be a symlink to an unsupported # python version (e.g. python 3.10 with nodejs 14.18.1). We work around this by -- 2.34.1 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot