From: Eugeniu Rosca <erosca@de.adit-jv.com>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: Eugeniu Rosca <erosca@de.adit-jv.com>,
<linux-kbuild@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Nathan Chancellor <nathan@kernel.org>,
Nick Desaulniers <ndesaulniers@google.com>,
Nicolas Schier <nicolas@fjasle.eu>,
Eugeniu Rosca <roscaeugeniu@gmail.com>
Subject: Re: [PATCH] kbuild: make clean rule robust against too long argument error
Date: Mon, 19 Jun 2023 11:32:33 +0200 [thread overview]
Message-ID: <20230619093233.GB20014@lxhi-065> (raw)
In-Reply-To: <CAK7LNATbrP4Re+-9rY9d0=Dsk-O4DasZZtV0wM7SWg3Y5eLKmQ@mail.gmail.com>
Hello Yamada-san,
On Mon, Jun 19, 2023 at 12:50:48AM +0900, Masahiro Yamada wrote:
> On Sun, Jun 18, 2023 at 5:07 AM Eugeniu Rosca <erosca@de.adit-jv.com> wrote:
[snip]
> > Please, correct me if I am wrong, but it looks like the magic/brilliance
> > is in the 'patsubst' function, since below version also fails for me:
> >
> > NOK: cmd_clean = printf '%s ' $(__clean-files) | xargs rm -rf
>
> Right.
> Now, 'printf' (instead of 'rm') failed with the too long argument list.
>
> GNU Make does not have the length limit, but shell does.
> So, the full-path list must be passed via stdout
> instead of the command line.
>
>
> The comment might be confusing.
>
> I will repeat the same comment written in scripts/Makefile.build:
>
> # To make this rule robust against "Argument list too long" error,
> # remove $(obj)/ prefix, and restore it by a shell command.
Sounds good to me. No open questions from my end :)
--
Best regards,
Eugeniu Rosca
prev parent reply other threads:[~2023-06-19 9:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-17 15:30 Masahiro Yamada
2023-06-17 20:07 ` Eugeniu Rosca
2023-06-18 15:50 ` Masahiro Yamada
2023-06-19 9:32 ` Eugeniu Rosca [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230619093233.GB20014@lxhi-065 \
--to=erosca@de.adit-jv.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=nicolas@fjasle.eu \
--cc=roscaeugeniu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®