Skip to contentSkip to conversation

kbuild: Don't remove link-vmlinux temporary files on exit/signal

PATCH In review Andi Kleen 2 participants 2 messages May 5, 2021 Kbuild

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 kbuild: Don't remove link-vmlinux temporary files on exit/signal

Keep them around until they are cleaned up by make clean. This uses a bit more disk space, but makes it easier to debug any problems with the kernel link process.

---
 scripts/link-vmlinux.sh | 14 --------------
 1 file changed, 14 deletions(-)
scripts/link-vmlinux.sh +0 -14
index 7d112681f332..f4de4c97015b 100755
@@ -320,20 +320,6 @@ cleanup()
 	rm -f .vmlinux.d
 }
 
-on_exit()
-{
-	if [ $? -ne 0 ]; then
-		cleanup
-	fi
-}
-trap on_exit EXIT
-
-on_signals()
-{
-	exit 1
-}
-trap on_signals HUP INT QUIT TERM
-
 # Use "make V=1" to debug this script
 case "${KBUILD_VERBOSE}" in
 *1*)
Signature · 1 line
2.25.4
#1 lore raw
Quoted 8 lines · Andi Kleen

Keep them around until they are cleaned up by make clean. This uses a bit more disk space, but makes it easier to debug any problems with the kernel link process.

---

Applied to linux-kbuild. Thanks.

Quoted 31 lines
 scripts/link-vmlinux.sh | 14 --------------
 1 file changed, 14 deletions(-)
scripts/link-vmlinux.sh +0 -15
index 7d112681f332..f4de4c97015b 100755
@@ -320,20 +320,6 @@ cleanup()
        rm -f .vmlinux.d
 }
 
-on_exit()
-{
-       if [ $? -ne 0 ]; then
-               cleanup
-       fi
-}
-trap on_exit EXIT
-
-on_signals()
-{
-       exit 1
-}
-trap on_signals HUP INT QUIT TERM
-
 # Use "make V=1" to debug this script
 case "${KBUILD_VERBOSE}" in
 *1*)
--

2.25.4

Signature · 2 lines
Best Regards
Masahiro Yamada