Skip to contentSkip to conversation

small make clean fix

PATCH Applied Stefan Holst 3 participants 4 messages Mar 21, 2004 – Mar 22, 2004 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

hi,

yet another small patch from me:
this fixes make clean/mrproper to remove arch/sparc/boot/System.map, too. it was all along in the way while making patches...

maybe it is a bug in kbuild that clean target is not executed in arch/sparc/boot/Makefile?

arch/sparc/boot/Makefile +0 -3
diff -urN a/arch/sparc/boot/Makefile b/arch/sparc/boot/Makefile
@@ -32,6 +32,3 @@
 
 $(obj)/btfix.s: $(obj)/btfixupprep vmlinux FORCE
 	$(call if_changed,btfix)
-
-clean:
-	rm $(obj)/System.map
arch/sparc/Makefile +2 -1
diff -urN a/arch/sparc/Makefile b/arch/sparc/Makefile
@@ -67,7 +67,8 @@
 	$(call filechk,gen-asm-offsets)
 
 CLEAN_FILES +=	include/asm-$(ARCH)/asm_offsets.h	\
-		arch/$(ARCH)/kernel/asm-offsets.s
+		arch/$(ARCH)/kernel/asm-offsets.s	\
+		arch/$(ARCH)/boot/System.map
 
 # Don't use tabs in echo arguments.
 define archhelp
Signature · 4 lines
RY  Stefan
+-----------------+----------------+
| [email protected] | www.s-holst.de |
+-----------------+----------------+
#1 lore raw

arch/sparc/Makefile line 74

Quoted 13 lines · Stefan Holst

diff -urN a/arch/sparc/Makefile b/arch/sparc/Makefile

arch/sparc/Makefile +2 -1
@@ -67,7 +67,8 @@
 	$(call filechk,gen-asm-offsets)
 
 CLEAN_FILES +=	include/asm-$(ARCH)/asm_offsets.h	\
-		arch/$(ARCH)/kernel/asm-offsets.s
+		arch/$(ARCH)/kernel/asm-offsets.s	\
+		arch/$(ARCH)/boot/System.map
 
 # Don't use tabs in echo arguments.
 define archhelp

Pete rejected this when I wrote it last year, and applied the clean target instead. This is probably my fault, since I failed to tell him that it doesn't work (or perhaps it did then but doesn't now).

Pete, knowing that the clean target doesn't get called, do you still object to this?

Signature · 1 line
Keith M Wesolowski
#2 lore raw
In reply to Stefan Holst
Quoted 6 lines · On Sun, 21 Mar 2004 15:12:58 -0800 Keith M Wesolowski <[email protected]>…

Pete rejected this when I wrote it last year, and applied the clean target instead. This is probably my fault, since I failed to tell him that it doesn't work (or perhaps it did then but doesn't now).

Pete, knowing that the clean target doesn't get called, do you still object to this?

I remember the story, but I forgot on what grounds I did it. I seem to recall having it in my tree for a while and something did not work. But maybe it's just my imagination. Why don't you keep it in your work tree for a week, if nothing breaks, call it good?

-- Pete

#3 lore raw
In reply to Stefan Holst
Quoted 4 lines · Pete Zaitcev

I remember the story, but I forgot on what grounds I did it. I seem to recall having it in my tree for a while and something did not work. But maybe it's just my imagination. Why don't you keep it in your work tree for a week, if nothing breaks, call it good?

I can do better than that; it's been in my work tree and the Gentoo kernels for 4 months and nobody's had any problems.

Applied, thanks guys.

Signature · 1 line
Keith M Wesolowski