mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] tools: iio: rm .*.cmd when make clean
@ 2024-08-29  5:33 zhangjiao2
  2024-08-31 10:59 ` Jonathan Cameron
  0 siblings, 1 reply; 5+ messages in thread
From: zhangjiao2 @ 2024-08-29  5:33 UTC (permalink / raw)
  To: jic23; +Cc: lars, linux-iio, linux-kernel, zhangjiao

From: zhangjiao <zhangjiao2@cmss.chinamobile.com>

rm .*.cmd when make clean

Signed-off-by: zhangjiao <zhangjiao2@cmss.chinamobile.com>
---
 tools/iio/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/iio/Makefile b/tools/iio/Makefile
index fa720f062229..3bcce0b7d10f 100644
--- a/tools/iio/Makefile
+++ b/tools/iio/Makefile
@@ -58,7 +58,7 @@ $(OUTPUT)iio_generic_buffer: $(IIO_GENERIC_BUFFER_IN)
 clean:
 	rm -f $(ALL_PROGRAMS)
 	rm -rf $(OUTPUT)include/linux/iio
-	find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
+	find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete -o -name '\.*.cmd' -delete
 
 install: $(ALL_PROGRAMS)
 	install -d -m 755 $(DESTDIR)$(bindir);		\
-- 
2.33.0




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] tools: iio: rm .*.cmd when make clean
  2024-08-29  5:33 [PATCH] tools: iio: rm .*.cmd when make clean zhangjiao2
@ 2024-08-31 10:59 ` Jonathan Cameron
  2024-09-02  3:54   ` zhangjiao2
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Cameron @ 2024-08-31 10:59 UTC (permalink / raw)
  To: zhangjiao2; +Cc: lars, linux-iio, linux-kernel

On Thu, 29 Aug 2024 13:33:09 +0800
zhangjiao2 <zhangjiao2@cmss.chinamobile.com> wrote:

> From: zhangjiao <zhangjiao2@cmss.chinamobile.com>
> 
> rm .*.cmd when make clean
Where do those come from? 

> 
> Signed-off-by: zhangjiao <zhangjiao2@cmss.chinamobile.com>
> ---
>  tools/iio/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/iio/Makefile b/tools/iio/Makefile
> index fa720f062229..3bcce0b7d10f 100644
> --- a/tools/iio/Makefile
> +++ b/tools/iio/Makefile
> @@ -58,7 +58,7 @@ $(OUTPUT)iio_generic_buffer: $(IIO_GENERIC_BUFFER_IN)
>  clean:
>  	rm -f $(ALL_PROGRAMS)
>  	rm -rf $(OUTPUT)include/linux/iio
> -	find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
> +	find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete -o -name '\.*.cmd' -delete
>  
>  install: $(ALL_PROGRAMS)
>  	install -d -m 755 $(DESTDIR)$(bindir);		\


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] tools: iio: rm .*.cmd when make clean
  2024-08-31 10:59 ` Jonathan Cameron
@ 2024-09-02  3:54   ` zhangjiao2
  2024-09-03 19:09     ` Jonathan Cameron
  0 siblings, 1 reply; 5+ messages in thread
From: zhangjiao2 @ 2024-09-02  3:54 UTC (permalink / raw)
  To: jic23; +Cc: lars, linux-iio, linux-kernel, zhangjiao

From: zhangjiao <zhangjiao2@cmss.chinamobile.com>

Hi

On Sat, 31 Aug 2024 11:59:31, Jonathan Cameron wrote:
>> On Thu, 29 Aug 2024 13:33:09 +0800
>> zhangjiao2 <zhangjiao2@cmss.chinamobile.com> wrote:
>> From: zhangjiao <zhangjiao2@cmss.chinamobile.com>
>> 
>> rm .*.cmd when make clean
> Where do those come from?
	Those come from tools/build/Build.include.
These .*.cmd files ware created when make.
So clean them when make clean.
>> Signed-off-by: zhangjiao <zhangjiao2@cmss.chinamobile.com>
>> ---
>>  tools/iio/Makefile | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/tools/iio/Makefile b/tools/iio/Makefile
>> index fa720f062229..3bcce0b7d10f 100644
>> --- a/tools/iio/Makefile
>> +++ b/tools/iio/Makefile
>> @@ -58,7 +58,7 @@ $(OUTPUT)iio_generic_buffer: $(IIO_GENERIC_BUFFER_IN)
>>  clean:
>>  	rm -f $(ALL_PROGRAMS)
>>  	rm -rf $(OUTPUT)include/linux/iio
>> -	find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
>> +	find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete -o -name '\.*.cmd' -delete
>>  
>>  install: $(ALL_PROGRAMS)
>>  	install -d -m 755 $(DESTDIR)$(bindir);		\
-- 
Thanks

zhang jiao




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] tools: iio: rm .*.cmd when make clean
  2024-09-02  3:54   ` zhangjiao2
@ 2024-09-03 19:09     ` Jonathan Cameron
  2024-09-03 22:43       ` Andy Shevchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Cameron @ 2024-09-03 19:09 UTC (permalink / raw)
  To: zhangjiao2; +Cc: lars, linux-iio, linux-kernel

On Mon,  2 Sep 2024 11:54:12 +0800
zhangjiao2 <zhangjiao2@cmss.chinamobile.com> wrote:

> From: zhangjiao <zhangjiao2@cmss.chinamobile.com>
> 
> Hi
> 
> On Sat, 31 Aug 2024 11:59:31, Jonathan Cameron wrote:
> >> On Thu, 29 Aug 2024 13:33:09 +0800
> >> zhangjiao2 <zhangjiao2@cmss.chinamobile.com> wrote:
> >> From: zhangjiao <zhangjiao2@cmss.chinamobile.com>
> >> 
> >> rm .*.cmd when make clean  
> > Where do those come from?  
> 	Those come from tools/build/Build.include.
> These .*.cmd files ware created when make.
> So clean them when make clean.
Hmm. I'm still a little curious about the path to those getting created as
I don't see them. when testing.

Ah well, I don't feel strongly about it and I'm sure there is
something to make them appear

Applied.

Thanks,

Jonathan

> >> Signed-off-by: zhangjiao <zhangjiao2@cmss.chinamobile.com>
> >> ---
> >>  tools/iio/Makefile | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> >> 
> >> diff --git a/tools/iio/Makefile b/tools/iio/Makefile
> >> index fa720f062229..3bcce0b7d10f 100644
> >> --- a/tools/iio/Makefile
> >> +++ b/tools/iio/Makefile
> >> @@ -58,7 +58,7 @@ $(OUTPUT)iio_generic_buffer: $(IIO_GENERIC_BUFFER_IN)
> >>  clean:
> >>  	rm -f $(ALL_PROGRAMS)
> >>  	rm -rf $(OUTPUT)include/linux/iio
> >> -	find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
> >> +	find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete -o -name '\.*.cmd' -delete
> >>  
> >>  install: $(ALL_PROGRAMS)
> >>  	install -d -m 755 $(DESTDIR)$(bindir);		\  


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] tools: iio: rm .*.cmd when make clean
  2024-09-03 19:09     ` Jonathan Cameron
@ 2024-09-03 22:43       ` Andy Shevchenko
  0 siblings, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2024-09-03 22:43 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: zhangjiao2, lars, linux-iio, linux-kernel

Tue, Sep 03, 2024 at 08:09:23PM +0100, Jonathan Cameron kirjoitti:
> On Mon,  2 Sep 2024 11:54:12 +0800
> zhangjiao2 <zhangjiao2@cmss.chinamobile.com> wrote:
> > On Sat, 31 Aug 2024 11:59:31, Jonathan Cameron wrote:
> > >> On Thu, 29 Aug 2024 13:33:09 +0800
> > >> zhangjiao2 <zhangjiao2@cmss.chinamobile.com> wrote:

...

> > >> rm .*.cmd when make clean  
> > > Where do those come from?  
> > 	Those come from tools/build/Build.include.
> > These .*.cmd files ware created when make.
> > So clean them when make clean.
> Hmm. I'm still a little curious about the path to those getting created as
> I don't see them. when testing.

At least this is documented here
https://elixir.bootlin.com/linux/v6.11-rc6/source/tools/build/Documentation/Build.txt#L149

Here is where they are being created
https://elixir.bootlin.com/linux/v6.11-rc6/source/tools/build/Build.include#L58

And it seems it is only created when there are actual dependencies.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-09-03 22:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-29  5:33 [PATCH] tools: iio: rm .*.cmd when make clean zhangjiao2
2024-08-31 10:59 ` Jonathan Cameron
2024-09-02  3:54   ` zhangjiao2
2024-09-03 19:09     ` Jonathan Cameron
2024-09-03 22:43       ` Andy Shevchenko

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®