All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] objtool: Remove some files when make clean
@ 2022-05-11  8:37 Tiezhu Yang
  2022-05-11  8:37 ` [PATCH 1/2] objtool: Remove inat-tables.c " Tiezhu Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tiezhu Yang @ 2022-05-11  8:37 UTC (permalink / raw)
  To: Josh Poimboeuf, Peter Zijlstra; +Cc: linux-kernel

Tiezhu Yang (2):
  objtool: Remove inat-tables.c when make clean
  objtool: Remove libsubcmd.a when make clean

 tools/objtool/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.1.0


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

* [PATCH 1/2] objtool: Remove inat-tables.c when make clean
  2022-05-11  8:37 [PATCH 0/2] objtool: Remove some files when make clean Tiezhu Yang
@ 2022-05-11  8:37 ` Tiezhu Yang
  2022-05-17 22:21   ` [tip: objtool/core] " tip-bot2 for Tiezhu Yang
  2022-05-11  8:37 ` [PATCH 2/2] objtool: Remove libsubcmd.a " Tiezhu Yang
  2022-05-12 14:34 ` [PATCH 0/2] objtool: Remove some files " Josh Poimboeuf
  2 siblings, 1 reply; 6+ messages in thread
From: Tiezhu Yang @ 2022-05-11  8:37 UTC (permalink / raw)
  To: Josh Poimboeuf, Peter Zijlstra; +Cc: linux-kernel

When build objtool on x86, the generated file inat-tables.c is in
arch/x86/lib instead of arch/x86, use the correct dir to remove it
when make clean.

$ cd tools/objtool
$ make
[...]
  GEN     arch/x86/lib/inat-tables.c
[...]

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
 tools/objtool/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile
index 0dbd397..2fcc9a5 100644
--- a/tools/objtool/Makefile
+++ b/tools/objtool/Makefile
@@ -65,7 +65,7 @@ $(LIBSUBCMD): fixdep FORCE
 clean:
 	$(call QUIET_CLEAN, objtool) $(RM) $(OBJTOOL)
 	$(Q)find $(OUTPUT) -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
-	$(Q)$(RM) $(OUTPUT)arch/x86/inat-tables.c $(OUTPUT)fixdep
+	$(Q)$(RM) $(OUTPUT)arch/x86/lib/inat-tables.c $(OUTPUT)fixdep
 
 FORCE:
 
-- 
2.1.0


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

* [PATCH 2/2] objtool: Remove libsubcmd.a when make clean
  2022-05-11  8:37 [PATCH 0/2] objtool: Remove some files when make clean Tiezhu Yang
  2022-05-11  8:37 ` [PATCH 1/2] objtool: Remove inat-tables.c " Tiezhu Yang
@ 2022-05-11  8:37 ` Tiezhu Yang
  2022-05-17 22:21   ` [tip: objtool/core] " tip-bot2 for Tiezhu Yang
  2022-05-12 14:34 ` [PATCH 0/2] objtool: Remove some files " Josh Poimboeuf
  2 siblings, 1 reply; 6+ messages in thread
From: Tiezhu Yang @ 2022-05-11  8:37 UTC (permalink / raw)
  To: Josh Poimboeuf, Peter Zijlstra; +Cc: linux-kernel

The file libsubcmd.a still exists after make clean, remove it.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
 tools/objtool/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile
index 2fcc9a5..770c048 100644
--- a/tools/objtool/Makefile
+++ b/tools/objtool/Makefile
@@ -65,7 +65,7 @@ $(LIBSUBCMD): fixdep FORCE
 clean:
 	$(call QUIET_CLEAN, objtool) $(RM) $(OBJTOOL)
 	$(Q)find $(OUTPUT) -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
-	$(Q)$(RM) $(OUTPUT)arch/x86/lib/inat-tables.c $(OUTPUT)fixdep
+	$(Q)$(RM) $(OUTPUT)arch/x86/lib/inat-tables.c $(OUTPUT)fixdep $(LIBSUBCMD)
 
 FORCE:
 
-- 
2.1.0


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

* Re: [PATCH 0/2] objtool: Remove some files when make clean
  2022-05-11  8:37 [PATCH 0/2] objtool: Remove some files when make clean Tiezhu Yang
  2022-05-11  8:37 ` [PATCH 1/2] objtool: Remove inat-tables.c " Tiezhu Yang
  2022-05-11  8:37 ` [PATCH 2/2] objtool: Remove libsubcmd.a " Tiezhu Yang
@ 2022-05-12 14:34 ` Josh Poimboeuf
  2 siblings, 0 replies; 6+ messages in thread
From: Josh Poimboeuf @ 2022-05-12 14:34 UTC (permalink / raw)
  To: Tiezhu Yang; +Cc: Peter Zijlstra, linux-kernel

On Wed, May 11, 2022 at 04:37:48PM +0800, Tiezhu Yang wrote:
> Tiezhu Yang (2):
>   objtool: Remove inat-tables.c when make clean
>   objtool: Remove libsubcmd.a when make clean
> 
>  tools/objtool/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks!

-- 
Josh

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

* [tip: objtool/core] objtool: Remove libsubcmd.a when make clean
  2022-05-11  8:37 ` [PATCH 2/2] objtool: Remove libsubcmd.a " Tiezhu Yang
@ 2022-05-17 22:21   ` tip-bot2 for Tiezhu Yang
  0 siblings, 0 replies; 6+ messages in thread
From: tip-bot2 for Tiezhu Yang @ 2022-05-17 22:21 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Tiezhu Yang, Josh Poimboeuf, x86, linux-kernel

The following commit has been merged into the objtool/core branch of tip:

Commit-ID:     4bc78005887f6fca60b624822943708652fda01a
Gitweb:        https://git.kernel.org/tip/4bc78005887f6fca60b624822943708652fda01a
Author:        Tiezhu Yang <yangtiezhu@loongson.cn>
AuthorDate:    Wed, 11 May 2022 16:37:50 +08:00
Committer:     Josh Poimboeuf <jpoimboe@kernel.org>
CommitterDate: Thu, 12 May 2022 07:28:35 -07:00

objtool: Remove libsubcmd.a when make clean

The file libsubcmd.a still exists after make clean, remove it.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://lore.kernel.org/r/1652258270-6278-3-git-send-email-yangtiezhu@loongson.cn
---
 tools/objtool/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile
index 8a90763..e66d717 100644
--- a/tools/objtool/Makefile
+++ b/tools/objtool/Makefile
@@ -63,7 +63,7 @@ $(LIBSUBCMD): fixdep FORCE
 clean:
 	$(call QUIET_CLEAN, objtool) $(RM) $(OBJTOOL)
 	$(Q)find $(OUTPUT) -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
-	$(Q)$(RM) $(OUTPUT)arch/x86/lib/inat-tables.c $(OUTPUT)fixdep
+	$(Q)$(RM) $(OUTPUT)arch/x86/lib/inat-tables.c $(OUTPUT)fixdep $(LIBSUBCMD)
 
 FORCE:
 

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

* [tip: objtool/core] objtool: Remove inat-tables.c when make clean
  2022-05-11  8:37 ` [PATCH 1/2] objtool: Remove inat-tables.c " Tiezhu Yang
@ 2022-05-17 22:21   ` tip-bot2 for Tiezhu Yang
  0 siblings, 0 replies; 6+ messages in thread
From: tip-bot2 for Tiezhu Yang @ 2022-05-17 22:21 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Tiezhu Yang, Josh Poimboeuf, x86, linux-kernel

The following commit has been merged into the objtool/core branch of tip:

Commit-ID:     f193c32cad2ddc79ad55a2e2fb3bc35e7d92946a
Gitweb:        https://git.kernel.org/tip/f193c32cad2ddc79ad55a2e2fb3bc35e7d92946a
Author:        Tiezhu Yang <yangtiezhu@loongson.cn>
AuthorDate:    Wed, 11 May 2022 16:37:49 +08:00
Committer:     Josh Poimboeuf <jpoimboe@kernel.org>
CommitterDate: Thu, 12 May 2022 07:28:05 -07:00

objtool: Remove inat-tables.c when make clean

When build objtool on x86, the generated file inat-tables.c is in
arch/x86/lib instead of arch/x86, use the correct dir to remove it
when make clean.

$ cd tools/objtool
$ make
[...]
  GEN     arch/x86/lib/inat-tables.c
[...]

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://lore.kernel.org/r/1652258270-6278-2-git-send-email-yangtiezhu@loongson.cn
---
 tools/objtool/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile
index 061cf1c..8a90763 100644
--- a/tools/objtool/Makefile
+++ b/tools/objtool/Makefile
@@ -63,7 +63,7 @@ $(LIBSUBCMD): fixdep FORCE
 clean:
 	$(call QUIET_CLEAN, objtool) $(RM) $(OBJTOOL)
 	$(Q)find $(OUTPUT) -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
-	$(Q)$(RM) $(OUTPUT)arch/x86/inat-tables.c $(OUTPUT)fixdep
+	$(Q)$(RM) $(OUTPUT)arch/x86/lib/inat-tables.c $(OUTPUT)fixdep
 
 FORCE:
 

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

end of thread, other threads:[~2022-05-17 22:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11  8:37 [PATCH 0/2] objtool: Remove some files when make clean Tiezhu Yang
2022-05-11  8:37 ` [PATCH 1/2] objtool: Remove inat-tables.c " Tiezhu Yang
2022-05-17 22:21   ` [tip: objtool/core] " tip-bot2 for Tiezhu Yang
2022-05-11  8:37 ` [PATCH 2/2] objtool: Remove libsubcmd.a " Tiezhu Yang
2022-05-17 22:21   ` [tip: objtool/core] " tip-bot2 for Tiezhu Yang
2022-05-12 14:34 ` [PATCH 0/2] objtool: Remove some files " Josh Poimboeuf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.