[PATCH 6/7] Kbuild: lto: clean build artifacts
From: Arnd Bergmann
Date: Fri Feb 02 2018 - 11:22:23 EST
During test-building I filled up my disk with stale files
that never got cleaned. This should make sure we remove them
all.
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
---
scripts/link-vmlinux.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
index 964b2ee855dd..130df0781072 100755
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -113,7 +113,7 @@ vmlinux_link()
${1}"
fi
- ${LDFINAL} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} \
+ ${LDFINAL} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} \
-T ${lds} ${objects}
else
if [ -n "${CONFIG_THIN_ARCHIVES}" ]; then
@@ -195,6 +195,8 @@ cleanup()
rm -f System.map
rm -f vmlinux
rm -f vmlinux.o
+ rm -f cc*.ltrans*.o
+ rm -f vmlinux.o.* vmlinux.ltrans* vmlinux.wpa*
}
on_exit()
--
2.9.0