public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.5 sparc32] trivial: fix up check_asm
@ 2002-10-17  8:31 Tomas Szepe
  2002-10-17  8:48 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Tomas Szepe @ 2002-10-17  8:31 UTC (permalink / raw)
  To: davem; +Cc: sparclinux, lkml

The attached patch fixes up sparc32's lunatic check_asm in 2.5:

T.


diff -urN linux-2.5.43/arch/sparc/kernel/Makefile linux-2.5.43.1/arch/sparc/kernel/Makefile
--- linux-2.5.43/arch/sparc/kernel/Makefile	2002-09-28 10:11:16.000000000 +0200
+++ linux-2.5.43.1/arch/sparc/kernel/Makefile	2002-10-17 10:19:25.000000000 +0200
@@ -29,7 +29,7 @@
 
 include $(TOPDIR)/Rules.make
 
-HPATH := $(objtree)/include
+HPATH := $(TOPDIR)/include
 
 check_asm: FORCE
 	@if [ ! -r $(HPATH)/asm/asm_offsets.h ] ; then \
@@ -46,7 +46,7 @@
 	@echo "#include <linux/config.h>" > tmp.c
 	@echo "#undef CONFIG_SMP" >> tmp.c
 	@echo "#include <linux/sched.h>" >> tmp.c
-	$(CPP) $(CPPFLAGS) tmp.c -o tmp.i
+	$(CC) $(CFLAGS) -E tmp.c -o tmp.i
 	@echo "/* Automatically generated. Do not edit. */" > check_asm_data.c
 	@echo "#include <linux/config.h>" >> check_asm_data.c
 	@echo "#undef CONFIG_SMP" >> check_asm_data.c
@@ -79,7 +79,7 @@
 	@echo "#undef CONFIG_SMP" >> tmp.c
 	@echo "#define CONFIG_SMP 1" >> tmp.c
 	@echo "#include <linux/sched.h>" >> tmp.c
-	$(CPP) $(CPPFLAGS) tmp.c -o tmp.i
+	$(CC) $(CFLAGS) -E tmp.c -o tmp.i
 	@echo "/* Automatically generated. Do not edit. */" > check_asm_data.c
 	@echo "#include <linux/config.h>" >> check_asm_data.c
 	@echo "#undef CONFIG_SMP" >> check_asm_data.c

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-17  8:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-17  8:31 [2.5 sparc32] trivial: fix up check_asm Tomas Szepe
2002-10-17  8:48 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox