Skip to content

Commit 51eb95e

Browse files
Andi Kleenmasahir0y
Andi Kleen
authored andcommitted
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 <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 11122b8 commit 51eb95e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

scripts/link-vmlinux.sh

-14
Original file line numberDiff line numberDiff line change
@@ -320,20 +320,6 @@ cleanup()
320320
rm -f .vmlinux.d
321321
}
322322

323-
on_exit()
324-
{
325-
if [ $? -ne 0 ]; then
326-
cleanup
327-
fi
328-
}
329-
trap on_exit EXIT
330-
331-
on_signals()
332-
{
333-
exit 1
334-
}
335-
trap on_signals HUP INT QUIT TERM
336-
337323
# Use "make V=1" to debug this script
338324
case "${KBUILD_VERBOSE}" in
339325
*1*)

0 commit comments

Comments
 (0)