mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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 <masahiroy@kernel.org> Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
		
							parent
							
								
									11122b860b
								
							
						
					
					
						commit
						51eb95e2da
					
				
					 1 changed files with 0 additions and 14 deletions
				
			
		| 
						 | 
					@ -320,20 +320,6 @@ cleanup()
 | 
				
			||||||
	rm -f .vmlinux.d
 | 
						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
 | 
					# Use "make V=1" to debug this script
 | 
				
			||||||
case "${KBUILD_VERBOSE}" in
 | 
					case "${KBUILD_VERBOSE}" in
 | 
				
			||||||
*1*)
 | 
					*1*)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue