[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200115113243.23096-1-ilie.halip@gmail.com>
Date: Wed, 15 Jan 2020 13:32:42 +0200
From: Ilie Halip <ilie.halip@...il.com>
To: linux-riscv@...ts.infradead.org
Cc: Ilie Halip <ilie.halip@...il.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>, Mao Han <han_mao@...ky.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Arnd Bergmann <arnd@...db.de>,
Thomas Gleixner <tglx@...utronix.de>,
linux-kernel@...r.kernel.org
Subject: [PATCH] riscv: delete temporary files
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@...il.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 $@...p && \
$(CROSS_COMPILE)objcopy \
- $(patsubst %, -G __vdso_%, $(vdso-syms)) $@...p $@
+ $(patsubst %, -G __vdso_%, $(vdso-syms)) $@...p $@ && \
+ rm $@...p
# install commands for the unstripped file
quiet_cmd_vdso_install = INSTALL $@
base-commit: dc6fcba72f0435b7884f2e92fd634bb9f78a2c60
--
2.17.1
Powered by blists - more mailing lists