[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 2 Feb 2018 17:21:03 +0100
From: Arnd Bergmann <arnd@...db.de>
To: Andi Kleen <ak@...ux.intel.com>
Cc: Nicolas Pitre <nico@...aro.org>, linux-kernel@...r.kernel.org,
linux-kbuild@...r.kernel.org, Arnd Bergmann <arnd@...db.de>
Subject: [PATCH 6/7] Kbuild: lto: clean build artifacts
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@...db.de>
---
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
Powered by blists - more mailing lists