make clean deletes .kernelrelease now
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 18 Mar 2007 21:45:21 +0000 (21:45 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 18 Mar 2007 21:45:21 +0000 (21:45 -0000)
trylink deleted empty linker stderr on success

Makefile
scripts/trylink

index 5bbd872eaefd012b0c24d3181958ff8b2acdbcef..3e942608435200340393b478f5d4ddafa7897225 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -906,7 +906,7 @@ endif # CONFIG_MODULES
 
 # Directories & files removed with 'make clean'
 CLEAN_DIRS  += $(MODVERDIR)
-CLEAN_FILES += busybox* System.map \
+CLEAN_FILES += busybox* System.map .kernelrelease \
                 .tmp_kallsyms* .tmp_version .tmp_busybox* .tmp_System.map
 
 # Directories & files removed with 'make mrproper'
index 1cd50c6ed8dc91095d2ebeedd47831ba802a35a5..52931b01c584f1dbdad3e2d29e2e2018ac43ccc5 100755 (executable)
@@ -7,7 +7,7 @@ try() {
     shift
     $debug && echo "Trying: $* $added"
     "$@" $added >busybox.map 2>busybox_ld.err \
-    && exit 0
+    && { rm busybox_ld.err; exit 0; }
 }
 
 try "" "$@"