summaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/vdso
diff options
context:
space:
mode:
authorIlie Halip <ilie.halip@gmail.com>2020-01-15 14:32:42 +0300
committerPaul Walmsley <paul.walmsley@sifive.com>2020-01-19 00:22:13 +0300
commit95f4d9cced96afa9c69b3da8e79e96102c84fc60 (patch)
treebbe971b3c0f5c530c433aa6d5155456d4cb6fa83 /arch/riscv/kernel/vdso
parent20d2292754e72e445abe62b7ac453eb945fc626c (diff)
downloadlinux-95f4d9cced96afa9c69b3da8e79e96102c84fc60.tar.xz
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@gmail.com> Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Diffstat (limited to 'arch/riscv/kernel/vdso')
-rw-r--r--arch/riscv/kernel/vdso/Makefile3
1 files changed, 2 insertions, 1 deletions
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 $@