Linux-RISC-V Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] riscv: delete temporary files
@ 2020-01-15 11:32 Ilie Halip
  2020-01-17 21:52 ` Paul Walmsley
  0 siblings, 1 reply; 2+ messages in thread
From: Ilie Halip @ 2020-01-15 11:32 UTC (permalink / raw)
  To: linux-riscv
  Cc: Albert Ou, Arnd Bergmann, Ilie Halip, Nick Desaulniers,
	linux-kernel, Palmer Dabbelt, Paul Walmsley, Thomas Gleixner,
	Mao Han

Temporary files used in the VDSO build process linger on even after make
mrproper: vdso-dummy.o.tmp, vdso.so.dbg.tmp.

Delete them once they're no longer needed.

Signed-off-by: Ilie Halip <ilie.halip@gmail.com>
---
 arch/riscv/kernel/vdso/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/riscv/kernel/vdso/Makefile b/arch/riscv/kernel/vdso/Makefile
index 49a5852fd07d..33b16f4212f7 100644
--- a/arch/riscv/kernel/vdso/Makefile
+++ b/arch/riscv/kernel/vdso/Makefile
@@ -58,7 +58,8 @@ quiet_cmd_vdsold = VDSOLD  $@
       cmd_vdsold = $(CC) $(KBUILD_CFLAGS) $(call cc-option, -no-pie) -nostdlib -nostartfiles $(SYSCFLAGS_$(@F)) \
                            -Wl,-T,$(filter-out FORCE,$^) -o $@.tmp && \
                    $(CROSS_COMPILE)objcopy \
-                           $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@
+                           $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
+                   rm $@.tmp
 
 # install commands for the unstripped file
 quiet_cmd_vdso_install = INSTALL $@

base-commit: dc6fcba72f0435b7884f2e92fd634bb9f78a2c60
-- 
2.17.1



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

* Re: [PATCH] riscv: delete temporary files
  2020-01-15 11:32 [PATCH] riscv: delete temporary files Ilie Halip
@ 2020-01-17 21:52 ` Paul Walmsley
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Walmsley @ 2020-01-17 21:52 UTC (permalink / raw)
  To: Ilie Halip
  Cc: Albert Ou, Arnd Bergmann, Nick Desaulniers, linux-kernel,
	Palmer Dabbelt, linux-riscv, Thomas Gleixner, Mao Han

On Wed, 15 Jan 2020, Ilie Halip wrote:

> Temporary files used in the VDSO build process linger on even after make
> mrproper: vdso-dummy.o.tmp, vdso.so.dbg.tmp.
> 
> Delete them once they're no longer needed.
> 
> Signed-off-by: Ilie Halip <ilie.halip@gmail.com>

Thanks, queued for v5.5-rc.


- Paul


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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-15 11:32 [PATCH] riscv: delete temporary files Ilie Halip
2020-01-17 21:52 ` Paul Walmsley

Linux-RISC-V Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-riscv/0 linux-riscv/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-riscv linux-riscv/ https://lore.kernel.org/linux-riscv \
		linux-riscv@lists.infradead.org
	public-inbox-index linux-riscv

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-riscv


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git