From: Andi Kleen Date: Wed, 5 May 2021 03:35:27 +0000 (-0700) Subject: kbuild: Don't remove link-vmlinux temporary files on exit/signal X-Git-Tag: accepted/tizen/unified/20230118.172025~7253^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51eb95e2da41802454f48b9afeb4d96a77295035;p=platform%2Fkernel%2Flinux-rpi.git 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. Suggested-by: Masahiro Yamada Signed-off-by: Andi Kleen Signed-off-by: Masahiro Yamada --- diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 7d11268..f4de4c9 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -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*)