Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6159382rwd; Mon, 19 Jun 2023 03:18:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66L3oq47eJUb9AsNGTruYwnei6O8opchfzRiH824YIXbpPKYyV2AX7cJqmGUEVt+18hUlx X-Received: by 2002:a05:6808:1929:b0:39e:d1c3:e9bc with SMTP id bf41-20020a056808192900b0039ed1c3e9bcmr2854713oib.26.1687169928297; Mon, 19 Jun 2023 03:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687169928; cv=none; d=google.com; s=arc-20160816; b=GmxfykTyh932RiS6IIR6KGyORQ31pkX5Wmw2xGmSZFit/eFxsOPXweXQjXtbCz/EhJ TGR2vr/DQ1Rky+5P8hY/NnyKNtCaWijQKHND8kKUwYRpeE7V6uf5tadALlZE7T5/hRIm a+py+TJVzJZ9WIWrK2jDhwDTUuIbJp3cwKCIOujmkS4HKb18+/CEn7D1rX2K1lcOCtFn ht8xJHOLZ4vgdzuzKDFyier7oJ2B6yEvD5pX55dttlTJDX0XEjN7HxD5/8mcqx8/cXi1 lpgebBCcHn5lz7hPCKw9zjW6O09UpK7ifD07pYs+S5DwZGGXoBfummSg+uTnV4vfQmaQ /rJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tA4PbV2osCTl0Z0pAqY4lAX9G0ZA9Bz2aa6+KBA52nM=; b=kOd/eXUFClZggO/ietTmhAoqCu4TgXYYL7F4LaSrZX2fDY7C/v+yYEUk1HK/UQh7Ch 74X82h/3Wy3d8H7yXS6+mPbgCJoX8M33I5hK5B9dw13K4MBgAB6Hhc4o/U0hkucd1KEq 4k5OUciAz4UqXZWarNeK0sUH9RqPCMgylJZIm9N1qT9ugJc1ImSC3gP60EzXU1WQ5ro4 MUhM+W0JHTsIrFkmoIJvz+ofu6VvmnVYLLxrkmhYN76fqUZ/xU3G7SP4Fjjq7u5Y1lyM xFmLtsuTcq4G/+V/P37SW+kFT8KtyzUAsTEf4uptPSOBlFHssbfGSGxKctI8uU0NYXJR aGKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a63db44000000b0053f3b62c207si8036891pgi.767.2023.06.19.03.18.34; Mon, 19 Jun 2023 03:18:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230491AbjFSJew (ORCPT + 99 others); Mon, 19 Jun 2023 05:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231377AbjFSJd6 (ORCPT ); Mon, 19 Jun 2023 05:33:58 -0400 Received: from hi1smtp01.de.adit-jv.com (smtp1.de.adit-jv.com [93.241.18.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6240183; Mon, 19 Jun 2023 02:32:35 -0700 (PDT) Received: from hi2exch02.adit-jv.com (hi2exch02.adit-jv.com [10.72.92.28]) by hi1smtp01.de.adit-jv.com (Postfix) with ESMTP id 183155202EC; Mon, 19 Jun 2023 11:32:34 +0200 (CEST) Received: from lxhi-065 (10.72.94.24) by hi2exch02.adit-jv.com (10.72.92.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Mon, 19 Jun 2023 11:32:33 +0200 Date: Mon, 19 Jun 2023 11:32:33 +0200 From: Eugeniu Rosca To: Masahiro Yamada CC: Eugeniu Rosca , , , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Eugeniu Rosca Subject: Re: [PATCH] kbuild: make clean rule robust against too long argument error Message-ID: <20230619093233.GB20014@lxhi-065> References: <20230617153025.1653851-1-masahiroy@kernel.org> <20230617200700.GA31221@lxhi-065> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.72.94.24] X-ClientProxiedBy: hi2exch02.adit-jv.com (10.72.92.28) To hi2exch02.adit-jv.com (10.72.92.28) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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