Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp102742pxb; Thu, 14 Jan 2021 20:43:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYqRNcPF5znv5MoTQzdAT+JBYz7SmyT1YWRGRtBKDwDDFvKhsM51jMzFYSmuW3++RoyRKX X-Received: by 2002:aa7:c811:: with SMTP id a17mr7947268edt.301.1610685805878; Thu, 14 Jan 2021 20:43:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610685805; cv=none; d=google.com; s=arc-20160816; b=hVhWnA8JfFAZTWlObit8QqNdaZGfM+IVdjk/v252UxgEHPlh1wmEtJy9IUKDho8nkn EDNVLqtWYyY7Z81hjpNJuuhfT4uaTOLvrrNsZQuTNa+gg6lFabQA08/DnPiApJybVBMP /GQ5ZVtUpc66hjTqqjtlJ6BY/x8HDqOHWMVU6Tosorf7kz5RpUcylmgLMo/FBGrjhSg9 jg4mIO73dUBfZmnp+l8mt7rZdFzYbLxkTxxqtBzFXINzm/LZ132swEvHfsqLdV9Y1KA0 t6XZCvw6I5T0/bU4+l9dU66+LenDKcaFHThhgNSTsb8kamO1yzr0FHInc9o2j4KBFyoz Yeww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=LIljr1P6iCBWA5zG5KVb7+x3iDad2gv902xOCN8W3X4=; b=t+SkQx9VpesDRcUvkKRDM+psqTPO5EaugyafNKdyDkt3AGs2dOEN8hO1APQLOExjb6 9gUF7puVePP9ZC5oJr29NM3DsaMXepaXUK6UaAdXJ3+yl2LyX7vwAaNhEPzROvdBfTTL AX3nUBnVFw3Uj8rDBX3x5W3HwLw9sSxGCx/Ndi9MB9jGBbRx7wBgCTjZi06ZnWdPqWdq Vx7XIq81ZoFHZLHP4NXT7gfz7h6Wx33zLQakrhIx4A/CFdzVCjx6fNclArAPlZPcl4CP I/2DAqx9vsdmAPBnLB/sB8OA3/Sdn/bOXeKcaeiZodk1q/u046Hc9dIjVHdbscRkIAY3 G/7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=T4+JPlms; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l1si3557842edv.442.2021.01.14.20.43.02; Thu, 14 Jan 2021 20:43:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=T4+JPlms; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731477AbhAOB04 (ORCPT + 99 others); Thu, 14 Jan 2021 20:26:56 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:32482 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbhAOB0z (ORCPT ); Thu, 14 Jan 2021 20:26:55 -0500 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 10F1Psc1004710; Fri, 15 Jan 2021 10:25:55 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 10F1Psc1004710 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1610673955; bh=LIljr1P6iCBWA5zG5KVb7+x3iDad2gv902xOCN8W3X4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=T4+JPlmsXW/rV33sZqCuMML8oT78soshLGgzoVDnu068HKvD2xjyNiEVjIb0d2Fvl HbX8Bag1dv4n+Nr2jdSg7Dv2/tQg2XONLY7EUUjv5Y9MgGvbkZWzbATOdSsCkyN8na 8Ixs14QfiHNZdb90ZJo3sy0Ne14zcKG3MNjJTg7bu92zIjI/Et+SCBSwe42wZGSgmx 2SiCaYfxj4mF7gGfpmyjHP/DELIiAXhgH8BbizBdfczacnHcMysv4mp7pLo31k4Ln4 BdFO5ySh9+xS+Asp+u6I9ZmkfzoXGZBB7Grcmu1HhY2TBMdtCJNoIcjRaXi/7h8Gsk H8MJsDUn0ZzfQ== X-Nifty-SrcIP: [209.85.216.51] Received: by mail-pj1-f51.google.com with SMTP id m5so4254818pjv.5; Thu, 14 Jan 2021 17:25:54 -0800 (PST) X-Gm-Message-State: AOAM532wlX12evdOvGZvA/RPupLV84qGQVn4qAaC+ol+JOjJqzjK719/ 2OvTaTVcYFVxQOyPmdaP1QBwUm8vLtTnVur7kpo= X-Received: by 2002:a17:90b:1b50:: with SMTP id nv16mr3346586pjb.153.1610673954067; Thu, 14 Jan 2021 17:25:54 -0800 (PST) MIME-Version: 1.0 References: <1610500731-30960-2-git-send-email-jjohnson@codeaurora.org> <1610660990-18812-1-git-send-email-jjohnson@codeaurora.org> In-Reply-To: From: Masahiro Yamada Date: Fri, 15 Jan 2021 10:25:17 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/2] kbuild: handle excessively long argument lists To: Nick Desaulniers Cc: Jeff Johnson , Linux Kbuild mailing list , Prasad Sodagudi , Elliot Berman , Mahesh Kumar Kalikot Veetil , Michal Marek , LKML , Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 15, 2021 at 10:01 AM Nick Desaulniers wrote: > > On Thu, Jan 14, 2021 at 1:50 PM Jeff Johnson wrote: > > > > From: Mahesh Kumar Kalikot Veetil > > > > Modules with a large number of compilation units may be > > exceeding AR and LD command argument list. Handle this gracefully by > > writing the long argument list in a file. The command line options > > read from file are inserted in place of the original @file option. > > > > The usage is well documented at > > https://www.gnu.org/software/make/manual/html_node/File-Function.html > > > > Signed-off-by: Mahesh Kumar Kalikot Veetil > > Signed-off-by: Jeff Johnson > > --- > > > > Changes in v2: > > - Remove spurious endif > > > > scripts/Makefile.build | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/scripts/Makefile.build b/scripts/Makefile.build > > index 252b7d2..787dca2 100644 > > --- a/scripts/Makefile.build > > +++ b/scripts/Makefile.build > > @@ -425,7 +425,10 @@ $(obj)/lib.a: $(lib-y) FORCE > > # module is turned into a multi object module, $^ will contain header file > > # dependencies recorded in the .*.cmd file. > > quiet_cmd_link_multi-m = LD [M] $@ > > - cmd_link_multi-m = $(LD) $(ld_flags) -r -o $@ $(filter %.o,$^) > > + cmd_link_multi-m = \ > > + $(file >$@.in,$(filter %.o,$^)) \ > > + $(LD) $(ld_flags) -r -o $@ @$@.in; \ > > + rm -f $@.in > > The GNU Make docs linked above use an `@` before the invocation of > `rm`. I don't know what that's about, but that or even this patch > doesn't affect my ability to build negatively. LGTM See this: https://www.gnu.org/software/make/manual/html_node/Echoing.html#Echoing > Reviewed-by: Nick Desaulniers > Tested-by: Nick Desaulniers > > > > > $(multi-used-m): FORCE > > $(call if_changed,link_multi-m) > > -- > > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > > a Linux Foundation Collaborative Project > > > > > -- > Thanks, > ~Nick Desaulniers -- Best Regards Masahiro Yamada