From nobody Mon Apr 27 14:53:36 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1CDCC43334 for ; Tue, 14 Jun 2022 04:12:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243293AbiFNEMX (ORCPT ); Tue, 14 Jun 2022 00:12:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230239AbiFNEMV (ORCPT ); Tue, 14 Jun 2022 00:12:21 -0400 Received: from conuserg-12.nifty.com (conuserg-12.nifty.com [210.131.2.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE56E1D0CE; Mon, 13 Jun 2022 21:12:17 -0700 (PDT) Received: from grover.sesame (133-32-177-133.west.xps.vectant.ne.jp [133.32.177.133]) (authenticated) by conuserg-12.nifty.com with ESMTP id 25E4B3db031731; Tue, 14 Jun 2022 13:11:04 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 25E4B3db031731 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1655179864; bh=ZVkd16ycWmSMCRLUde5kxZbFgxzvusFJRN7ajd3LiMQ=; h=From:To:Cc:Subject:Date:From; b=OPpVQed8JKe0hkzF/YiUh/SWpvY8rpP7CmGWe9DtzH/pJasnYMujxWP7Mbys7zlTN IYz39aUQPBA9lymkUDuKTtfwgQenv19WBRfc4JTO/m/Hv1de034mGhrSnp/d9TZGiB PtkTPLLNTykSpa+/hv5edFVLhs/FDDyyfwGGCRwOJcKLvrBo9IkxJZ7XEoY7LD+xTX GEho+fPApDh/6eYrdMoAJwG0lXU16gpbs1oa1ghy/g7KAD0V61gUIBUqCziRIA1lMW tZURsbyeefk8GJcaMjZ8wC3soKylIMAWltt4+jx3DyTG/CMrjAWtq9wNb02idvl8NA +opb79PPutPpg== X-Nifty-SrcIP: [133.32.177.133] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , Nick Desaulniers , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: remove sed command from cmd_ar_builtin Date: Tue, 14 Jun 2022 13:11:00 +0900 Message-Id: <20220614041100.1860067-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Replace a pipeline of echo and sed with printf to decrease process forks. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index cac070aee791..d69849133dad 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -358,9 +358,8 @@ $(subdir-modorder): $(obj)/%/modules.order: $(obj)/% ; =20 quiet_cmd_ar_builtin =3D AR $@ cmd_ar_builtin =3D rm -f $@; \ - echo $(patsubst $(obj)/%,%,$(real-prereqs)) | \ - sed -E 's:([^ ]+):$(obj)/\1:g' | \ - xargs $(AR) cDPrST $@ + $(if $(real-prereqs), printf "$(obj)/%s " $(patsubst $(obj)/%,%,$(real-pr= ereqs)), :) | \ + xargs $(AR) cDPrST $@ =20 $(obj)/built-in.a: $(real-obj-y) FORCE $(call if_changed,ar_builtin) --=20 2.32.0